We have a live stream playing using react-native-jw-media-player. We are using a library called react-native-music-control for notification screen controls. This function is called when a user clicks the skip backward button in the notification screen.
We expect jwPlayer.position() to resolve to a negative number, which it does and behaves correctly while the video is playing. However, when the video is paused and a user tries to skip backwards, the position only resolves to a negative value the first time, and then it switches to a positive value the second time it is pressed (while video is still paused). This is a screenshot of a debug breakpoint after the second time it was pressed:
And then as you can see in the first picture we call jwPlayer.seekTo(new_position) after we run some calculations on the position. Here's a shot of our breakpoint for the onSeek callback and the results after the first and second click. We don't understand where/how/when this position is being set to a positive value and any/all insight would be greatly appreciated π π π
@chaimPaneth thank you very much for all of your help and great work on this wonderful library π
We have a live stream playing using react-native-jw-media-player. We are using a library called react-native-music-control for notification screen controls. This function is called when a user clicks the skip backward button in the notification screen.
We expect
jwPlayer.position()
to resolve to a negative number, which it does and behaves correctly while the video is playing. However, when the video is paused and a user tries to skip backwards, the position only resolves to a negative value the first time, and then it switches to a positive value the second time it is pressed (while video is still paused). This is a screenshot of a debug breakpoint after the second time it was pressed:And then as you can see in the first picture we call
jwPlayer.seekTo(new_position)
after we run some calculations on the position. Here's a shot of our breakpoint for the onSeek callback and the results after the first and second click. We don't understand where/how/when this position is being set to a positive value and any/all insight would be greatly appreciated π π π@chaimPaneth thank you very much for all of your help and great work on this wonderful library π