3

The devices are all >= 9.1

This works in the Simulator, for videos and PDFs. On iOS devices, the PDFs load, but the videos (.mp4) do not. I get the circle + triangle that inspires confidence that a video can be played, but no video thumbnail is seen behind it, and tapping that circle-inscribed triangle does nothing!

webView.loadFileURL(uRL, allowingReadAccessToURL: uRL)
  • I noticed this change also. If you tap the triangle it should play. I've not yet researched whether this change can be fixed – Bradley Thomas Nov 12 '15 at 19:16
  • Facing same issue. Interesting though, when I do this from the temp/www directory (which exists for IOS8 workaround) - loadFileURL does work! – T-Rex Dec 28 '15 at 15:49
  • 1
    I have the same issue. We have had some success getting it to play if a UIWebview plays it first - but not always able to be replicated: http://stackoverflow.com/questions/32780038/wkwebview-fails-to-play-local-audio/34968315#34968315 – Codezy Jan 26 '16 at 22:47
  • 1
    This is no longer an issue in iOS 10. Works as expected. Not in iOS 9 though. Video does not play. – rams Sep 20 '16 at 01:59
  • @rams Thanks! What should be done with this question, then? –  Sep 20 '16 at 18:57
  • @Jessy The question is still valid for iOS 9 and I am looking for an answer too. One option I am toying with is, switch to WebView for iOS 9 or lower and use WKWebView for iOS 10. – rams Sep 20 '16 at 19:47
  • Fought the same problem today. Thank to @rams I came up with the following solution: On iOS 8 and 9 I copy the content to Temp subfolder (doesn't have to be `temp/www`) and play from there. On iOS 10 I play directly from where it is. In my case that's Cache folder. – demosten Oct 19 '16 at 12:08

0 Answers0