將xcode升級到最新版本5.0後,我的應用程序無法正常工作。iOS7 WebView jwplayer和超鏈接不工作
在我的應用程序中,有一個webview,它將加載jwplayer播放視頻,它在iOS5,6上運行完美,但不是iOS7。
有沒有人遇到過這個問題?在此先感謝
更新代碼
NSString *htmlString = @"<!DOCTYPE html><html><head><script src='http://54.246.122.18:8080/cvplay/public/javascripts/jwplayer.js' type='text/javascript' charset='utf-8'></script><script type='text/javascript'>jwplayer.key='MyKey';</script></head><body style='background:black;'><div style='width:320px;height:180px;margin:auto;position:relative;top:-18px;left:-8px;'><div id='stream'>CVplay</div></div><script type='text/javascript'>jwplayer('stream').setup({width:320,height:180,autostart: true,file: 'https://xxx.com/render/13807449869021017925092789.mp4',skin: 'roundster',modes: [{ type: 'html5',config: {file: 'https://xxx.com/render/13807449869021017925092789.mp4'}},{ type: 'download' }]});</script></body></html>";
[webView loadHTMLString:htmlString baseURL:nil];
您是否有示例可以共享?它只是在移動Safari中作爲網頁工作,還是隻在應用程序中打破? – emaxsaun
嗨,Ethan,我剛剛用我的代碼更新了我的問題。僅供參考,它在iOS5,6上完美運行,但不支持iOS7。這只是播放按鈕不能被點擊。 –
您是否僅在應用程序中遇到問題,或者在iOS7下是否也在移動Safari中突然出現問題? – emaxsaun