bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.51k stars 8.13k forks source link

播放本地m3u8 路径被拼接了,该怎么办? #2985

Open liuhy412484577 opened 7 years ago

liuhy412484577 commented 7 years ago

我播放本地m3u8 文件,如下

EXTM3U

EXT-X-TARGETDURATION:30

EXT-X-VERSION:3

EXTINF:7,

http:/127.0.0.1:12345/Downloads/Video/31822/id0.ts

EXTINF:27.64,

http:/127.0.0.1:12345/Downloads/Video/31822/id1.ts

EXTINF:34.52,

http:/127.0.0.1:12345/Downloads/Video/31822/id2.ts

EXTINF:25.56,

地址中少了一个/ ,导致播放的时候,每个片段的地址: http://127.0.0.1:12345/Downloads/Video/31822/http:/127.0.0.1:12345/Downloads/Video/31822/id11.ts 请问,设置那里可以不让他拼接啊?

raymond1012 commented 7 years ago

modify hls.c

在 2017年4月19日 下午2:49,liuhy412484577 notifications@github.com写道:

我播放本地m3u8 文件,如下

EXTM3U

EXT-X-TARGETDURATION:30

EXT-X-VERSION:3

EXTINF:7,

http:/127.0.0.1:12345/Downloads/Video/31822/id0.ts

EXTINF:27.64,

http:/127.0.0.1:12345/Downloads/Video/31822/id1.ts

EXTINF:34.52,

http:/127.0.0.1:12345/Downloads/Video/31822/id2.ts

EXTINF:25.56,

地址中少了一个/ ,导致播放的时候,每个片段的地址: http://127.0.0.1:12345/Downloads/Video/31822/http:/ 127.0.0.1:12345/Downloads/Video/31822/id11.ts 请问,设置那里可以不让他拼接啊?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/2985, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmlsKRY7a_lq8LU80KM9Fw2UV1DP34ks5rxa5ogaJpZM4NBRAb .

liuhy412484577 commented 7 years ago

@raymond1012 c有点看不太懂,具体在哪里修改,我看到hls.c 有好几文件,都需要修改吗?

liuhy412484577 commented 7 years ago

@bbcallen 请教一下...