Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6528581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:32:52+00:00 2026-05-25T09:32:52+00:00

I m hosting some adaptive streaming video on windows azure and I have noticed

  • 0

I m hosting some adaptive streaming video on windows azure and I have noticed that at the beginning the video start with the lowest avaiable bitrate. That is a big issue.

I have seen by searching the internet that a trick can be done by hooking the manifestready event and removing the lowest bitrates and then adding them back after some time.
It make sense but I have seen no sample code of doing that.

I got the player code from expression encoder 4 and had a look but found nowhere where to do the change.

Does someone have more info on improving startup for smooth streaming?

Thank you very much

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:32:52+00:00Added an answer on May 25, 2026 at 9:32 am

    Hello I posted the question to the Media Platform Player forum and got an answer that works.

    The discussion is here: http://smf.codeplex.com/discussions/271042

    Here is the code I use:

    public MainPage() {
            InitializeComponent();
            player.MediaPluginRegistered += new EventHandler<CustomEventArgs<IMediaPlugin>>(player_MediaPluginRegistered);
            player.PlayStateChanged += new EventHandler<CustomEventArgs<MediaPluginState>>(Player_PlayStateChanged);
        }
    private IAdaptiveMediaPlugin _adaptivePlugin = null;
    private bool isStartupHeuristicsActive = false;
    
    void player_MediaPluginRegistered(object sender, CustomEventArgs<IMediaPlugin> e) {
        var adaptivePlugin = e.Value as IAdaptiveMediaPlugin;
        if (adaptivePlugin == null) return; 
        if (_adaptivePlugin == null) _adaptivePlugin = adaptivePlugin;
        _adaptivePlugin.ManifestReady +=new Action<IAdaptiveMediaPlugin>(_adaptivePlugin_ManifestReady);
    }
    
    void  _adaptivePlugin_ManifestReady(IAdaptiveMediaPlugin obj)
    {
        if (_adaptivePlugin != null)
        {
            var videoStream = _adaptivePlugin.CurrentSegment.SelectedStreams.Where(i => i.Type == StreamType.Video).FirstOrDefault();
    
            if (videoStream != null)
            {
                var averageBitrate = videoStream.AvailableTracks.Average(t => t.Bitrate);
    
                var track = videoStream.AvailableTracks.FirstOrDefault(t => t.Bitrate >= averageBitrate);
                if (track != null)
                {
                    isStartupHeuristicsActive = true;
                    videoStream.SetSelectedTracks(new[] { track });
                }
            }
        }
    }
    
    private void Player_PlayStateChanged(object sender, CustomEventArgs<MediaPluginState> e)
    {
        if (isStartupHeuristicsActive && e.Value == MediaPluginState.Playing)
        {
            isStartupHeuristicsActive = false;
            if (_adaptivePlugin != null)
            {
                var videoStream = _adaptivePlugin.CurrentSegment.SelectedStreams.Where(i => i.Type == StreamType.Video).FirstOrDefault();
                if (videoStream != null)
                {
                    videoStream.SetSelectedTracks(videoStream.AvailableTracks);
                }
            }
        }
    }
    

    Thank you

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some video files that will be played with the help of a
I have a website that is hosting some data for an iOS app through
I have a windows shared hosting and i need to run some scheduled c#
I have ASP.NET application on hosting provider for some tasks that I can't do
I have a web-site that has a hosting at some popular hosting company. The
We are going to be hosting some videos that will be streamed (not progressive
Usually, I try to set my folders to have permission 775, but some web-hosting
I am a total newbie in servers/hosting etc, although I have some experience in
So I have Apache Web Hosting from some provider. how to determin how much
I have bought hosting space from some third party provider. Now I am thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.