ExoPlayerVideoDisplayComponent

This class extends the VideoDisplayComponent to add support for the ExoPlayer.

See: https://github.com/google/ExoPlayer

See also

com.brightcove.player.display.VideoDisplayComponent

Constructors

Link copied to clipboard
constructor(renderView: RenderView, eventEmitter: EventEmitter)

Types

Link copied to clipboard
interface CaptionListener
A listener for receiving notifications of timed text.
Link copied to clipboard
Link copied to clipboard
interface InfoListener
A listener for debugging information.
Link copied to clipboard
Listeners for receiving error information.
Link copied to clipboard
Listener for receiving Metadata parsed from the media stream.
Link copied to clipboard
annotation class TrackType
The list of possible Format types.

Properties

Link copied to clipboard
val BUFFERED_POSITION: String = "bufferedPosition"
The buffered position property of a BUFFERED_UPDATE event.
Link copied to clipboard
val EXOPLAYER_FORMAT: String = "exoplayerFormat"
The key for a Format object emitted when the ExoPlayer changes rendition.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val RENDITION_CHANGED: String = "renditionChanged"
Emitted when the ExoPlayer changes the rendition
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val UNKNOWN_CC: String = "unknownCC"

Functions

Link copied to clipboard
Link copied to clipboard
open fun destroyPlayer()
Link copied to clipboard
open fun getBandwidthMeter(): BandwidthMeter
Returns the current bandwidth meter.
Link copied to clipboard
open fun getBrightcoveDrmSession(): BrightcoveDrmSession
Deprecates.
Link copied to clipboard
open fun getCurrentSource(): Source
Link copied to clipboard
open fun getCurrentVideo(): Video
Link copied to clipboard
open fun getDataSourceFactory(): Factory
Returns the current HttpDataSource.
Link copied to clipboard
open fun getDefaultRenderersFactory(): DefaultRenderersFactory
Gets the DefaultRenderersFactory object.
Link copied to clipboard
open fun getExoPlayer(): ExoPlayer
Link copied to clipboard
Gets the ExoPlayer Drm session if available or null otherwise.
Link copied to clipboard
open fun getLiveEdge(): Int
Deprecated.
Link copied to clipboard
open fun getLiveEdgeLong(): Long
Compute the "live edge" as a long datatype, the largest position not within three target durations of the duration (per the HLS spec).
Link copied to clipboard
Gets the LoadControlConfig object.
Link copied to clipboard
open fun getMainHandler(): Handler
Link copied to clipboard
Returns the maximum duration of media that needs to be buffered for a switch to a lower quality variant to be considered.
Link copied to clipboard
open fun getMediaPlayer(): MediaPlayer
Link copied to clipboard
Returns the minimum duration of media that needs to be buffered for a switch to a higher quality variant to be considered.
Link copied to clipboard
open fun getMinBufferMs(): Int
Returns the minimum duration of data that must be buffered for playback to start or resume following a user action such as a seek.
Link copied to clipboard
open fun getMinRebufferMs(): Int
Link copied to clipboard
open fun getPeakBitrate(): Int
Return the peak bitrate.
Link copied to clipboard
open fun getPlaybackLooper(): Looper
Link copied to clipboard
open fun getPlaybackNotification(): PlaybackNotification
Link copied to clipboard
Link copied to clipboard
open fun getPlayerState(): Int
Returns the ExoPlayer state if available, or -1 if the player is null.
Link copied to clipboard
open fun getTrackSelector(): DefaultTrackSelector
Gets the DefaultTrackSelector object.
Link copied to clipboard
Gets the TrackSelectorHelper object.
Link copied to clipboard
Link copied to clipboard
open fun getVideoFormat(): Format
Link copied to clipboard
open fun hasDvr(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isInLiveEdge(): Boolean
Link copied to clipboard
open fun isLive(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun setAllowHlsChunklessPreparation(allowHlsChunklessPreparation: Boolean)
The value of this field in the HlsMediaSource defaults to true in ExoPlayer 2.17.
Link copied to clipboard
open fun setBandwidthMeter(bandwidthMeter: BandwidthMeter)
Sets the current bandwidth meter.
Link copied to clipboard
open fun setConnectAndReadTimeoutMs(connectTimeoutOverrideMs: Int, readTimeoutOverrideMs: Int)
Set the Connect and Read timeout override values Setting these values will create a new DefaultHttpDataSource.
Link copied to clipboard
open fun setDataSourceFactory(httpDataSourceFactory: Factory)
Sets the HttpDataSource.
Link copied to clipboard
Link copied to clipboard
open fun setDefaultRenderersFactory(defaultRenderersFactory: DefaultRenderersFactory)
Link copied to clipboard
open fun setLoadControlConfig(loadControlConfig: LoadControlConfig)
Sets the LoadControlConfig object.
Link copied to clipboard
open fun setMaxBufferDurationToSwitchDown(maxBufferDurationToSwitchDown: Long)
Sets the maximum duration of media that needs to be buffered for a switch to a lower quality variant to be considered.
Link copied to clipboard
open fun setMediaStore(mediaStore: MediaStore)
Set the {MediaStore} for offline playback support
Link copied to clipboard
open fun setMinBufferDurationToSwitchUp(minBufferDurationToSwitchUp: Long)
Sets the minimum duration of media that needs to be buffered for a switch to a higher quality variant to be considered.
Link copied to clipboard
open fun setMinBufferMs(minBufferMs: Int)
Sets the minimum duration of data that must be buffered for playback to start or resume following a user action such as a seek.
Link copied to clipboard
open fun setMinRebufferMs(minRebufferMs: Int)
Link copied to clipboard
open fun setPeakBitrate(peakBitrate: Int)
Sets the peak bitrate.
Link copied to clipboard
open fun setPlaybackNotification(playbackNotification: PlaybackNotification)
Link copied to clipboard
open fun setTextInformationFrameListener(listener: TextInformationFrameListener)
Link copied to clipboard
open fun setTrackSelector(trackSelector: DefaultTrackSelector)
Link copied to clipboard
open fun setUseDrmSessionsForClearContent(useDrmSessionsForClearContent: Boolean)
Whether to use the DRM session with clear content sections in the media (e.g.
Link copied to clipboard
open fun setVideoDisplayProperties(videoDisplayProperties: Map<String, String>)
Link copied to clipboard
open fun setVideoSelectionOverrideCreator(videoSelectionOverrideCreator: SelectionOverrideCreator)
Provides a creator for a DefaultTrackSelector.
Link copied to clipboard
open fun setVideoTrackSelectionOverrideCreator(videoTrackSelectionOverrideCreator: TrackSelectionOverrideCreator)
Provides a creator for a TrackSelectionOverride instance specific for the Video track.
Link copied to clipboard
open fun surfaceChanged(surfaceHolder: SurfaceHolder, format: Int, w: Int, h: Int)
Link copied to clipboard
open fun surfaceCreated(surfaceHolder: SurfaceHolder)
Link copied to clipboard
open fun surfaceDestroyed(surfaceHolder: SurfaceHolder)