Dynamic changing playlist

4 posts, 0 answers
  1. Mirco
    Mirco avatar
    3 posts
    Member since:
    Oct 2010

    Posted 24 Oct 2010 Link to this post

    Hello,
    what about the possibility of dynamically changing the playlist of the RadMediaPlayer?
    This is the problem: I need to check for the server-side change of the playlist anytime the media player ends the visualization of a certain video file. At this time I need to check for the following video to show in my server-side playlist and then to start it into the mediaplayer. I know that I must crate dinamically the RadMediaItem starting from my server-side playlist but ...when?
    I've tried with the events of the MediaPlayer but I did'nt succed.
    Moreover, I need to show only the video at fullscreen without any control and playlist visible. Is it possibile?
    Thanks,
    Mirco
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 28 Oct 2010 Link to this post

    Hi Mirco,

     I'm not sure what exactly is causing you troubles, but as far as I understand the case - you should  handle the CurrentStateChanged and query your server playlist using remote call. Then you should get the changed playlist and recreate the MediaItems (or better you can bind the ItemsSource property to a ObservableCollection and change it according to the new playlist items.) 
    About your second inquiry - you can do this with changing the ControlTemplate dynamically when in Full screen and not. Also note that with the upcoming Q3 release the RadMediaPlayer will support natively FullScreen and also we will add the Feature you requested about hiding the panel with media controls.
    If you have further questions, please let us know. 

    Sincerely yours,
    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
  3. DevCraft banner
  4. Geovani
    Geovani avatar
    2 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    Hello, I’m working on dynamically changing the Playlist of the RadMediaPlayer. Like you said, I’ve created an ObservableCollection and I change it according to the new playlist items. It’s working perfectly.

    When I hit the delete video button in the same screen, it deletes the selected video from the ObservableCollection and sets the property SelectedIndex to -1. But the progress bar, current time, total seconds, total time doesn’t change.
    What I need is set all these properties to 0. What could I do to resolve it?

    private void client_DeleteDocumentCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
    {
        this.items.Remove(this.mediaPlayer.SelectedMediaItem);
        this.mediaPlayer.SelectedIndex = - 1;
        this.mediaPlayer.IsPlaylistVisible = true;
    }


  5. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 09 Nov 2010 Link to this post

    Hi Geovani,

    You could set the Position property to 0. But this will change the progress bar only.

    Currently there is no way to set CurrentTime(Seconds) and TotalTime(Seconds) because they are read only. The player changes these values internally when the movie is playing. But when the movie is stopped and item is removed from the player these properties are left unchanged. This is a bug and we will try to fix it with one of our next internal builds. I've logged the bug and you can track for its progress through following link: http://www.telerik.com/support/pits.aspx#/public/silverlight/3933

    Sincerely yours,
    Hristo
    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
Back to Top