question

sumitbhardwajit avatar image
sumitbhardwajit asked

how to get Player current playback time while playing the hls Live Stream ?

Using the test source code from https://github.com/amzn/web-app-starter-kit-for-fire-tv/tree/master/out/simple-live to configure the HLS stream and running it on the web App tester to test the stream. I am getting the currentTime (current playback time ) when the stream starts but it becomes constant after some time. Is there any work around to get the current playback time for live stream as it seems like it is not implemented for live.

fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered

It is correct that time update is not currently available for the simple-live project, but it can easily be added from the simple project.

In the controls-view.js module there is a method called durationChangeHandler. This method will need to be added to the project's control-view-live.js module and the method call added to the handleVideoStatus method.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.