Skip to content

Commit

Permalink
DanielWagnerHall for MykolaDzyuba: Fixing mediaPlaybackRequiresUserAc…
Browse files Browse the repository at this point in the history
…tion property check. Fixes issue 3152.

r15423
  • Loading branch information
illicitonion committed Jan 6, 2012
1 parent 5800eba commit dea234c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/src/objc/WebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)viewDidLoad {
[[self webView] setScalesPageToFit:NO];
[[self webView] setDelegate:self];

if ([[UIDevice currentDevice] respondsToSelector:@selector(setMediaPlaybackRequiresUserAction)]) {
if ([[self webView] respondsToSelector:@selector(mediaPlaybackRequiresUserAction)]) {
[[self webView] setMediaPlaybackRequiresUserAction:NO];
} else {
//Too bad, though it seems iOS 3 supported this by default
Expand Down

0 comments on commit dea234c

Please sign in to comment.