@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/veplayer",
3
- "version": "2.4.1-rc.0",
3
+ "version": "2.4.1-rc.1",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
@@ -3060,8 +3060,8 @@ var __publicField = (obj, key, value) => {
3060
3060
  device_id: this._deviceId,
3061
3061
  ext: {
3062
3062
  veplayer_version: "2.3.1-rc.3",
3063
- flv_version: "3.0.19-rc.10",
3064
- hls_version: "3.0.19-rc.0",
3063
+ flv_version: "3.0.20-rc.3",
3064
+ hls_version: "3.0.20-rc.3",
3065
3065
  rts_version: "0.2.1-alpha.1"
3066
3066
  }
3067
3067
  });
@@ -3537,6 +3537,28 @@ var __publicField = (obj, key, value) => {
3537
3537
  var _a, _b, _c;
3538
3538
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
3539
3539
  }
3540
+ /** {zh}
3541
+ * @brief 调用此方法开始播放 。
3542
+ */
3543
+ /** {en}
3544
+ * @brief Starts playback.
3545
+ */
3546
+ play() {
3547
+ this.openAbr();
3548
+ /* istanbul ignore next -- @preserve */
3549
+ return this._player.play();
3550
+ }
3551
+ /** {zh}
3552
+ * @brief 调用此方法暂停播放。
3553
+ */
3554
+ /** {en}
3555
+ * @brief Pauses playback.
3556
+ */
3557
+ pause() {
3558
+ this.closeAbr();
3559
+ /* istanbul ignore next -- @preserve */
3560
+ return this._player.pause();
3561
+ }
3540
3562
  }
3541
3563
  async function createLivePlayer(options) {
3542
3564
  var _a, _b;