Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[video_player] Live streaming content starts playing immediately when seekTo is called #742

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

JSUYA
Copy link
Member

@JSUYA JSUYA commented Sep 11, 2024

According to Tizen media player's member, Tizen player does not support seekTo for live streaming content.

Therefore, duration is returned as 0. When duration is 0, an error occurs due to a zero divide error(NaN value) in the progress bar of video_player. And the resume behavior(play()) of video_player calls seekTo(0) when duration and position are the same(when the video has been played to the end), which causes the video to not be played again in the case of live streaming content.

Therefore, in the case of live, if set_play_position() fails, call play() immediately to playback.

… SeekTo() is called

According to Tizen media player's member, Tizen player does not support seekTo for live streaming content.

Therefore, duration is returned as 0. When duration is 0, an error occurs due to a zero divide error(NaN value) in the progress bar of video_player.
And the resume behavior(play()) of video_player calls seekTo(0) when the duration and position are the same(when the video has been played to the end), which causes the video to not be played again in the case of live streaming content.

Therefore, in the case of live, if set_play_position fails, call play() immediately to playback.
A
@JSUYA
Copy link
Member Author

JSUYA commented Sep 11, 2024

You can test it using this(https://live-ch2.cjonstyle.net/cjosplus/live2/playlist.m3u8).

@JSUYA JSUYA merged commit 95fe22f into flutter-tizen:master Sep 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants