@byteplus/veplayer 2.4.1-rc.0 → 2.4.1-rc.1

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.
@@ -3056,8 +3056,8 @@ class Logger extends Plugin$2 {
3056
3056
  device_id: this._deviceId,
3057
3057
  ext: {
3058
3058
  veplayer_version: "2.3.1-rc.3",
3059
- flv_version: "3.0.19-rc.10",
3060
- hls_version: "3.0.19-rc.0",
3059
+ flv_version: "3.0.20-rc.3",
3060
+ hls_version: "3.0.20-rc.3",
3061
3061
  rts_version: "0.2.1-alpha.1"
3062
3062
  }
3063
3063
  });
@@ -3533,6 +3533,28 @@ class VePlayerLive extends VePlayerBase {
3533
3533
  var _a, _b, _c;
3534
3534
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
3535
3535
  }
3536
+ /** {zh}
3537
+ * @brief 调用此方法开始播放 。
3538
+ */
3539
+ /** {en}
3540
+ * @brief Starts playback.
3541
+ */
3542
+ play() {
3543
+ this.openAbr();
3544
+ /* istanbul ignore next -- @preserve */
3545
+ return this._player.play();
3546
+ }
3547
+ /** {zh}
3548
+ * @brief 调用此方法暂停播放。
3549
+ */
3550
+ /** {en}
3551
+ * @brief Pauses playback.
3552
+ */
3553
+ pause() {
3554
+ this.closeAbr();
3555
+ /* istanbul ignore next -- @preserve */
3556
+ return this._player.pause();
3557
+ }
3536
3558
  }
3537
3559
  async function createLivePlayer(options) {
3538
3560
  var _a, _b;