As mentioned in another mention, use MMPPF (formerly Silverlight Media Framework). A much more full-featured player and relatively easy to configure (with video tutorials, too).
For bitrate - yes, the Smooth Streaming algorithm is designed to minimize delays - so the lowest bit / bit is used at startup. However, you can do what you want.
You will need to do 2 things first:
Add a handler to the OnMediaPluginRegistered player OnMediaPluginRegistered . In this case, check if it is IAdaptiveMediaPlugin - you will need an instance of this plugin. Here's a sample ...
IAdaptiveMediaPlugin _adaptivePlugin = null; void OnMediaPluginRegistered(object sender, Microsoft.SilverlightMediaFramework.Core.CustomEventArgs<Microsoft.SilverlightMediaFramework.Plugins.IMediaPlugin> e) { var adaptivePlugin = e.Value as IAdaptiveMediaPlugin; if (adaptivePlugin == null) { return; } if (_adaptivePlugin == null) { _adaptivePlugin = adaptivePlugin; } }
Once you do this, wait until one of the events is open for media events (MediaOpened or something else), you will now have access to the method on IAdaptiveMediaPlugin , which is called SetVideoBitrateRange(...) .
For example:
_adaptivePlugin.SetVideoBitrateRange(minBitrate, maxBitrate, true);
This should give you what you need.
Brandon
source share