Greetings all,
When using the RadMediaPlayer control in my web application, I am having trouble clearing the multimedia sources that have already been loaded into the control. The user has the option of adding a new link and corresponding description which are saved in a SQL Server table of video records. This list is loaded into a dropdown box for selection. When a video is chosen, I am setting the source property as follows, based on the link retrieved from the database:
MMOMediaPlayer.Source = <link from db>
This works fine and the video plays as expected. However, I want to give the user the ability to clear the control of any video content and reset it to its original state when the page first loaded. I have a button that performs this function, with server-side code as follows:
MMOMediaPlayer.Sources.Clear()
However, after this code executes, the most recently viewed video is still present in the viewer, and begins to play from the last position (time) within the clip. I've also tried using MMOMediaPlayer.Sources.RemoveAt(0), but this also seems to have no effect.
Any help would be appreciated.
When using the RadMediaPlayer control in my web application, I am having trouble clearing the multimedia sources that have already been loaded into the control. The user has the option of adding a new link and corresponding description which are saved in a SQL Server table of video records. This list is loaded into a dropdown box for selection. When a video is chosen, I am setting the source property as follows, based on the link retrieved from the database:
MMOMediaPlayer.Source = <link from db>
This works fine and the video plays as expected. However, I want to give the user the ability to clear the control of any video content and reset it to its original state when the page first loaded. I have a button that performs this function, with server-side code as follows:
MMOMediaPlayer.Sources.Clear()
However, after this code executes, the most recently viewed video is still present in the viewer, and begins to play from the last position (time) within the clip. I've also tried using MMOMediaPlayer.Sources.RemoveAt(0), but this also seems to have no effect.
Any help would be appreciated.