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

How set a buffer ?

7 Answers 229 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
herve
Top achievements
Rank 1
herve asked on 23 Nov 2008, 05:43 PM

hi,

how do i do for set a buffer of 5 seconds to the player?

thx for helping

best regards

herve

7 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 24 Nov 2008, 08:11 AM
Hello Herve,

RadMediaPlayer exposes its MediaElement through the MediaElement property. You can use this MediaElement property to set a buffering time.
For example:
private void mediaPlayer1_Loaded(object sender, RoutedEventArgs e)  
{  
    this.mediaPlayer1.MediaElement.BufferingTime = TimeSpan.FromSeconds(5);  

I have attached a sample XAML page and its code-behind that demonstrate the above functionality.
Let me know how this works for you!


Greetings,
Kiril Stanoev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
herve
Top achievements
Rank 1
answered on 24 Nov 2008, 08:53 AM
May i call you master? :)
works like a charm!
thx a lot
0
Amit Gupta
Top achievements
Rank 1
answered on 07 Oct 2009, 08:28 PM

Hi. setting bufferingtime in xaml (<

 

telerik:RadMediaItem BufferingTime="5"...) doesnt seem to work (it keeps buffering forever; never plays)... Can BufferingTime have to be set in code behind only?

 

0
Kiril Stanoev
Telerik team
answered on 08 Oct 2009, 07:40 AM
Hello Amit,

By setting BufferingTime="5" you actually say that the BufferingTime is 5 hours, 0 minutes and 0 seconds.
If you want to set the BufferingTime to 5 seconds, you need to do the following:

BufferingTime="0:0:5"

Let me know how it works for you.

Regards,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Amit Gupta
Top achievements
Rank 1
answered on 08 Oct 2009, 07:00 PM
Works like a charm; Thank you!
0
Edo Cof
Top achievements
Rank 1
answered on 21 May 2010, 07:08 PM
The RadMediItem should check if buffer is set to more then Video time it should automatically set it to maximum.

So it could never happened that play is never execute.
0
Miro Miroslavov
Telerik team
answered on 27 May 2010, 12:35 PM
Hi Edo Cof,

You're correct. We will fix this for next releases.
Thank you.

All the best,
Miro Miroslavov
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
herve
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
herve
Top achievements
Rank 1
Amit Gupta
Top achievements
Rank 1
Edo Cof
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or