@volcengine/veplayer 2.5.0 → 2.6.0-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/umd/veplayer.d.ts CHANGED
@@ -4167,7 +4167,6 @@ declare namespace strategy {
4167
4167
  }
4168
4168
  type StrategyCreator<T, R extends keyof ModulesMap = any> = (options?: T) => Strategy<T, R>;
4169
4169
  const createFlvMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
4170
- const createFlvMssStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
4171
4170
  const createHlsMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginHls>;
4172
4171
  const createSoftDecodeH264Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
4173
4172
  const createSoftDecodeH265Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
@@ -4219,12 +4218,10 @@ declare function isMseSupported(codec?: string): boolean;
4219
4218
  * @returns
4220
4219
  */
4221
4220
  declare function isSoftDecodeSupported(): Promise<boolean>;
4222
- declare function isMMSSupported(): boolean;
4223
4221
  declare const util: {
4224
4222
  getStreamType: typeof getStreamType;
4225
4223
  isMseSupported: typeof isMseSupported;
4226
4224
  isSoftDecodeSupported: typeof isSoftDecodeSupported;
4227
- isMMSSupported: typeof isMMSSupported;
4228
4225
  appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
4229
4226
  getUrlObject: (url?: string | undefined) => URL | undefined;
4230
4227
  createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
@@ -5265,6 +5262,13 @@ interface LiveVePlayerOptions extends VePlayerBaseOptions {
5265
5262
  * @brief Configures the information panel for the player, including options to show/hide the panel and the time interval between each information update. The panel supports displaying information for HLS and FLV addresses. If you opt for software decoding, additional information related to software decoding will be displayed.
5266
5263
  */
5267
5264
  infoPanel?: InfoPanelConfig;
5265
+ /** {zh}
5266
+ * @hidden
5267
+ */
5268
+ /** {en}
5269
+ * @brief Configurations for advertising
5270
+ */
5271
+ ad?: AdConfig;
5268
5272
  /** {zh}
5269
5273
  * @brief 为播放器设置直播时移配置,接入方法请参见[功能接入](https://www.volcengine.com/docs/6469/138655#直播时移)。
5270
5274
  */
@@ -5526,6 +5530,76 @@ interface TimeShiftConfig {
5526
5530
  */
5527
5531
  position?: string;
5528
5532
  }
5533
+ /** {zh}
5534
+ * @hidden
5535
+ */
5536
+ /** {en}
5537
+ * @list option
5538
+ * @kind property
5539
+ * @brief Advertising schedule for a single ad break
5540
+ */
5541
+ interface AdRule {
5542
+ /** {en}
5543
+ * @brief When to play the configured ad tag
5544
+ * - `pre`: Ad plays as a preroll
5545
+ * - `post`: Ad plays as a postroll
5546
+ * - (timecode): Ad plays at a specific time, in HH:MM:SS or HH:MM:SS.sss format
5547
+ */
5548
+ offset: string;
5549
+ /** {en}
5550
+ * @brief URL of the ad tag for IMA plugins, must be a VAST xml
5551
+ */
5552
+ tag: string;
5553
+ }
5554
+ /** {zh}
5555
+ * @hidden
5556
+ */
5557
+ /** {en}
5558
+ * @list option
5559
+ * @kind property
5560
+ * @brief Configurations for Google IMA SDK
5561
+ */
5562
+ interface ImaConfig {
5563
+ /** {en}
5564
+ * @brief URL of the ad tag for IMA plugins
5565
+ */
5566
+ adTagUrl?: string;
5567
+ /** {en}
5568
+ * @brief URL of the ad tag for IMA plugins when enableSCTE35 is `true`, must be a VAST xml
5569
+ */
5570
+ adTagUrlForSCTE35?: string;
5571
+ /** {en}
5572
+ * @brief The entire advertising schedule, containing multiple ad breaks
5573
+ */
5574
+ schedule?: AdRule[];
5575
+ }
5576
+ /** {zh}
5577
+ * @hidden
5578
+ */
5579
+ /** {en}
5580
+ * @list option
5581
+ * @kind property
5582
+ * @brief Configurations for advertising
5583
+ */
5584
+ interface AdConfig {
5585
+ /** {en}
5586
+ * @brief Ad client that will be used to display advertisements
5587
+ * - `google-ima`:Use the Google IMA SDK
5588
+ */
5589
+ adType: "google-ima";
5590
+ /** {en}
5591
+ * @brief Property enabling SCTE-35 tag in hls manifest
5592
+ * - false: SCTE-35 disabled
5593
+ * - true: SCTE-35 enabled
5594
+ * @default false
5595
+ */
5596
+ enableSCTE35?: boolean;
5597
+ /** {en}
5598
+ * @brief Configurations for Google IMA SDK
5599
+ * @listtip Required when adType is `google-ima`
5600
+ */
5601
+ ima?: ImaConfig;
5602
+ }
5529
5603
  /** {zh}
5530
5604
  * @list option
5531
5605
  * @kind property
@@ -5608,21 +5682,6 @@ interface Rtm {
5608
5682
  * @brief Specify the recent time length for network evaluation in milliseconds. The default is 1000, which means evaluating the network conditions over the last 1000 milliseconds.
5609
5683
  */
5610
5684
  networkEvaluateInterval?: number;
5611
- /** {zh}
5612
- * @brief 断流后重新拉流是否无缝播放。
5613
- * @default false
5614
- */
5615
- /** {en}
5616
- * @brief
5617
- */
5618
- seamlesslyReload?: boolean;
5619
- /** {zh}
5620
- * @brief 暂停后多久断流,默认不断流。
5621
- */
5622
- /** {en}
5623
- * @brief
5624
- */
5625
- disconnectTime?: number;
5626
5685
  }
5627
5686
  /** {zh}
5628
5687
  * @list option
@@ -6427,7 +6486,6 @@ declare function isRTMSupported(): Promise<boolean>;
6427
6486
  * @returns
6428
6487
  */
6429
6488
  declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
6430
- declare function isFLVSupported(): boolean;
6431
6489
  declare module MobilePlayerPanelWrapper {
6432
6490
  export { MobilePlayerPanel };
6433
6491
  }
@@ -9892,12 +9950,10 @@ declare namespace live {
9892
9950
  * @returns
9893
9951
  */
9894
9952
  function isSoftDecodeSupported(): Promise<boolean>;
9895
- function isMMSSupported(): boolean;
9896
9953
  const util: {
9897
9954
  getStreamType: typeof getStreamType;
9898
9955
  isMseSupported: typeof isMseSupported;
9899
9956
  isSoftDecodeSupported: typeof isSoftDecodeSupported;
9900
- isMMSSupported: typeof isMMSSupported;
9901
9957
  appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
9902
9958
  getUrlObject: (url?: string | undefined) => URL | undefined;
9903
9959
  createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
@@ -10560,6 +10616,13 @@ declare namespace live {
10560
10616
  * @brief Configures the information panel for the player, including options to show/hide the panel and the time interval between each information update. The panel supports displaying information for HLS and FLV addresses. If you opt for software decoding, additional information related to software decoding will be displayed.
10561
10617
  */
10562
10618
  infoPanel?: InfoPanelConfig;
10619
+ /** {zh}
10620
+ * @hidden
10621
+ */
10622
+ /** {en}
10623
+ * @brief Configurations for advertising
10624
+ */
10625
+ ad?: AdConfig;
10563
10626
  /** {zh}
10564
10627
  * @brief 为播放器设置直播时移配置,接入方法请参见[功能接入](https://www.volcengine.com/docs/6469/138655#直播时移)。
10565
10628
  */
@@ -10821,6 +10884,76 @@ declare namespace live {
10821
10884
  */
10822
10885
  position?: string;
10823
10886
  }
10887
+ /** {zh}
10888
+ * @hidden
10889
+ */
10890
+ /** {en}
10891
+ * @list option
10892
+ * @kind property
10893
+ * @brief Advertising schedule for a single ad break
10894
+ */
10895
+ interface AdRule {
10896
+ /** {en}
10897
+ * @brief When to play the configured ad tag
10898
+ * - `pre`: Ad plays as a preroll
10899
+ * - `post`: Ad plays as a postroll
10900
+ * - (timecode): Ad plays at a specific time, in HH:MM:SS or HH:MM:SS.sss format
10901
+ */
10902
+ offset: string;
10903
+ /** {en}
10904
+ * @brief URL of the ad tag for IMA plugins, must be a VAST xml
10905
+ */
10906
+ tag: string;
10907
+ }
10908
+ /** {zh}
10909
+ * @hidden
10910
+ */
10911
+ /** {en}
10912
+ * @list option
10913
+ * @kind property
10914
+ * @brief Configurations for Google IMA SDK
10915
+ */
10916
+ interface ImaConfig {
10917
+ /** {en}
10918
+ * @brief URL of the ad tag for IMA plugins
10919
+ */
10920
+ adTagUrl?: string;
10921
+ /** {en}
10922
+ * @brief URL of the ad tag for IMA plugins when enableSCTE35 is `true`, must be a VAST xml
10923
+ */
10924
+ adTagUrlForSCTE35?: string;
10925
+ /** {en}
10926
+ * @brief The entire advertising schedule, containing multiple ad breaks
10927
+ */
10928
+ schedule?: AdRule[];
10929
+ }
10930
+ /** {zh}
10931
+ * @hidden
10932
+ */
10933
+ /** {en}
10934
+ * @list option
10935
+ * @kind property
10936
+ * @brief Configurations for advertising
10937
+ */
10938
+ interface AdConfig {
10939
+ /** {en}
10940
+ * @brief Ad client that will be used to display advertisements
10941
+ * - `google-ima`:Use the Google IMA SDK
10942
+ */
10943
+ adType: "google-ima";
10944
+ /** {en}
10945
+ * @brief Property enabling SCTE-35 tag in hls manifest
10946
+ * - false: SCTE-35 disabled
10947
+ * - true: SCTE-35 enabled
10948
+ * @default false
10949
+ */
10950
+ enableSCTE35?: boolean;
10951
+ /** {en}
10952
+ * @brief Configurations for Google IMA SDK
10953
+ * @listtip Required when adType is `google-ima`
10954
+ */
10955
+ ima?: ImaConfig;
10956
+ }
10824
10957
  /** {zh}
10825
10958
  * @list option
10826
10959
  * @kind property
@@ -10903,21 +11036,6 @@ declare namespace live {
10903
11036
  * @brief Specify the recent time length for network evaluation in milliseconds. The default is 1000, which means evaluating the network conditions over the last 1000 milliseconds.
10904
11037
  */
10905
11038
  networkEvaluateInterval?: number;
10906
- /** {zh}
10907
- * @brief 断流后重新拉流是否无缝播放。
10908
- * @default false
10909
- */
10910
- /** {en}
10911
- * @brief
10912
- */
10913
- seamlesslyReload?: boolean;
10914
- /** {zh}
10915
- * @brief 暂停后多久断流,默认不断流。
10916
- */
10917
- /** {en}
10918
- * @brief
10919
- */
10920
- disconnectTime?: number;
10921
11039
  }
10922
11040
  /** {zh}
10923
11041
  * @list option
@@ -11697,4 +11815,4 @@ declare namespace live {
11697
11815
  */
11698
11816
  function createLivePlayer(options?: LiveVePlayerOptions): Promise<VePlayerLive>;
11699
11817
  }
11700
- export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
11818
+ export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported, isSoftDecodeSupported, isRTMSupported, isRTMSupportCodec, load, POSITIONS, EN, ZH_CN, Sniffer, live };
@@ -1461,7 +1461,7 @@ var __publicField = (obj, key, value) => {
1461
1461
  }
1462
1462
  }
1463
1463
  };
1464
- var version = "3.0.21-rc.2";
1464
+ var version = "3.0.21-rc.3";
1465
1465
  var ERROR_TYPE_MAP = {
1466
1466
  1: "media",
1467
1467
  2: "media",
@@ -12917,15 +12917,11 @@ var __publicField = (obj, key, value) => {
12917
12917
  const { XGVideoPlugin } = await load(DynamicModule.PluginXgvideo);
12918
12918
  return XGVideoPlugin == null ? void 0 : XGVideoPlugin.isSupported();
12919
12919
  }
12920
- function isMMSSupported() {
12921
- return typeof ManagedMediaSource !== "undefined";
12922
- }
12923
12920
  const util = {
12924
12921
  ...util$1,
12925
12922
  getStreamType,
12926
12923
  isMseSupported,
12927
12924
  isSoftDecodeSupported,
12928
- isMMSSupported,
12929
12925
  appendSearchParams,
12930
12926
  getUrlObject
12931
12927
  };
@@ -13138,6 +13134,7 @@ var __publicField = (obj, key, value) => {
13138
13134
  }
13139
13135
  // 有音量修改,取消静音
13140
13136
  handleVolumechange() {
13137
+ this._state.mode = this.player.muted ? 1 : 0;
13141
13138
  if (!this._state.showUnmuteBt)
13142
13139
  return;
13143
13140
  this._state.showUnmuteBt = false;
@@ -13847,7 +13844,7 @@ var __publicField = (obj, key, value) => {
13847
13844
  * @brief Retrieve the player SDK version number.
13848
13845
  */
13849
13846
  get playerVersion() {
13850
- return "2.5.0";
13847
+ return "2.6.0-rc.1";
13851
13848
  }
13852
13849
  /** {zh}
13853
13850
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -18983,8 +18980,6 @@ var __publicField = (obj, key, value) => {
18983
18980
  }
18984
18981
  if (codec === "unknown" ? isMseSupported(Codec.H264) : isMseSupported(codec)) {
18985
18982
  mseStrategy = createFlvMseStrategy(options);
18986
- } else if (isMMSSupported()) {
18987
- mseStrategy = createFlvMssStrategy(options);
18988
18983
  }
18989
18984
  if (!mseStrategy && !softStrategy) {
18990
18985
  return {};
@@ -19037,38 +19032,24 @@ var __publicField = (obj, key, value) => {
19037
19032
  plugins: (mseModule == null ? void 0 : mseModule.HlsPlugin) ? [mseModule.HlsPlugin] : []
19038
19033
  };
19039
19034
  };
19040
- const getDefaultFlvOptions = (options) => {
19035
+ const createFlvMseStrategy = (options) => {
19041
19036
  var _a;
19042
19037
  return {
19043
- retryCount: 0,
19044
- disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0
19038
+ options: {
19039
+ flv: {
19040
+ retryCount: 0,
19041
+ disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0,
19042
+ ...(options == null ? void 0 : options.flv) ?? {}
19043
+ }
19044
+ },
19045
+ module: DynamicModule.PluginFlv
19045
19046
  };
19046
19047
  };
19047
- const createFlvMseStrategy = (options) => ({
19048
- options: {
19049
- flv: {
19050
- ...getDefaultFlvOptions(options),
19051
- ...(options == null ? void 0 : options.flv) ?? {}
19052
- }
19053
- },
19054
- module: DynamicModule.PluginFlv
19055
- });
19056
- const createFlvMssStrategy = (options) => ({
19057
- options: {
19058
- flv: {
19059
- preferMMS: true,
19060
- ...getDefaultFlvOptions(options),
19061
- ...(options == null ? void 0 : options.flv) ?? {}
19062
- }
19063
- },
19064
- module: DynamicModule.PluginFlv
19065
- });
19066
19048
  const createHlsMseStrategy = (options) => ({
19067
19049
  options: {
19068
19050
  hls: {
19069
19051
  retryCount: 0,
19070
19052
  pollRetryCount: 0,
19071
- allowedStreamTrackChange: false,
19072
19053
  ...(options == null ? void 0 : options.hls) ?? {}
19073
19054
  }
19074
19055
  },
@@ -22127,10 +22108,10 @@ var __publicField = (obj, key, value) => {
22127
22108
  user_id: this._userId,
22128
22109
  device_id: this._deviceId,
22129
22110
  ext: {
22130
- veplayer_version: "2.5.0",
22131
- flv_version: "3.0.21-rc.2",
22132
- hls_version: "3.0.21-rc.2",
22133
- rts_version: "0.2.1-alpha.12"
22111
+ veplayer_version: "2.6.0-rc.1",
22112
+ flv_version: "3.0.21-rc.3",
22113
+ hls_version: "3.0.21-rc.3",
22114
+ rts_version: "0.2.1-alpha.0"
22134
22115
  }
22135
22116
  });
22136
22117
  }
@@ -22723,9 +22704,6 @@ var __publicField = (obj, key, value) => {
22723
22704
  }
22724
22705
  return player;
22725
22706
  }
22726
- function isFLVSupported() {
22727
- return isMseSupported() || isMMSSupported();
22728
- }
22729
22707
  var live = /* @__PURE__ */ Object.freeze({
22730
22708
  __proto__: null,
22731
22709
  ErrorCode,
@@ -22734,7 +22712,6 @@ var __publicField = (obj, key, value) => {
22734
22712
  setModuleSystem("esm");
22735
22713
  util.isMseSupported;
22736
22714
  util.isSoftDecodeSupported;
22737
- util.isMMSSupported;
22738
22715
  setModuleSystem("umd");
22739
22716
  exports2.Codec = Codec;
22740
22717
  exports2.DecodeType = DecodeType;
@@ -22748,8 +22725,6 @@ var __publicField = (obj, key, value) => {
22748
22725
  exports2.Sniffer = sniffer$1;
22749
22726
  exports2.ZH_CN = ZH_CN$1;
22750
22727
  exports2.createLivePlayer = createLivePlayer;
22751
- exports2.isFLVSupported = isFLVSupported;
22752
- exports2.isMMSSupported = isMMSSupported;
22753
22728
  exports2.isMseSupported = isMseSupported;
22754
22729
  exports2.isRTMSupportCodec = isRTMSupportCodec;
22755
22730
  exports2.isRTMSupported = isRTMSupported;
@@ -4167,7 +4167,6 @@ declare namespace strategy {
4167
4167
  }
4168
4168
  type StrategyCreator<T, R extends keyof ModulesMap = any> = (options?: T) => Strategy<T, R>;
4169
4169
  const createFlvMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
4170
- const createFlvMssStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
4171
4170
  const createHlsMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginHls>;
4172
4171
  const createSoftDecodeH264Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
4173
4172
  const createSoftDecodeH265Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
@@ -4219,12 +4218,10 @@ declare function isMseSupported(codec?: string): boolean;
4219
4218
  * @returns
4220
4219
  */
4221
4220
  declare function isSoftDecodeSupported(): Promise<boolean>;
4222
- declare function isMMSSupported(): boolean;
4223
4221
  declare const util: {
4224
4222
  getStreamType: typeof getStreamType;
4225
4223
  isMseSupported: typeof isMseSupported;
4226
4224
  isSoftDecodeSupported: typeof isSoftDecodeSupported;
4227
- isMMSSupported: typeof isMMSSupported;
4228
4225
  appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
4229
4226
  getUrlObject: (url?: string | undefined) => URL | undefined;
4230
4227
  createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
@@ -5265,6 +5262,13 @@ interface LiveVePlayerOptions extends VePlayerBaseOptions {
5265
5262
  * @brief Configures the information panel for the player, including options to show/hide the panel and the time interval between each information update. The panel supports displaying information for HLS and FLV addresses. If you opt for software decoding, additional information related to software decoding will be displayed.
5266
5263
  */
5267
5264
  infoPanel?: InfoPanelConfig;
5265
+ /** {zh}
5266
+ * @hidden
5267
+ */
5268
+ /** {en}
5269
+ * @brief Configurations for advertising
5270
+ */
5271
+ ad?: AdConfig;
5268
5272
  /** {zh}
5269
5273
  * @brief 为播放器设置直播时移配置,接入方法请参见[功能接入](https://www.volcengine.com/docs/6469/138655#直播时移)。
5270
5274
  */
@@ -5526,6 +5530,76 @@ interface TimeShiftConfig {
5526
5530
  */
5527
5531
  position?: string;
5528
5532
  }
5533
+ /** {zh}
5534
+ * @hidden
5535
+ */
5536
+ /** {en}
5537
+ * @list option
5538
+ * @kind property
5539
+ * @brief Advertising schedule for a single ad break
5540
+ */
5541
+ interface AdRule {
5542
+ /** {en}
5543
+ * @brief When to play the configured ad tag
5544
+ * - `pre`: Ad plays as a preroll
5545
+ * - `post`: Ad plays as a postroll
5546
+ * - (timecode): Ad plays at a specific time, in HH:MM:SS or HH:MM:SS.sss format
5547
+ */
5548
+ offset: string;
5549
+ /** {en}
5550
+ * @brief URL of the ad tag for IMA plugins, must be a VAST xml
5551
+ */
5552
+ tag: string;
5553
+ }
5554
+ /** {zh}
5555
+ * @hidden
5556
+ */
5557
+ /** {en}
5558
+ * @list option
5559
+ * @kind property
5560
+ * @brief Configurations for Google IMA SDK
5561
+ */
5562
+ interface ImaConfig {
5563
+ /** {en}
5564
+ * @brief URL of the ad tag for IMA plugins
5565
+ */
5566
+ adTagUrl?: string;
5567
+ /** {en}
5568
+ * @brief URL of the ad tag for IMA plugins when enableSCTE35 is `true`, must be a VAST xml
5569
+ */
5570
+ adTagUrlForSCTE35?: string;
5571
+ /** {en}
5572
+ * @brief The entire advertising schedule, containing multiple ad breaks
5573
+ */
5574
+ schedule?: AdRule[];
5575
+ }
5576
+ /** {zh}
5577
+ * @hidden
5578
+ */
5579
+ /** {en}
5580
+ * @list option
5581
+ * @kind property
5582
+ * @brief Configurations for advertising
5583
+ */
5584
+ interface AdConfig {
5585
+ /** {en}
5586
+ * @brief Ad client that will be used to display advertisements
5587
+ * - `google-ima`:Use the Google IMA SDK
5588
+ */
5589
+ adType: "google-ima";
5590
+ /** {en}
5591
+ * @brief Property enabling SCTE-35 tag in hls manifest
5592
+ * - false: SCTE-35 disabled
5593
+ * - true: SCTE-35 enabled
5594
+ * @default false
5595
+ */
5596
+ enableSCTE35?: boolean;
5597
+ /** {en}
5598
+ * @brief Configurations for Google IMA SDK
5599
+ * @listtip Required when adType is `google-ima`
5600
+ */
5601
+ ima?: ImaConfig;
5602
+ }
5529
5603
  /** {zh}
5530
5604
  * @list option
5531
5605
  * @kind property
@@ -5608,21 +5682,6 @@ interface Rtm {
5608
5682
  * @brief Specify the recent time length for network evaluation in milliseconds. The default is 1000, which means evaluating the network conditions over the last 1000 milliseconds.
5609
5683
  */
5610
5684
  networkEvaluateInterval?: number;
5611
- /** {zh}
5612
- * @brief 断流后重新拉流是否无缝播放。
5613
- * @default false
5614
- */
5615
- /** {en}
5616
- * @brief
5617
- */
5618
- seamlesslyReload?: boolean;
5619
- /** {zh}
5620
- * @brief 暂停后多久断流,默认不断流。
5621
- */
5622
- /** {en}
5623
- * @brief
5624
- */
5625
- disconnectTime?: number;
5626
5685
  }
5627
5686
  /** {zh}
5628
5687
  * @list option
@@ -6427,7 +6486,6 @@ declare function isRTMSupported(): Promise<boolean>;
6427
6486
  * @returns
6428
6487
  */
6429
6488
  declare function isRTMSupportCodec(codec?: string): Promise<boolean>;
6430
- declare function isFLVSupported(): boolean;
6431
6489
  declare module MobilePlayerPanelWrapper {
6432
6490
  export { MobilePlayerPanel };
6433
6491
  }
@@ -9892,12 +9950,10 @@ declare namespace live {
9892
9950
  * @returns
9893
9951
  */
9894
9952
  function isSoftDecodeSupported(): Promise<boolean>;
9895
- function isMMSSupported(): boolean;
9896
9953
  const util: {
9897
9954
  getStreamType: typeof getStreamType;
9898
9955
  isMseSupported: typeof isMseSupported;
9899
9956
  isSoftDecodeSupported: typeof isSoftDecodeSupported;
9900
- isMMSSupported: typeof isMMSSupported;
9901
9957
  appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
9902
9958
  getUrlObject: (url?: string | undefined) => URL | undefined;
9903
9959
  createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
@@ -10560,6 +10616,13 @@ declare namespace live {
10560
10616
  * @brief Configures the information panel for the player, including options to show/hide the panel and the time interval between each information update. The panel supports displaying information for HLS and FLV addresses. If you opt for software decoding, additional information related to software decoding will be displayed.
10561
10617
  */
10562
10618
  infoPanel?: InfoPanelConfig;
10619
+ /** {zh}
10620
+ * @hidden
10621
+ */
10622
+ /** {en}
10623
+ * @brief Configurations for advertising
10624
+ */
10625
+ ad?: AdConfig;
10563
10626
  /** {zh}
10564
10627
  * @brief 为播放器设置直播时移配置,接入方法请参见[功能接入](https://www.volcengine.com/docs/6469/138655#直播时移)。
10565
10628
  */
@@ -10821,6 +10884,76 @@ declare namespace live {
10821
10884
  */
10822
10885
  position?: string;
10823
10886
  }
10887
+ /** {zh}
10888
+ * @hidden
10889
+ */
10890
+ /** {en}
10891
+ * @list option
10892
+ * @kind property
10893
+ * @brief Advertising schedule for a single ad break
10894
+ */
10895
+ interface AdRule {
10896
+ /** {en}
10897
+ * @brief When to play the configured ad tag
10898
+ * - `pre`: Ad plays as a preroll
10899
+ * - `post`: Ad plays as a postroll
10900
+ * - (timecode): Ad plays at a specific time, in HH:MM:SS or HH:MM:SS.sss format
10901
+ */
10902
+ offset: string;
10903
+ /** {en}
10904
+ * @brief URL of the ad tag for IMA plugins, must be a VAST xml
10905
+ */
10906
+ tag: string;
10907
+ }
10908
+ /** {zh}
10909
+ * @hidden
10910
+ */
10911
+ /** {en}
10912
+ * @list option
10913
+ * @kind property
10914
+ * @brief Configurations for Google IMA SDK
10915
+ */
10916
+ interface ImaConfig {
10917
+ /** {en}
10918
+ * @brief URL of the ad tag for IMA plugins
10919
+ */
10920
+ adTagUrl?: string;
10921
+ /** {en}
10922
+ * @brief URL of the ad tag for IMA plugins when enableSCTE35 is `true`, must be a VAST xml
10923
+ */
10924
+ adTagUrlForSCTE35?: string;
10925
+ /** {en}
10926
+ * @brief The entire advertising schedule, containing multiple ad breaks
10927
+ */
10928
+ schedule?: AdRule[];
10929
+ }
10930
+ /** {zh}
10931
+ * @hidden
10932
+ */
10933
+ /** {en}
10934
+ * @list option
10935
+ * @kind property
10936
+ * @brief Configurations for advertising
10937
+ */
10938
+ interface AdConfig {
10939
+ /** {en}
10940
+ * @brief Ad client that will be used to display advertisements
10941
+ * - `google-ima`:Use the Google IMA SDK
10942
+ */
10943
+ adType: "google-ima";
10944
+ /** {en}
10945
+ * @brief Property enabling SCTE-35 tag in hls manifest
10946
+ * - false: SCTE-35 disabled
10947
+ * - true: SCTE-35 enabled
10948
+ * @default false
10949
+ */
10950
+ enableSCTE35?: boolean;
10951
+ /** {en}
10952
+ * @brief Configurations for Google IMA SDK
10953
+ * @listtip Required when adType is `google-ima`
10954
+ */
10955
+ ima?: ImaConfig;
10956
+ }
10824
10957
  /** {zh}
10825
10958
  * @list option
10826
10959
  * @kind property
@@ -10903,21 +11036,6 @@ declare namespace live {
10903
11036
  * @brief Specify the recent time length for network evaluation in milliseconds. The default is 1000, which means evaluating the network conditions over the last 1000 milliseconds.
10904
11037
  */
10905
11038
  networkEvaluateInterval?: number;
10906
- /** {zh}
10907
- * @brief 断流后重新拉流是否无缝播放。
10908
- * @default false
10909
- */
10910
- /** {en}
10911
- * @brief
10912
- */
10913
- seamlesslyReload?: boolean;
10914
- /** {zh}
10915
- * @brief 暂停后多久断流,默认不断流。
10916
- */
10917
- /** {en}
10918
- * @brief
10919
- */
10920
- disconnectTime?: number;
10921
11039
  }
10922
11040
  /** {zh}
10923
11041
  * @list option
@@ -11699,5 +11817,4 @@ declare namespace live {
11699
11817
  }
11700
11818
  declare const isMseSupported$0: typeof isMseSupported;
11701
11819
  declare const isSoftDecodeSupported$0: typeof isSoftDecodeSupported;
11702
- declare const isMMSSupported$0: typeof isMMSSupported;
11703
- export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isFLVSupported, isRTMSupportCodec, isMMSSupported$0 as isMMSSupported, load, POSITIONS, EN, ZH_CN, Sniffer, live };
11820
+ export { Codec, DecodeType, Degradation, DynamicModule, RTMCodec, ListType, Plugin, ExposedSource, VePlayerLive, util, register, registerPlugin, createLivePlayer, isMseSupported$0 as isMseSupported, isSoftDecodeSupported$0 as isSoftDecodeSupported, isRTMSupported, isRTMSupportCodec, load, POSITIONS, EN, ZH_CN, Sniffer, live };