I'm trying to play a HTML5 video on a website in a UIWebView
on iOS 8.
The website url is http://m.bild.de/video/clip/fifa-ballon-d-or/aufsager-ballon-dor-abend-39313060,variante=L,wantedContextId=39305342.bildMobile.html
The html code for the video looks like this:
<video controls="" preload="auto" src="http://videos-world.ak.token.bild.de/BILD/39/31/30/60/39313060,property=Video.mp4" poster="http://bilder.bild.de/fotos-skaliert/stand-aufsager-ballon-dor-abend-39313026/3,w=788,c=0.bild.jpg" style="width: 100%; height: 100%;"></video>
This code above will be loaded asynchronously and placed via javascript. I can not modify this html code.
As soon as the article is loaded i can see the play button on top of the video. When i tap it the button gets highlighted but nothing happens.
On iOS 7 it works. On iOS 8 is doesn't. When i open the article in Safari the video plays fine on iOS 7 and 8.
I've also added these two lines for the UIWebView, but it still doesn't play.
self.webView.allowsInlineMediaPlayback = YES;
self.webView.mediaPlaybackRequiresUserAction = NO;