Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What your probably seeing is that the youtube video is running javascript to play the video, you'd have to intercept the javascript callbacks to see that. Here's a link to the youtube video player api, detailing the callbacks, <a href="https://developers.google.com/youtube/js_api_reference#SubscribingEvents" rel="nofollow">https://developers.google.com/youtube/js_api_reference#SubscribingEvents</a></p> <p>If you just want to embed a youtube video in an iOS application then use this.</p> <p>Using the mobile YouTube site isn't great, I had lots of problems with it in the past and ended up making a UIWebView category. I came across your question and decided to throw it on github :-)</p> <p><a href="https://github.com/enigmaticflare/UIWebView-YouTube--iOS-Category--ARC-compliant-code" rel="nofollow">https://github.com/enigmaticflare/UIWebView-YouTube--iOS-Category--ARC-compliant-code</a></p> <p>UIWebView+YouTube iOS category to simplify loading youtube videos.</p> <p>Instructions</p> <p>1) Add these files to your project</p> <pre><code>UIWebView+YouTube.h UIWebView+YouTube.m </code></pre> <p>2) Initiate UIWebView for example</p> <pre><code>@property (strong, nonatomic) UIWebView *webView; @synthesize webView = _webView _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,212,172]; //set the X,Y origin of CGRect to where you want the webView to appear. _webView.delegate = self; [_webView loadYouTubeVideoID:@"gR8dO7Cln6M"]; [self.view addSubView:_webView]; </code></pre> <p>Good luck, hope this is what your looking for :)</p> <p>Adam</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload