我正在使用以下代码通过wowza媒体服务器播放manifest.f4m vod流。但它无法正常工作如果有人知道请帮助。
class func deleteAnonymousUserListSettings(completetion:(result:Bool, error:NSError!) -> Void){
var queryListSettings = PFQuery(className: "ListSettings")
queryListSettings.findObjectsInBackgroundWithBlock { (objects: [AnyObject]?, error: NSError?) -> Void in
if let objs = objects as? [PFObject] where error == nil {
PFObject.deleteAllInBackground(objs, block: { (success, error) -> Void in
if success{
completetion(result: success, error: error)
}
})
}
}
}
答案 0 :(得分:1)
截至目前,HTML5不支持原始f4m。考虑将视频文件转换为兼容格式。
答案 1 :(得分:0)
<video width="320" height="240" controls>
<source src="http://localhost:1935/vod/_definst_/mainVideo/smil:mainVideo.smil/manifest.f4m" type="video/f4m">
Your browser does not support the video tag.
</video>
试试这段代码......