UIWebView mediaPlaybackAllowsAirPlay
@property(nonatomic) BOOL mediaPlaybackAllowsAirPlay
Discussion of [UIWebView mediaPlaybackAllowsAirPlay]
The default value on both iPad and iPhone is YES.
UIWebView mediaPlaybackAllowsAirPlay example.
NSString *urlString = @"http://medialog.roamrlog.com/video.html";
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:url];
_webView = [[UIWebView alloc] initWithFrame:CGRectMake(50, 20, 280, 200)];
_webView.delegate = self;
_webView.allowsInlineMediaPlayback = YES;
_webView.mediaPlaybackAllowsAirPlay = NO;
[_webView loadRequest:urlRequest];
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:url];
_webView = [[UIWebView alloc] initWithFrame:CGRectMake(50, 20, 280, 200)];
_webView.delegate = self;
_webView.allowsInlineMediaPlayback = YES;
_webView.mediaPlaybackAllowsAirPlay = NO;
[_webView loadRequest:urlRequest];