Constructors

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

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open var currentIndex: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onBufferingUpdateListener: OnBufferingUpdateListener
Link copied to clipboard
val onCompletionListener: OnCompletionListener
Link copied to clipboard
val onErrorListener: OnErrorListener
Link copied to clipboard
val onInfoListener: OnInfoListener
Link copied to clipboard
val onPreparedListener: OnPreparedListener
Link copied to clipboard
val onSeekCompleteListener: OnSeekCompleteListener
Link copied to clipboard

Functions

Link copied to clipboard
open fun add(video: Video)
Adds the video to the end of the video list.
open fun add(index: Int, video: Video)
Adds the video to the video list at the specified index.
Link copied to clipboard
open fun addAll(videos: Collection<Video>)
Add all videos in the collection to the end of the list.
open fun addAll(index: Int, videos: Collection<Video>)
Inserts all videos in the collection at the specified index.
Link copied to clipboard
open fun addListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
open fun addOnceListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
open fun clear()
Removes all videos from the list.
Link copied to clipboard
open fun destroyPlayer()
Destroys the current player and releases it from memory.
Link copied to clipboard
open fun emitErrorEvent(message: String)
Emits an error event with the message passed in the event's properties
open fun emitErrorEvent(message: String, exception: Exception)
Emits an error event including the message passed and the exception in the properties
Link copied to clipboard
Returns the buffer percentage
Link copied to clipboard
Returns the current playhead position of the underlying video player.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
open fun getLiveEdge(): Long
Obtains the playhead position of the "live edge".
Link copied to clipboard
Get the object which handles showing an on-going player notification.
Link copied to clipboard
open fun getPlayer(): MediaPlayer
Get the player used for media playback.
Link copied to clipboard
open fun getVideoAt(index: Int): Video
Gets a video from the video list at the specified index
Link copied to clipboard
open fun getVolume(): Float
Link copied to clipboard
open fun hasDvr(): Boolean
Indicates if Live with DVR is supported.
Link copied to clipboard
Returns true if the video is a 360 video otherwise returns false
Link copied to clipboard
open fun isInLiveEdge(): Boolean
Checks the current playhead position with the live edge position and determines if it is in live edge.
Link copied to clipboard
open fun isLive(): Boolean
Provides a default for handling live videos.
Link copied to clipboard
open fun isPlaying(): Boolean
Link copied to clipboard
Check if the player is currently playing and the media is audio-only.
Link copied to clipboard
open fun isSourceSet(): Boolean
Returns if a source has been set
Link copied to clipboard
open fun onTaskRemoved(rootIntent: Intent)
This is called when the MediaPlaybackService is currently running and the user has removed a task that comes from the service's application.
Link copied to clipboard
Prepares the player to play the current video source.
Link copied to clipboard
open fun openVideo(video: Video, source: Source)
Creates, configures, and prepares a new instance of MediaPlayback
Link copied to clipboard
open fun remove(index: Int)
Removes the video at the specified index.
Link copied to clipboard
open fun removeListener(eventType: String)
Removes the specified listener from the EventEmitter.
Link copied to clipboard
open fun removeListeners()
Removes all set listeners from the EventEmitter.
Link copied to clipboard
open fun replace(index: Int, video: Video)
Removes and replaces the video at the specified index.
Link copied to clipboard
open fun setProgressInterval(progressInterval: Int)
Sets the the interval in milliseconds at which to fire PROGRESS events during playback.
Link copied to clipboard
open fun setVideoPath(path: String): Video
Replaces player content with the video at the specified path.
open fun setVideoPath(videoPath: String, languageCodeCaptionsMap: Map<String, String>): Video
Replace player content with the video and captions at the specified paths.
Link copied to clipboard
open fun setVideoSource(video: Video, source: Source)
Sets the video source that will be used for playback.