throw
没有成员VLCMediaPlayer
,而repeatMode
具有重复模式。
我当前设置为
VLCMediaListPlayer
答案 0 :(得分:0)
您需要创建mediaList
并播放第一种媒体
let media = VLCMedia(url: url)
let mediaList = VLCMediaList()
mediaList.add(media)
let mediaListPlayer = VLCMediaListPlayer(drawable: mediaPlayerView)
mediaListPlayer.mediaList = mediaList
mediaListPlayer.repeatMode = .repeatCurrentItem
mediaListPlayer.play(media)
mediaPlayerView
是视频播放的视图