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

RadMediaPlayer playing process states

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Guillermo
Top achievements
Rank 1
Guillermo asked on 11 Sep 2012, 02:09 PM
Hi, i am using VS2010+Silverligth5+Telerik Q1 2012 SP1

I'm using the RadMediaPlayer with a single RadMediaItem changing it source property depending on the selected row in a gridview.
Some times when select a new row (Source) and given play.
It takes a few minutes between fail or start playing the new audio track.
What i need is a way to know in what state is the process, and if it fails to find the cause if that is possible.
My goal is to use an example BusyIndicator say something like Track Loading ... and if it fails to show an error message like that Audio Track don't exist in that location . 

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 14 Sep 2012, 07:12 AM
Hi Guillermo,

 The RadMediaPlayer exposes the underlying MediaElement control, that has the MediaFailed event. You can handle this event and check if you can handle the error and find the reason behind the media failing. 
Regarding the pause you notice between the tracks - it depends on the actual media file - if it supports progressive download, adaptive streaming or any more sophisticated technology. If it does not support any - the user will have to wait for the whole file to be downloaded before play.
Hope this helps. 

Kind regards,

Miro Miroslavov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
General Discussions
Asked by
Guillermo
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or