0

I have an app, that has a wall, in which there can be text and YouTube links. What I want to do is to detect if that video is from YouTube, that's not hard, but the other part is to play it inside the app, not exiting it. Which I find quite hard to do.

Should I look into UIWebView, or that would only play all the videos?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Andrius Steponavičius
  • 8,074
  • 3
  • 22
  • 25

1 Answers1

0

If you open a youtube link in a uiwebview, this will give you the proper experience.

To do this, create a webview and display it modally (or in a navigationController). Then send the URL request with the youtube link to the webview. You will then have to either manually or automatically dismiss the webview.

Take a look YouTube video in UIWebView and UIWebView modal YouTube player "Done" button action .

Community
  • 1
  • 1
James Paolantonio
  • 2,194
  • 1
  • 15
  • 32