“Plugin handled load” dialog appears when playing a video within a web page within UIWebView

可紊 提交于 2019-12-04 09:29:06
Barlow Tucker

The problem would seem to be in the fact the UIWebView does not include the same user agent string as mobile safari. (See this question here).

If your video is being converted to HTML5 or MP4 as your comment above implies, you will want to change the User Agent of your UIWebView to match mobile Safari so your website knows to convert the view from flash (flash will not play on iOS). Here is an answer to how to change the User Agent on a UIWebView.

Note, I have not tried this approach before.

Apparently the TYPO3 Media Player checks the User-Agent field of the HTTP request, and supplies iOS compatible video when it finds iOS Safari. The UIWebView supplies a different user agent, which the Typo 3 Media Player doesn't recognize, so it supplies content that triggers the dialog popup.

There are two options for fixing this: 1) Work with TYPO3 to fix their media player's customization for user agent functionality to recognize the user agent supplied by UIWebView as needing iOS compatible video. 2) Change the user agent reported by your instance of UIWebView to match what the TYPO3 media player expects. A quick search will find various guides on setting the user agent for a UIWebView available on the Web.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!