play video while downloading

7 posts, 0 answers
  1. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 30 Dec 2010 Link to this post

    If I just set a URI to RadMediaPlayer,does it start to play while downloading,.or it will play until the video download completely.
    If not,how to implement this?
    This is my code
    Uri uri = new Uri(Application.Current.Host.Source, ".." + filepath);
    Media.MediaElement.Source = uri;

     Thank you
  2. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 30 Dec 2010 Link to this post

    Help.
  3. DevCraft banner
  4. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 31 Dec 2010 Link to this post

    Hello xiaofeng,

    The RadMediaPlayer should start playing the movie after a bunch of data is loaded (buffered). The player won't wait until the full movie is downloaded from the network.

    Hope this helps.

    All the best,
    Hristo
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  5. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 31 Dec 2010 Link to this post

    Then ,is there a property to set the value of the buffer?or just itself control this.
    Thank you!
  6. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 31 Dec 2010 Link to this post

    Hello xiaofeng,

    MediaPlayer uses the Silverligh MediaElement internally to play media. The MediaElement exposes few buffering methods you can use and it controls the buffering process internally.

    Regards,
    Hristo
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  7. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 02 May 2011 Link to this post

    Hi,

    I was having an issue with this and I found this thread.
    I have the video downloading and the player doesn't start playing it but just when the video is finish downloading that the video starts playing.  Any detail on how we can set so the video could at least start playing if it's possible ?

    My video is about 1 minute in length but even at this scale, the video should start playing when possible as the speed of the download is relatively fast
  8. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 05 May 2011 Link to this post

    Hi Marc,

    To be honest, I am not really sure what is causing the issue you are experiencing. My first idea was to ask you to check RadMediaPlayer's MediaElement property and its BufferingTime. However, the buffering time is 5 seconds and by default your movie should start playing almost immediately.
    In its core, RadMediaPlayer is simply a wrapper around Silverlight's MediaElement control and we don't do anything internally to control the buffering of the video.
    You can do a simple test to see whether the problem is within RadMediaPlayer or not. Set your video to be a source to a simple MediaElement control. Set the AutoPlay property to True and see if the video starts playing.
    If the video doesn't start playing, then I believe the problem is with the video itself.

    Let me know how it goes.

    Kind regards,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner