VideoDisplayComponent
@Emits(events = [EventType.BUFFERED_UPDATE, EventType.COMPLETED, EventType.DID_INTERRUPT_CONTENT, EventType.DID_PAUSE, EventType.DID_PLAY, EventType.DID_RESUME_CONTENT, EventType.DID_SEEK_TO, EventType.DID_SET_SOURCE, EventType.DID_STOP, EventType.ERROR, EventType.PAUSE, EventType.PLAY, EventType.PROGRESS, EventType.SOURCE_NOT_PLAYABLE, EventType.STOP, EventType.VIDEO_DURATION_CHANGED, EventType.VIDEO_SIZE_KNOWN, EventType.WILL_CHANGE_VIDEO, EventType.READY_TO_PLAY] )
@ListensFor(events = [EventType.COMPLETED, EventType.DID_SET_SOURCE, EventType.PAUSE, EventType.PLAY, EventType.PREBUFFER_NEXT_VIDEO, EventType.SEEK_TO, EventType.SET_SOURCE, EventType.STOP, EventType.VIDEO_DURATION_CHANGED, EventType.WILL_CHANGE_VIDEO, EventType.WILL_INTERRUPT_CONTENT, EventType.WILL_RESUME_CONTENT, EventType.READY_TO_PLAY, EventType.SET_VOLUME, EventType.DID_SET_VIDEO, EventType.ON_FRAME_AVAILABLE, EventType.DID_SEEK_TO] )
The VideoDisplayComponent wraps the Brightcove EventEmitter around the lifecycle of the standard Android MediaPlayer API. The intended goal is that the end developer should never have to interact directly with the MediaPlayer instance, but rather only have to fire events at it via the EventEmitter.LifeCycle To begin playing, the VideoDisplayComponent (VDC) must first receive a EventType.SET_SOURCE event, containing a valid Source parameter. Once the source is set, the VDC will emit EventType.DID_SET_SOURCE. Once set, the the VDC will respond to the following events:
- EventType.PLAY: plays the video / resumes playback if paused
- EventType.PAUSE: pauses the video
- EventType.SEEK_TO: seeks to the position
- EventType.STOP: stops the video and destroys the player
See also
Functions
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Create the MediaPlayback for the VideoDisplayComponent.
Link copied to clipboard
Destroys the current player and releases it from memory.
Link copied to clipboard
Link copied to clipboard
Gets reference to the video source that is currently configured for playback, if any
Link copied to clipboard
Gets reference to the video source that is currently configured for playback, if any
Link copied to clipboard
Gets reference to the video that is currently configured for playback, if any
Link copied to clipboard
Gets reference to the video that is currently configured for playback, if any
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
Obtains the playhead position of the "live edge".
Link copied to clipboard
Obtains the playhead position of the "live edge".
Link copied to clipboard
Link copied to clipboard
Get the current playback.
Link copied to clipboard
Returns the current playhead position of the underlying video player.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks the current playhead position with the live edge position and determines if it is in live edge.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes the specified listener from the EventEmitter.
Link copied to clipboard
Removes all set listeners from the EventEmitter.
Link copied to clipboard
Sets the the interval in milliseconds at which to fire PROGRESS events during playback.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the Text Information Frame Listener.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard