UIWebView, mediaPlaybackRequiresUserAction

爱⌒轻易说出口 提交于 2019-12-11 18:18:41

问题


i have a webview that contains a web page, the web page only contains one video and once the web page open the video inside this web page played directly!!, Is this Property ( mediaPlaybackRequiresUserAction ) could helps he out??

i read the documentation but i didnt got the point.. https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950

thnx


回答1:


Well mediaPlaybackRequiresUserAction is set to YES by default, thus preventing any media playback without user interaction. If you set mediaPlaybackRequiresUserAction to NO, audio and video in your UIWebView can autostart in it.



来源:https://stackoverflow.com/questions/15731667/uiwebview-mediaplaybackrequiresuseraction

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