@byteplus/veplayer 2.3.0-rc.4 → 2.3.1-rc.0
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/esm/index.d.ts +57 -1
- package/esm/veplayer.biz.live.development.js +8 -2
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +152 -2
- package/esm/veplayer.development.js +28 -3
- package/esm/veplayer.live.d.ts +152 -2
- package/esm/veplayer.live.development.js +28 -3
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.d.ts +57 -1
- package/esm/veplayer.vod.development.js +5 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/index.d.ts +57 -1
- package/umd/veplayer.biz.live.development.js +8 -2
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +152 -2
- package/umd/veplayer.development.js +28 -3
- package/umd/veplayer.live.d.ts +152 -2
- package/umd/veplayer.live.development.js +28 -3
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +57 -1
- package/umd/veplayer.vod.development.js +5 -1
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +152 -2
- package/veplayer.live.d.ts +152 -2
- package/veplayer.vod.d.ts +57 -1
package/esm/index.d.ts
CHANGED
|
@@ -1366,6 +1366,34 @@ interface VePlayerBaseOptions extends Omit<PlayerOptions, "autoplay" | "i18n"> {
|
|
|
1366
1366
|
* @hidden
|
|
1367
1367
|
*/
|
|
1368
1368
|
preparePlugins?: PreparePlugins;
|
|
1369
|
+
/** {zh}
|
|
1370
|
+
* @brief 是否关闭 PC 端单击播放区域切换播放/暂停的能力,开启时,点击播放器区域可实现播放或暂停。
|
|
1371
|
+
* - `true`: 关闭;
|
|
1372
|
+
* - `false`: 开启。
|
|
1373
|
+
* @default false
|
|
1374
|
+
*/
|
|
1375
|
+
/** {en}
|
|
1376
|
+
* @brief Whether to disable the click-to-play feature.
|
|
1377
|
+
* - `true`: Disable.
|
|
1378
|
+
* - `false`: Enable. Play/pause the video on mounse click for the PCs.
|
|
1379
|
+
* @default false
|
|
1380
|
+
*/
|
|
1381
|
+
closeVideoClick?: boolean;
|
|
1382
|
+
/** {zh}
|
|
1383
|
+
* @brief PC 端时表示是否关闭双击播放器进入全屏的能力;移动端时表示是否关闭双击切换播放/暂停的能力。
|
|
1384
|
+
* - `true`: 关闭;
|
|
1385
|
+
* - `false`: 开启。
|
|
1386
|
+
* @default false
|
|
1387
|
+
*/
|
|
1388
|
+
/** {en}
|
|
1389
|
+
* @brief Whether to disable the double-click/tap action.
|
|
1390
|
+
* - `true`: Disable.
|
|
1391
|
+
* - `false`: Enable.
|
|
1392
|
+
* - For the PCs, double click on the video to enter or exit the full screen mode.
|
|
1393
|
+
* - For the mobiles, play/pause the video with double tap.
|
|
1394
|
+
* @default false
|
|
1395
|
+
*/
|
|
1396
|
+
closeVideoDblclick?: boolean;
|
|
1369
1397
|
}
|
|
1370
1398
|
/** {zh}
|
|
1371
1399
|
* @list option
|
|
@@ -1864,7 +1892,7 @@ declare class VePlayerBase {
|
|
|
1864
1892
|
* @param callback 表示事件的回调函数。
|
|
1865
1893
|
*/
|
|
1866
1894
|
/** {en}
|
|
1867
|
-
* @brief
|
|
1895
|
+
* @brief Add a one-time listener function for the specified event.
|
|
1868
1896
|
* @param event The event name.
|
|
1869
1897
|
* @param callback The callback function for the event.
|
|
1870
1898
|
*/
|
|
@@ -3639,6 +3667,34 @@ declare namespace strategy {
|
|
|
3639
3667
|
* @hidden
|
|
3640
3668
|
*/
|
|
3641
3669
|
preparePlugins?: PreparePlugins;
|
|
3670
|
+
/** {zh}
|
|
3671
|
+
* @brief 是否关闭 PC 端单击播放区域切换播放/暂停的能力,开启时,点击播放器区域可实现播放或暂停。
|
|
3672
|
+
* - `true`: 关闭;
|
|
3673
|
+
* - `false`: 开启。
|
|
3674
|
+
* @default false
|
|
3675
|
+
*/
|
|
3676
|
+
/** {en}
|
|
3677
|
+
* @brief Whether to disable the click-to-play feature.
|
|
3678
|
+
* - `true`: Disable.
|
|
3679
|
+
* - `false`: Enable. Play/pause the video on mounse click for the PCs.
|
|
3680
|
+
* @default false
|
|
3681
|
+
*/
|
|
3682
|
+
closeVideoClick?: boolean;
|
|
3683
|
+
/** {zh}
|
|
3684
|
+
* @brief PC 端时表示是否关闭双击播放器进入全屏的能力;移动端时表示是否关闭双击切换播放/暂停的能力。
|
|
3685
|
+
* - `true`: 关闭;
|
|
3686
|
+
* - `false`: 开启。
|
|
3687
|
+
* @default false
|
|
3688
|
+
*/
|
|
3689
|
+
/** {en}
|
|
3690
|
+
* @brief Whether to disable the double-click/tap action.
|
|
3691
|
+
* - `true`: Disable.
|
|
3692
|
+
* - `false`: Enable.
|
|
3693
|
+
* - For the PCs, double click on the video to enter or exit the full screen mode.
|
|
3694
|
+
* - For the mobiles, play/pause the video with double tap.
|
|
3695
|
+
* @default false
|
|
3696
|
+
*/
|
|
3697
|
+
closeVideoDblclick?: boolean;
|
|
3642
3698
|
}
|
|
3643
3699
|
/** {zh}
|
|
3644
3700
|
* @list option
|
|
@@ -2930,8 +2930,8 @@ class Logger extends Plugin$2 {
|
|
|
2930
2930
|
user_id: this._userId,
|
|
2931
2931
|
device_id: this._deviceId,
|
|
2932
2932
|
ext: {
|
|
2933
|
-
veplayer_version: "2.3.
|
|
2934
|
-
flv_version: "3.0.
|
|
2933
|
+
veplayer_version: "2.3.1-rc.0",
|
|
2934
|
+
flv_version: "3.0.15-alpha.2",
|
|
2935
2935
|
hls_version: "3.0.12",
|
|
2936
2936
|
rts_version: "0.2.0-alpha.5"
|
|
2937
2937
|
}
|
|
@@ -3321,6 +3321,12 @@ class VePlayerLive extends VePlayerBase {
|
|
|
3321
3321
|
async function createLivePlayer(options) {
|
|
3322
3322
|
var _a, _b;
|
|
3323
3323
|
let player = void 0;
|
|
3324
|
+
window._veplayer_test_log = {
|
|
3325
|
+
start: {
|
|
3326
|
+
msg: "start to create veplayer",
|
|
3327
|
+
timestamp: performance.now()
|
|
3328
|
+
}
|
|
3329
|
+
};
|
|
3324
3330
|
if (!options || !options.url && !options.playlist) {
|
|
3325
3331
|
throw create(ErrorCode.INVALID_PARAMETER, new VeI18n());
|
|
3326
3332
|
}
|