我正在为iOS的视频流应用程序工作,并且我遇到了一个问题 - 应用程序应该能够播放部分下载的视频。我无法直接从服务器流式传输视频,因为没有服务器,使用P2P网络下载视频。下载从文件的开始处开始,在大约20%之后,我希望能够播放该文件。使用MobileVLCKit在iOS上播放视频文件与破碎的AVI索引
目前我正在尝试使用MobileVLCKit
。当我尝试在我的Mac上使用VLC播放器播放部分下载的文件(约30%)时,VLC告诉我:“损坏或缺少AVI索引”,并提供“播放”或“”比玩“,当我选择”发挥为“视频开始播放,但在iOS上,当我尝试播放相同的视频时,我得到BAD_ACCESS
当MobileVLCKit
调用AVI_IndexCreate
。有没有办法强制MobileVLCKit
播放带有损坏索引的“原样”视频,或者有其他选择,我可以如何做到这一点?非常感谢。
UPDATE:
控制台输出:
[1389:617849] creating player instance using shared library
[1759f504] core generic error: option marq-color does not exist
[1759f504] core generic error: option marq-opacity does not exist
[1759f504] core generic error: option marq-position does not exist
[1759f504] core generic error: option marq-refresh does not exist
[1759f504] core generic error: option marq-size does not exist
[1759f504] core generic error: option marq-timeout does not exist
[1759f504] core generic error: option marq-x does not exist
[1759f504] core generic error: option marq-y does not exist
[176f8264] avi demux error: no key frame set for track 0
[176f8264] avi demux error: no key frame set for track 1
回溯:
(lldb) bt
* thread #8: tid = 0x976f9, 0x20000000, stop reason = EXC_BAD_ACCESS (code=1, address=0x20000000)
frame #0: 0x20000000
* frame #1: 0x00675d72 testApp'Open [inlined] AVI_IndexCreate + 542 at avi.c:2407
frame #2: 0x00675b54 testApp'Open(p_this=<unavailable>) + 5228 at avi.c:631
frame #3: 0x0065111e testApp'vlc_module_load [inlined] module_load(obj=<unavailable>, init=<unavailable>, args=0x04d29d94, args=0x04d29d94, args=<unavailable>) + 814 at modules.c:185
frame #4: 0x00651100 testApp'vlc_module_load(obj=0x155f7654, capability=0x008fdd2e, name=<unavailable>, strict=false, probe=<unavailable>) + 784 at modules.c:277
frame #5: 0x0065129a testApp'module_need(obj=<unavailable>, cap=<unavailable>, name=<unavailable>, strict=<unavailable>) + 30 at modules.c:366
frame #6: 0x0062ae9a testApp'demux_New + 734
frame #7: 0x00634a4c testApp'InputSourceInit + 2624
frame #8: 0x00631e74 testApp'Init + 580
frame #9: 0x00633c7a testApp'Run + 18
frame #10: 0x35542e92 libsystem_pthread.dylib'_pthread_body + 138
frame #11: 0x35542e06 libsystem_pthread.dylib'_pthread_start + 118
请回溯添加到您的问题,所以我们可以看到它崩溃。预计这种方式就像你从Mac上描述它的方式一样。 – feepk 2015-02-23 20:48:49
增加了回溯和控制台。此外,我忘了提及我正在使用通过CocoaPods提供的最新版本的MobileVLCKit。在podspec中它是市场版本2.2.1,但它使用来自这里的资源http://download.videolan.org/pub/videolan/vlc-iOS/2.3.0/MobileVLCKit-2.2.0-rc1-binary .zip,所以我不知道哪个版本号是正确的。 – danylokostyshyn 2015-02-23 21:29:16