Is it possible to tell an SSME that here's the URL, and I want you to prebuffer now with the highest bitrate. So when I tell you to play in 10 seconds, you can start with the higher quality.
@blueeinstein - there is no way to do this today. There is an indirect way to workaround this. You could call SelectTracksForStream API to restrict the bit-rates to high bit-rate only and once you start playing you could add the other tracks back using the
same API. This is not the best way to handle this but more of a make shift solution.
SSMESmooth Streaming Player Development Kit
Marked as answer by vsood on Feb 05, 2010 03:19 AM
How to start a certain quality levels, call SelectTracks API to select the bitrate you wan to start at, then call SelectTracks again to relax this once the stream is playing
There is a property called BufferingTime, you can use that to tell SSME how much to buffer before it starts playback - I am not sure if this is what your second question was.
Alternatively, to get the best of both worlds (pre-buffer high quality bitrate AND have enough buffer to sustain your player) -- you can play the video inside a hidden DIV (taking into consideration vsood's selectTrack API) for a few seconds. Then, stop
and seek to the start point.
When the user finally hits play, it would already have those high bitrate chunks readily available. Enjoy :)
blueeinstein
13 Posts
Prebuffering on Smooth Streaming?
Feb 01, 2010 01:19 PM|LINK
Is it possible to tell an SSME that here's the URL, and I want you to prebuffer now with the highest bitrate. So when I tell you to play in 10 seconds, you can start with the higher quality.
prebuffer
vsood
160 Posts
Microsoft
Moderator
Re: Prebuffering on Smooth Streaming?
Feb 01, 2010 04:22 PM|LINK
@blueeinstein - there is no way to do this today. There is an indirect way to workaround this. You could call SelectTracksForStream API to restrict the bit-rates to high bit-rate only and once you start playing you could add the other tracks back using the same API. This is not the best way to handle this but more of a make shift solution.
SSME Smooth Streaming Player Development Kit
maxima120
8 Posts
Re: Prebuffering on Smooth Streaming?
Apr 26, 2012 02:31 PM|LINK
You are saying - there is no way to do this today (Jan 2010)...
I need to tell SSME to start buffering before user clicks Play button. Can it be done now?
Cool12
12 Posts
Re: Prebuffering on Smooth Streaming?
Apr 26, 2012 09:55 PM|LINK
I think its still not possible. The media starts out playing at the lowest quality, then bumps up.
maxima120
8 Posts
Re: Prebuffering on Smooth Streaming?
Apr 27, 2012 11:38 AM|LINK
Ok. these are two different problems. How to make the player start with higher quality is easy. I was going to do it myself but found ready code: http://stackoverflow.com/questions/7189741/iis-smooth-streaming-low-quality-on-start
My question here is - how to manage buffering. Is there a way to tell SSME from code to start buffering at a particular time.
vsood
160 Posts
Microsoft
Moderator
Re: Prebuffering on Smooth Streaming?
Apr 27, 2012 04:16 PM|LINK
Right said, there are two problems
maxima120
8 Posts
Re: Prebuffering on Smooth Streaming?
Apr 27, 2012 04:24 PM|LINK
blueeinstein
13 Posts
Re: Prebuffering on Smooth Streaming?
Apr 28, 2012 07:15 AM|LINK
Alternatively, to get the best of both worlds (pre-buffer high quality bitrate AND have enough buffer to sustain your player) -- you can play the video inside a hidden DIV (taking into consideration vsood's selectTrack API) for a few seconds. Then, stop and seek to the start point.
When the user finally hits play, it would already have those high bitrate chunks readily available. Enjoy :)