Added callback when caption tracks are loaded. Made resource class available.