Video streaming from youtube


  • Hi,

    Please help in writing the code for video streaming from youtube using ExpressionPlayer.

    Please send me the example code or else the url of the example, Quick reply will be appreciated.

    Monday, January 03, 2011 9:10 AM

All replies

  • Hi,

    I declared a player in .xaml

    <ExpressionPlayer:MediaPlayer  x:Name="player">          

    Here i created a playlist and added to player, but the iam getting the error saying the URL is wrong


    Playlist list = new Playlist();
                PlaylistItem item = new PlaylistItem();
                item.IsAdaptiveStreaming = true;
                list.AutoLoad = true;
                list.AutoPlay = true;
                item.MediaSource = new Uri("", UriKind.Absolute);
                player.Playlist = list;

    Monday, January 03, 2011 9:27 AM