-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@ListensFor(events = {})@Emits(events = {}) public class LoadCaptionsService extends AbstractComponent
Provides a simple interface to load and parse caption documents.
-
-
Constructor Summary
Constructors Constructor Description LoadCaptionsService(EventEmitter emitter, ContentResolver contentResolver)
The LoadCaptionsService requires an EventEmitter to notify when the Captions are loaded.
-
Method Summary
Modifier and Type Method Description void
loadCaptions(Uri uri, String mimeType)
Asynchronously loads and parses the captions file located at the given Uri. -
-
Constructor Detail
-
LoadCaptionsService
LoadCaptionsService(EventEmitter emitter, ContentResolver contentResolver)
The LoadCaptionsService requires an EventEmitter to notify when the Captions are loaded.
-
-
Method Detail
-
loadCaptions
void loadCaptions(Uri uri, String mimeType)
Asynchronously loads and parses the captions file located at the given Uri.
- Parameters:
uri
- The Uri of the captions file to load.mimeType
- The mime type of the captions.
-
-
-
-