Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "tcadapter", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -188,2 +188,12 @@ # TcAdapter 使用文档说明 | ||
adapter.on(TcAdapter.TcAdapterEvents.Error, function(error) { | ||
// 本例中,错误事件的回调参数格式如下 | ||
// { | ||
// type: TcAdapter.TcAdapterEvents.Error, | ||
// data: { | ||
// type : error specific type, | ||
// details : error details, | ||
// fatal : is error fatal or not, | ||
// ...other error specific data | ||
// } | ||
// } | ||
// do something | ||
@@ -193,3 +203,3 @@ }); | ||
其中 type 为事件类型,支持的事件包括hls原生的事件以及以下事件,可从 TcAdapter.TcAdapterEvents 中访问到事件名称: | ||
其中 type 为事件类型,支持的事件包括 hls 原生的事件以及以下事件,可从 TcAdapter.TcAdapterEvents 中访问到事件名称: | ||
@@ -202,2 +212,4 @@ | 名称 | 介绍 | | ||
> Hls 事件参考链接:https://github.com/video-dev/hls.js/blob/master/docs/API.md#runtime-events | ||
> 错误处理参考链接:https://github.com/video-dev/hls.js/blob/master/docs/API.md#fifth-step-error-handling | ||
@@ -204,0 +216,0 @@ #### 获取 Hls 实例 |
@@ -62,3 +62,3 @@ const path = require('path'); | ||
from: "dist/index.js", | ||
to: path.resolve(__dirname, 'dist/tcadapter.1.0.0.js'), | ||
to: path.resolve(__dirname, 'dist/tcadapter.1.1.1.js'), | ||
}, | ||
@@ -65,0 +65,0 @@ ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11
1177904
3842