RadMediaPlayer playing process states

2 posts, 0 answers
  1. Guillermo
    Guillermo avatar
    4 posts
    Member since:
    Aug 2012

    Posted 11 Sep 2012 Link to this post

    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 . 
  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 14 Sep 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top