bitmovin / bitmovin-player-ui

The Bitmovin Adaptive Streaming Player UI
MIT License
126 stars 87 forks source link

`player.seek` occationally jumps to an earlier position than specified #218

Closed ghost closed 5 years ago

ghost commented 5 years ago

I’ve created my own instance of the player and loaded the Parkour video. I’m implementing custom UI to create and playback clips. When I do player.seek(24.979331) repeatedly by clicking a custom made button, it goes to the correct time most of the times. However, occationally it goes to around 19.95. I have logged to console the exact time that I’m seeking to, and the ON_SEEKED event handler logging the result of calling player.getCurrentTime() immediately after being triggered. Here is the output in DevTools console:

{currentTime: 24.979331}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 19.952505}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 19.946666}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}
playbackclipbutton.ts:38 EVENT.ON_SEEKED {payload: {…}, currentTime: 24.98}

I could not reproduce this by using the Bitmovin Player UI Demo using the predefined seek function calls. But in my customized player UI, I don’t do any other function calls that should affect playback.

Is this a known issue? Do you know about any fix or workaround?

stonko1994 commented 5 years ago

Since you are using the player API player.seek(…) this sounds to be unrelated to the UI.

For player support please contact support@bitmovin.com for further help.

ghost commented 5 years ago

I understand – I will try that. Thanks!