@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/veplayer.vod.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
|
|
@@ -13270,6 +13270,10 @@ class VePlayerBase {
|
|
|
13270
13270
|
plugins.forEach((plugin) => {
|
|
13271
13271
|
TopRightBar.isTopRightPlugin(plugin, options) ? topRightPlugins.push(plugin) : normalPlugins.push(plugin);
|
|
13272
13272
|
});
|
|
13273
|
+
window._veplayer_test_log["startxgplayer"] = {
|
|
13274
|
+
msg: "start to new XGPlayer",
|
|
13275
|
+
timestamp: performance.now()
|
|
13276
|
+
};
|
|
13273
13277
|
this._player = new Player({
|
|
13274
13278
|
...DEFAULT_OPTIONS,
|
|
13275
13279
|
...xgOptions,
|
|
@@ -13640,7 +13644,7 @@ class VePlayerBase {
|
|
|
13640
13644
|
* @param callback 表示事件的回调函数。
|
|
13641
13645
|
*/
|
|
13642
13646
|
/** {en}
|
|
13643
|
-
* @brief
|
|
13647
|
+
* @brief Add a one-time listener function for the specified event.
|
|
13644
13648
|
* @param event The event name.
|
|
13645
13649
|
* @param callback The callback function for the event.
|
|
13646
13650
|
*/
|