Can nflx:// app run within an IOS app using UIWebView

I am writing an IOS app where I would like to launch the Netflix app (nflx://) within my app using UIWebView. I would like to have the Netfix movies run within my UIWebview structure so when the user stops the movie it will go back to my app control.

I have have done the following:

1). I can launch nflx:// within UIWebview and the app immediately launches by leaving my app.

NSURL *url = [NSURL URLWithString:@"nflx://"];

NSURLRequest *requestPage = [NSURLRequest requestWithURL: url];
     loadingView = [LoadingView loadingViewInView:webPage];


self.webPage.delegate = self;
[self.webPage loadRequest: requestPage];
     [self.webPage setScalesPageToFit:YES];

2). I have launched the Netflix website @"movies.netflix.com://. This allows the user to select the video within my app, but once the video starts it exits to the Netflix app.

NSURL *url = [NSURL URLWithString:@"@"movies.netflix.com://"];

NSURLRequest *requestPage = [NSURLRequest requestWithURL: url];
     loadingView = [LoadingView loadingViewInView:webPage];

self.webPage.delegate = self;
[self.webPage loadRequest: requestPage];
     [self.webPage setScalesPageToFit:YES];

Is this possible? If so any guidance would be helpful.

Thanks

Answers


If you left your app by using an url scheme, there is no way to go back to your app, if the other application does not provide an API for you to provide your scheme or the user manually goes back.


Need Your Help


About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.