Click here to Skip to main content
13,297,321 members (60,950 online)
Rate this:
Please Sign up or sign in to vote.
See more:
can we retrieve the videos from a particular link.That should be from you tube and display all the videos from that particular link in one screen in windows phone 7.I tried it but flash player is not supporting in windows phone emulator.can you give me a code for that one?
Here is my code;
        public MainPage()
            // Set the data context of the listbox control to the sample data
            DataContext = App.ViewModel;
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);
        // Load data for the ViewModel Items
      private void MainPage_Loaded(object sender, RoutedEventArgs e)
            if (!App.ViewModel.IsDataLoaded)
        private void ListBox_Loaded(object sender, RoutedEventArgs e)
            WebClient Andbeyon = new WebClient();
            Andbeyon.DownloadStringCompleted += new DownloadStringCompletedEventHandler(Andbeyon_DownloadStringCompleted);
            Andbeyon.DownloadStringAsync(new System.Uri("", UriKind.Absolute));
        void Andbeyon_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
            var response = e.Result.Replace("$", "dlr");
            var jsonData =  JsonConvert.DeserializeObject<rootobject>(response);
            var src = jsonData.feed.entry.ElementAt(1).mediadlrgroup.mediadlrplayer.url;
            MediaPlayerLauncher player = new MediaPlayerLauncher();
            player.Media = new System.Uri(src, UriKind.Absolute);
            player.Controls = MediaPlaybackControls.All;
            player.Orientation = MediaPlayerOrientation.Landscape;
Posted 3-Oct-12 21:13pm
Updated 3-Oct-12 23:28pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171207.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100