开发者

iPhone SDK - Play Audio/Video through UIWebView

开发者 https://www.devze.com 2023-01-15 05:58 出处:网络
I want to know if I could play a mp3 file or mp4 (video) file t开发者_运维百科hrough an UIWebView by loading a simple url request. I have already tried sending the UIWebView to a video link (e.g. http

I want to know if I could play a mp3 file or mp4 (video) file t开发者_运维百科hrough an UIWebView by loading a simple url request. I have already tried sending the UIWebView to a video link (e.g. http://google.com/blah.mp4) but it will flash a quick QuickTime logo and show a black screen. However in MobileSafari it streams fine. Is there anyway to play a media file through an UIWebView??!

Thanks,

Kevin


Use the HTML5 <audio> tag.

Linda

0

精彩评论

暂无评论...
验证码 换一张
取 消