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

Switching level manually take too long + live problem #257

Closed
seb-legat opened this issue Apr 27, 2015 · 4 comments
Closed

Switching level manually take too long + live problem #257

seb-legat opened this issue Apr 27, 2015 · 4 comments

Comments

@seb-legat
Copy link

Hello,

I use the plugin in a custom OSMF 2.0 player.

I've got an issue when I want to change the quality (level) manually.
The player indicate that it has successfully changed the currentDynamicStreamIndex with the "DynamicStreamEvent.SWITCHING_CHANGE" event.
But the screen is only updated with the requested quality when I receive the event "DisplayObjectEvent.MEDIA_SIZE_CHANGE", which is fired long time after.
The HLS video use 10 seconds segments but it take almost 1 minute to change quality.
I tried to change the buffer length & max buffer length in HLSSettings but without success.
Any idea how to make the quality change faster (without seeking to force the refresh) ?
I use the same methods to control quality with the HDS Akamai plugin, and it works flawlessly.

Other issue : when I pause a HLS live and resume later, the video continue to play from where it stopped, not where it should be on the live, and freeze after a certain time (as if it doesn't load the next segments). With the HDS live, when you pause the stream and resume it, it skip the part of the live corresponding of the pause (like a real live). How can I force the video to go to the real actual time of the live when resuming ?

Thanks by advance,
Sébastien

@mangui
Copy link
Owner

mangui commented Apr 27, 2015

@seb-legat indeed SWITCHING_CHANGE is triggered when fragment with new quality index will be downloaded. if you have a 60 seconds buffer upfront, the actual quality change will happen one minute after.
I will perform some changes soon so that flashls could support instant level switching when switching from auto to manual quality.
stay tuned

regarding your second issue: flashls support live DVR. you can pause/resume a live stream.
in your case , it is not a standard DVR "resume", it is a seek back to live.
this should be handled differently by the player.
instead of calling hls.stream.resume(), player should call hls.stream.play(null,-1) to seek back to live.
if you are using OSMF, this would require a change here:
https://github.com/mangui/flashls/blob/dev/src/org/mangui/osmf/plugins/traits/HLSPlayTrait.as#L45
cheers,
mangui

@seb-legat
Copy link
Author

Thank you for your fast answer !
I will reduce the buffer length until you put a new version of this great plugin online ;)
And thanks for the HLSPlayTrait class and the tip for the live.
Have a nice day !
Sébastien

@mangui
Copy link
Owner

mangui commented May 21, 2015

related to #282

@mangui
Copy link
Owner

mangui commented Jun 26, 2015

switching should be faster now with latest release

@mangui mangui closed this as completed Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants