![]() ![]() TVSDK calls the ITEM_Updated callback to indicate that the media item was refreshed and that its attributes, including the playback range, were updated. Use the MediaPlayer.getPlaybackRange method to get the virtual timeline time range.įor VOD, the range always begins with zero and the end value equals the sum of the main content duration and the durations of additional content in the stream (ads).įor a linear/live asset, the range represents the playback window range. TimeRange getPlaybackRange() throws MediaPlayerException Use the MediaPlayer.getPlaybackRange method to get the virtual timeline time range. Retrieve the playback range of the stream and determine the duration. long getCurrentTime() throws MediaPlayerException For live/linear streams, the returned time is always in the playback window range. The time is calculated relative to the resolved stream that might contain multiple instances of alternate content, such as multiple ads or ad breaks spliced into the main stream. This returns the current playhead position on the virtual timeline in milliseconds. Retrieve the current playhead time by using the MediaPlayer.getCurrentTime method. Wait for the player to be in at least the PREPARED state. You can use TVSDK to retrieve information about the player’s position in the media and display it on the seek bar. Display the duration, current time, and remaining time of the video
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |