收录日期:2020/10/28 11:09:04 时间:2010-09-07 03:44:39 标签:iphone,cocoa-touch,uikit,uiwebview,media

I want to know if I could play a mp3 file or mp4 (video) file through 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