-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何同时加载视频和音轨 #3
Comments
一个正常的dash链接就是下载mpd文件,例如http://dash.edgesuite.net/akamai/bbb_30fps/bbb_30fps.mpd。你这个不是一个das播放链接 |
上面的JSON详细大概是这样的bilibili_player_api_videoplayurl。 let video = videoArray[0]["base_url"].stringValue
let audio = json["data"]["dash"]["audio"][0]["baseUrl"].stringValue
self.videoLength = CUnsignedLongLong(json["data"]["timelength"].rawString()!)!/1000
let videoMedia = VLCMedia(url: URL(string: video)!)
self.player.media = videoMedia
self.player.addPlaybackSlave(URL(string: audio)!, type: VLCMediaPlaybackSlaveType.audio, enforce: true)
self.player.drawable = self.mediaView
self.player.play() 该怎么添加一个音频 |
目前不支持手动增加音频 |
了解了,感谢大佬抽空解答。 |
我也对这个feature很感兴趣,请问有计划添加这个吗? |
没有计划支持这个。你可以把他包装成dash的格式,这样就同时加载视频和音频的。dash格式是支持音视频分离的。 |
多谢指点 ! |
如上,在线视频的画面和音频分了两个链接,请问大佬这样改如何处理?
The text was updated successfully, but these errors were encountered: