hx-player 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,19 +1,18 @@
1
1
  # HxPlayer
2
2
 
3
- 华下云 Web 播放器。本目录是独立项目雏形,后续可单独拆成仓库使用。
3
+ 华下云 Web 播放器。
4
4
 
5
- - 已移除 `H265Player` 软解播放器
6
5
  - 点播:`src/videoPlayer`
7
6
  - 直播:`src/livePlayer`(WebRTC / WHEP)
8
7
  - 构建:Vite(ES + UMD)
9
- - 创建方式:`new HxPlayer()`(不再使用 `YlcPlayer.create()`)
8
+ - 创建方式:`new HxPlayer()`
10
9
 
11
10
  开发构建需要 **Node.js >= 18**(Vite 6)。本机可用 `nvm use 22`。
12
11
 
13
12
  ## 安装
14
13
 
15
14
  ```bash
16
- cd player_rebuild
15
+ cd hx_web_player
17
16
  npm install
18
17
  ```
19
18
 
@@ -62,8 +61,6 @@ const player = new HxPlayer('player-container-id', {
62
61
  })
63
62
  ```
64
63
 
65
- `url` 与原先的 `sourceURL` 等价,两者都可传。
66
-
67
64
  如果通过 `fileId` + `secret_id` 换地址,初始化是异步的,请使用 `player.ready`:
68
65
 
69
66
  ```js