Skip to content

Commit

Permalink
update pro
Browse files Browse the repository at this point in the history
  • Loading branch information
bosscheng committed Feb 13, 2025
1 parent e005f21 commit 2e90de1
Show file tree
Hide file tree
Showing 5 changed files with 401 additions and 5 deletions.
10 changes: 5 additions & 5 deletions demo/hls-vod-vs-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ http://example.com/segment4.ts
#EXT-X-ENDLIST
```

### 解释:
#### 解释:
1. **#EXTM3U**:文件头,表示这是一个 M3U8 文件。
2. **#EXT-X-VERSION:3**:指定 HLS 协议的版本,这里是版本 3。
3. **#EXT-X-TARGETDURATION:10**:指定每个媒体段的最大持续时间(秒),这里是 10 秒。
Expand All @@ -46,7 +46,7 @@ http://example.com/segment4.ts
6. **http://example.com/segment0.ts**:媒体段的 URL。
7. **#EXT-X-ENDLIST**:表示播放列表的结束。

### 注意:
#### 注意:
- 每个媒体段(`.ts` 文件)的 URL 可以是绝对路径或相对路径。
- 如果流是直播流,可能不会有 `#EXT-X-ENDLIST` 标签,因为播放列表会不断更新。

Expand Down Expand Up @@ -75,7 +75,7 @@ http://example.com/live/segment125.ts
http://example.com/live/segment126.ts
```

### 直播流的特点:
#### 直播流的特点:
1. **没有 `#EXT-X-ENDLIST` 标签**
- 直播流是动态生成的,播放列表会不断更新,因此不会标记结束。

Expand All @@ -95,7 +95,7 @@ http://example.com/live/segment126.ts

---

### 直播流的工作流程:
#### 直播流的工作流程:
1. **客户端请求 M3U8 文件**
- 客户端(如播放器)首先请求 M3U8 文件,获取当前的播放列表。

Expand All @@ -111,7 +111,7 @@ http://example.com/live/segment126.ts

---

### 示例:更新后的 M3U8 文件
#### 示例:更新后的 M3U8 文件
假设直播流继续生成新的媒体段,更新后的 M3U8 文件可能如下:

```plaintext
Expand Down
8 changes: 8 additions & 0 deletions demo/pro-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ vue2(单页面):[https://github.com/bosscheng/jessibuca-vue-demo/tree/pro-vue2](
#### http
[http://jessibuca.monibuca.com/pro/demo-mpeg4.html](http://jessibuca.monibuca.com/pro/demo-mpeg4.html)

### M7S格式
------
#### https
[https://jessibuca.com/pro/demo-m7s.html](https://jessibuca.com/pro/demo-m7s.html)

#### http
[http://jessibuca.monibuca.com/pro/demo-m7s.html](http://jessibuca.monibuca.com/pro/demo-m7s.html)


### M7S加密流(H264/H265)
------
Expand Down
Binary file modified demo/public/pro.zip
Binary file not shown.
Loading

0 comments on commit 2e90de1

Please sign in to comment.