ios - _itemFailedToPlayToEnd when playing local mp4 using UIWebView -
I am trying to play a local MP4 video using html5 video.
& lt; Video id = "media" control = "true" preload = "auto" src = "xxxx.mp4" & gt; & Lt; / Video & gt;
But its not the role. I get the following error
_itemFailedToPlayToEnd: {kind = 1; New = 2; Older = 0; }
Any suggestions for playing video in UIWebView would be appreciated.
What you can do, so that you are not hosting videos on your website, on YouTube Post a video, and embed it on your website so that you copy and paste the embedded code into your HTML. Or you can:
- (zero) viewDidoadload {[Super Viewedload]; NSString * embedHTML = @ "\ gt; & gt; \ & lt; style = type \" text / css \ "& gt; \ body {\ background-color: transparent; \ color : White; \} \
Try it, should do the trick
Comments
Post a Comment