fun loadMedia(mediaUrl: String, initPosition: Long?, initWindowIndex: Int?, autoPlay: Boolean, disableSeeking: Boolean, closedCaptions: List<SxClosedCaption>): Unit
mediaUrl
- Url of the media file.
initPosition
- Position (in milliseconds) of the media file from where to start.
initWindowIndex
- Window index of the media file from where to start.
autoPlay
- true
when the media should start playback as soon as possible.
disableSeeking
- true
to not allow the user to use the controller for seeking the
media file.
closedCaptions
- List of SxClosedCaption that will be loaded and displayed with the
provided media.