This is a migrated thread and some comments may be shown as answers.

play video while downloading

6 Answers 113 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
xiaofeng
Top achievements
Rank 1
xiaofeng asked on 31 Dec 2010, 03:27 AM
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

6 Answers, 1 is accepted

Sort by
0
xiaofeng
Top achievements
Rank 1
answered on 31 Dec 2010, 05:26 AM
Help.
0
Hristo
Telerik team
answered on 31 Dec 2010, 09:32 AM
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
0
xiaofeng
Top achievements
Rank 1
answered on 31 Dec 2010, 11:11 AM
Then ,is there a property to set the value of the buffer?or just itself control this.
Thank you!
0
Hristo
Telerik team
answered on 31 Dec 2010, 12:11 PM
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
0
Marc Roussel
Top achievements
Rank 2
answered on 02 May 2011, 12:22 PM
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
0
Kiril Stanoev
Telerik team
answered on 05 May 2011, 09:27 AM
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
Tags
MediaPlayer
Asked by
xiaofeng
Top achievements
Rank 1
Answers by
xiaofeng
Top achievements
Rank 1
Hristo
Telerik team
Marc Roussel
Top achievements
Rank 2
Kiril Stanoev
Telerik team
Share this question
or