none
Video streaming from youtube

    Question

  • 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">          
     </ExpressionPlayer:MediaPlayer>


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

    .xaml.cs


    Playlist list = new Playlist();
                PlaylistItem item = new PlaylistItem();
                item.IsAdaptiveStreaming = true;
                list.AutoLoad = true;
                list.AutoPlay = true;
                item.MediaSource = new Uri("http://www.youtube.com/get_video?asv=3&t=vjVQa1PpcFOOWuwCrK7Ssn13plbCGwDxNhIzbPj4Tko=&fmt=34&tmi=1&el=detailpage&noflv=1&video_id=SV432h24oYA", UriKind.Absolute);
                list.Items.Add(item);
                player.Playlist = list;
                player.Play();

    Monday, January 03, 2011 9:27 AM