Limiting min/max bitrates?

Jul 21, 2011 at 4:24 PM

Is it possible to limit the max bitrate for the player on the client player side? How about minimum bitrate? (In our platform we'd like to allow clients to save bandwidth or adjust minimum quality.)

Jul 22, 2011 at 12:05 AM

If you subclass SMFPlayer you can access a property called ActiveAdaptiveMediaPlugin (or you can get it via the MediaPluginRegistered event and cast it to IAdaptiveMediaPlugin). That object has the following method on it:

        /// <summary>
        /// Specifies the range of video bitrates that can be downloaded.
        /// </summary>
        /// <param name="minimumVideoBitrate">the minimum bitrate that can be downloaded.</param>
        /// <param name="maximumVideoBitrate">the maximum bitrate that can be downloaded.</param>
        /// <param name="flushBuffer">flush the buffer</param>
        void SetVideoBitrateRange(long minimumVideoBitrate, long maximumVideoBitrate, bool flushBuffer = true);
Jul 22, 2011 at 12:39 AM

What does AvailableVideoBitrates do when you set it? I played with that on Media Open and that appeared to affect it as well... unless by coincidence ;)

Jul 22, 2011 at 12:56 AM

Hi Brandon, I was actually just looking at this and it actually doesn't do anything. We only update this property and never use its value. I'm considering making it readonly for now. Perhaps in the future we could use it to drive track selection.

Jul 22, 2011 at 2:59 AM

Grabbing the Adaptive plugin off the Registered event works great. We have a new feature :)

Thanks Tim!

Jun 19, 2012 at 2:09 PM

Hi. I cannot access to 

I'm interested in this solution. Has this URL changed? Thanks.

Jun 20, 2012 at 9:52 AM

I would also be interested in this, as using SetVideoBitrateRange does not actually seem to be limiting this anymore. This might have been the case with older versions, but in the current ones i can't really get that to work.