@byteplus/veplayer 2.3.0 → 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.
@@ -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 Listens for a specified event. The event handler is executed only once.
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
@@ -13274,6 +13274,10 @@ var __publicField = (obj, key, value) => {
13274
13274
  plugins.forEach((plugin) => {
13275
13275
  TopRightBar.isTopRightPlugin(plugin, options) ? topRightPlugins.push(plugin) : normalPlugins.push(plugin);
13276
13276
  });
13277
+ window._veplayer_test_log["startxgplayer"] = {
13278
+ msg: "start to new XGPlayer",
13279
+ timestamp: performance.now()
13280
+ };
13277
13281
  this._player = new Player({
13278
13282
  ...DEFAULT_OPTIONS,
13279
13283
  ...xgOptions,
@@ -13644,7 +13648,7 @@ var __publicField = (obj, key, value) => {
13644
13648
  * @param callback 表示事件的回调函数。
13645
13649
  */
13646
13650
  /** {en}
13647
- * @brief Listens for a specified event. The event handler is executed only once.
13651
+ * @brief Add a one-time listener function for the specified event.
13648
13652
  * @param event The event name.
13649
13653
  * @param callback The callback function for the event.
13650
13654
  */