File tree Expand file tree Collapse file tree 5 files changed +401
-5
lines changed
Expand file tree Collapse file tree 5 files changed +401
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ http://example.com/segment4.ts
3737#EXT-X-ENDLIST
3838```
3939
40- ### 解释:
40+ #### 解释:
41411 . ** #EXTM3U** :文件头,表示这是一个 M3U8 文件。
42422 . ** #EXT-X-VERSION:3** :指定 HLS 协议的版本,这里是版本 3。
43433 . ** #EXT-X-TARGETDURATION:10** :指定每个媒体段的最大持续时间(秒),这里是 10 秒。
@@ -46,7 +46,7 @@ http://example.com/segment4.ts
46466 . ** http://example.com/segment0.ts**:媒体段的 URL。
47477 . ** #EXT-X-ENDLIST** :表示播放列表的结束。
4848
49- ### 注意:
49+ #### 注意:
5050- 每个媒体段(` .ts ` 文件)的 URL 可以是绝对路径或相对路径。
5151- 如果流是直播流,可能不会有 ` #EXT-X-ENDLIST ` 标签,因为播放列表会不断更新。
5252
@@ -75,7 +75,7 @@ http://example.com/live/segment125.ts
7575http://example.com/live/segment126.ts
7676```
7777
78- ### 直播流的特点:
78+ #### 直播流的特点:
79791 . ** 没有 ` #EXT-X-ENDLIST ` 标签** :
8080 - 直播流是动态生成的,播放列表会不断更新,因此不会标记结束。
8181
@@ -95,7 +95,7 @@ http://example.com/live/segment126.ts
9595
9696---
9797
98- ### 直播流的工作流程:
98+ #### 直播流的工作流程:
99991 . ** 客户端请求 M3U8 文件** :
100100 - 客户端(如播放器)首先请求 M3U8 文件,获取当前的播放列表。
101101
@@ -111,7 +111,7 @@ http://example.com/live/segment126.ts
111111
112112---
113113
114- ### 示例:更新后的 M3U8 文件
114+ #### 示例:更新后的 M3U8 文件
115115假设直播流继续生成新的媒体段,更新后的 M3U8 文件可能如下:
116116
117117``` plaintext
Original file line number Diff line number Diff line change @@ -349,6 +349,14 @@ vue2(单页面):[https://github.com/bosscheng/jessibuca-vue-demo/tree/pro-vue2](
349349#### http
350350[ http://jessibuca.monibuca.com/pro/demo-mpeg4.html ] ( http://jessibuca.monibuca.com/pro/demo-mpeg4.html )
351351
352+ ### M7S格式
353+ ------
354+ #### https
355+ [ https://jessibuca.com/pro/demo-m7s.html ] ( https://jessibuca.com/pro/demo-m7s.html )
356+
357+ #### http
358+ [ http://jessibuca.monibuca.com/pro/demo-m7s.html ] ( http://jessibuca.monibuca.com/pro/demo-m7s.html )
359+
352360
353361### M7S加密流(H264/H265)
354362------
You can’t perform that action at this time.
0 commit comments