首页 > 解决方案 > Vlc 移动套件 iOS 重复,随机播放视频

问题描述

我曾尝试在目标 c 中使用 vlc 套件移动 iOS 播放视频,但是当我尝试播放视频列表以提供随机播放和重复所有功能时.. 视频没有播放,而只有音频正在播放。

控制台输出:-

[h264 @ 0x7fb0bd042c00] get_buffer() failed
[h264 @ 0x7fb0bd042c00] thread_get_buffer() failed
[h264 @ 0x7fb0bd042c00] decode_slice_header error
[h264 @ 0x7fb0bd042c00] no frame!
[h264 @ 0x7fb0bd1e6600] get_buffer() failed

代码发布在下面: -

   VLCMediaList *list = [[VLCMediaList alloc]initWithArray:[NSArray arrayWithObjects:[VLCMedia mediaWithURL:fileurl], nil]];
    [listPlayer setMediaList:list];
    [listPlayer setRepeatMode:VLCRepeatAllItems];
    [listPlayer play];

我无法找出上面代码的问题。

标签: iosswiftobjective-cvlc

解决方案


推荐阅读