How do I return to my Windows Phone app from a YouTube video?

I have a Windows Phone 7 app that launches a YouTube video. It does this by creating a WebBrowserTask and setting it's url to "" + id. This opens a new web browser which, then, launches the YouTube application.

Once they've seen the video, the user should be able to click the "Back" button to return to the application. However, when they click "back" it just returns them to the WebBrowserTask which then re-launches the video.

Does anyone know a way I can get them back to the app?


You could try to do this using a webbrowser control embedded in one of your Xaml pages. This would allow you to detect the back operation and to navigate within your app accordingly.

Category:windows phone 7 Time:2011-01-29 Views:0

Related post

  • Windows 8 Apps (Netflix, Hulu, Youtube, TuneIn) will not stream 2012-05-22

    Windows 8 Apps (Netflix, Hulu, Youtube, TuneIn) will not stream I went ahead and updated the OS on my ASUS G76VW-DS71 to Windows 8. Everything seems to be working fine, except for on thing: None of the streaming apps (Netflix, Hulu Plus, TuneIn, Yout

  • Windows Live Writer 2011 embed YouTube video sends a black image to my site instead 2011-05-20

    I'm developing a blog app, and using windows live writer 2011 to embed a YouTube video is pretty straight forward, but I've encounter a strange issue. Here is what I did, I copy a link from the YouTube site, for example,

  • windows phone app how to intergrate video player using only c# code 2011-06-02

    in my application i want to navigate from a page which is extending Canvas to the video player for video player page i hav created one class and i m doing this there MediaElement videoPlayer = new MediaElement(); videoPlayer.Source = (new Uri("some v

  • Windows 7 BSOD While watching youtube video 2012-09-05

    Hello I have a problem When i watched an video from youtube for a little while the computer started to freeze, Then i had an bluescreen I pushed the power button for 10 seconds so i can power off And here is the thing when i started up my computer Pr

  • sqlite database connection in c# to make a windows store app 2013-09-08

    I want to make a form and store its data in sqlite database for windows store app in windows 8.I am using visual studio 2012.I have made the form in xaml. The fields are like name,age etc. I am a beginner so I want to know how and where to write the

  • Windows 8 Camera App Creates Damaged Files (Video) 2014-02-12

    Every time I use the Windows Camera App to take a video on my Lenovo laptop, the file saves as an MP4 that cannot be played back in any program I have. The file saves as corrupted or damaged as soon as I stop the camera. I am not given the option to

  • Microsoft Sales exec promises 100,000 Windows 8 apps by January 2013 2014-06-22

    Can Microsoft really add 97,000 apps to the Windows Store between now and January 2013? Or is someone in Redmond doing some funny figuring? As of last week, there were an estimated 3,000-plus Windows Store style (Metro-Style) apps in the app store th

  • IE 10 (Windows 8 64 bit) youtube videos crash on desktop mode 2014-09-20

    Hello! I am using IE 10 on Windows 8 64 bit and youtube videos crash this browser on desktop mode. The same videos play on IE10 on modern mode, does anyone have the same problem? I have tryed on VIMEO and it works, so it seems to be a problem related

  • A way to return control to Windows when window is not the focus OpenGL - C++ 2011-06-13

    I was wondering if there was an OpenGL command to return control to Windows when the window the rendering is happening in is no longer the focus. As it stands, the mouse is constantly moved to the center of the screen even when it is not the focus. A

  • what is return type of in Javascript 2011-07-21

    I am writing code to download a PDF file using I am passing the URL path of the pdf file on a server., name, "width=910,height=750,scrollbars=yes"); I want to check if the downloading of file is successful or not. What

  • some windows 8 apps not oppening and return to start 2012-11-05

    some windows 8 apps not opening and return to start ,Skype , SkyDrive ,and the weather network.i refreshed the computer and reinstall the apps so apps worked.. but after one day i get the same problem . windows is up to date .how do i solve the probl

  • Word and Excel do not return to the windows 8 start screen after I close them 2012-11-14

    why does Word open the desktop and does not return to the windows 8 start screen once closed and where from I started it? Did I install office wrong? Is it a settings issue? --------------Solutions------------- Nothing you can do, that is a Windows 8

  • Some Windows 8 apps won't open and constantly return to Start screen 2014-03-17

    Some Windows 8 apps (Calendar, Photos, Messenger, etc.) do not open and return to the Start screen. I refreshed the computer, so the apps worked during that session. However, after I logged off and re-logged into the laptop the next day, the same app

  • Windows 8 Pro runs disc starts to load then says it failed to loaded and returns back to WIndows 7 what is wrong with the Program it is brand new? 2014-03-18

    Windows 8 Pro runs disc starts to load, then says it failed to loaded and returns back to WIndows 7 what is wrong with the Program it is brand new? --------------Solutions------------- Hi Penguin, Thank you for writing to Microsoft Communities. From

  • YouTube GetVideoUriAsync Returns Null & GetUrisAsync Return Null in Windows Phone 8.1 2015-01-29

    My code working fine before 2 days ago. with below code YouTube.Play("z9nihQkyKBA", YouTubeQuality.Quality480P, (ex) => { if (ex != null) { MessageBox.Show("Video Not Play Due some Technical Error !"); } }); but last one day my code not working we

  • Windows Phone App settings return to default 2015-03-03

    Each time I open the app and connect my Lumia 925 to my Windows 7 machine, the music sync settings return to default (iTunes library -- launches iTunes automatically) and I must manually change it to "Windows Libraries". Other settings do not stay ei

  • Design of a C# Windows Form App 2009-03-03

    I have a c# windows form app in which we did a rapid prototype for the client. The extent of my c# experience has been with ASP.NET/C# so its a bit different when it comes to the actual structure of the software. Time is a factor in this project sinc

  • Invoke Google Maps API V3 Javascript API from Windows Forms app? 2009-07-29

    Google has this fine new Google Maps API v3 which is a "Javascript API". Is there any possibility to invoke this API from a Windows Forms application written in Visual C# .net 3.5? EDIT: The goal is to convert addresses to lat/long format using the G

  • Implement Word Spell check in Windows Form App 2009-08-31

    I have an In-house windows form app that I would like to use Spell Checking in. Everyone has Office 2007 installed so I shouldn't have an issue there but I am having trouble getting this to fully work. Here is what I have: using System; using System.

Copyright (C), All Rights Reserved.

processed in 0.886 (s). 13 q(s)