@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/esm/index.d.ts +0 -1
- package/esm/veplayer.biz.live.development.js +19 -188
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +155 -37
- package/esm/veplayer.development.js +16 -41
- package/esm/veplayer.live.d.ts +155 -38
- package/esm/veplayer.live.development.js +16 -41
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +0 -1
- package/esm/veplayer.vod.development.js +3 -6
- package/esm/veplayer.vod.production.js +2 -2
- package/package.json +1 -1
- package/umd/index.d.ts +0 -1
- package/umd/veplayer.biz.live.development.js +19 -188
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +155 -37
- package/umd/veplayer.development.js +16 -41
- package/umd/veplayer.live.d.ts +155 -38
- package/umd/veplayer.live.development.js +16 -41
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +0 -1
- package/umd/veplayer.vod.development.js +3 -6
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +155 -37
- package/veplayer.live.d.ts +155 -38
- package/veplayer.vod.d.ts +0 -1
package/esm/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,
|
|
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 };
|
|
@@ -1457,7 +1457,7 @@ var sniffer$1 = {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
|
-
var version = "3.0.21-rc.
|
|
1460
|
+
var version = "3.0.21-rc.3";
|
|
1461
1461
|
var ERROR_TYPE_MAP = {
|
|
1462
1462
|
1: "media",
|
|
1463
1463
|
2: "media",
|
|
@@ -12913,15 +12913,11 @@ async function isSoftDecodeSupported() {
|
|
|
12913
12913
|
const { XGVideoPlugin } = await load(DynamicModule.PluginXgvideo);
|
|
12914
12914
|
return XGVideoPlugin == null ? void 0 : XGVideoPlugin.isSupported();
|
|
12915
12915
|
}
|
|
12916
|
-
function isMMSSupported() {
|
|
12917
|
-
return typeof ManagedMediaSource !== "undefined";
|
|
12918
|
-
}
|
|
12919
12916
|
const util = {
|
|
12920
12917
|
...util$1,
|
|
12921
12918
|
getStreamType,
|
|
12922
12919
|
isMseSupported,
|
|
12923
12920
|
isSoftDecodeSupported,
|
|
12924
|
-
isMMSSupported,
|
|
12925
12921
|
appendSearchParams,
|
|
12926
12922
|
getUrlObject
|
|
12927
12923
|
};
|
|
@@ -13134,6 +13130,7 @@ class Autoplay extends Plugin {
|
|
|
13134
13130
|
}
|
|
13135
13131
|
// 有音量修改,取消静音
|
|
13136
13132
|
handleVolumechange() {
|
|
13133
|
+
this._state.mode = this.player.muted ? 1 : 0;
|
|
13137
13134
|
if (!this._state.showUnmuteBt)
|
|
13138
13135
|
return;
|
|
13139
13136
|
this._state.showUnmuteBt = false;
|
|
@@ -13843,7 +13840,7 @@ class VePlayerBase {
|
|
|
13843
13840
|
* @brief Retrieve the player SDK version number.
|
|
13844
13841
|
*/
|
|
13845
13842
|
get playerVersion() {
|
|
13846
|
-
return "2.
|
|
13843
|
+
return "2.6.0-rc.1";
|
|
13847
13844
|
}
|
|
13848
13845
|
/** {zh}
|
|
13849
13846
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -18979,8 +18976,6 @@ const getFlvStrategy = async (options) => {
|
|
|
18979
18976
|
}
|
|
18980
18977
|
if (codec === "unknown" ? isMseSupported(Codec.H264) : isMseSupported(codec)) {
|
|
18981
18978
|
mseStrategy = createFlvMseStrategy(options);
|
|
18982
|
-
} else if (isMMSSupported()) {
|
|
18983
|
-
mseStrategy = createFlvMssStrategy(options);
|
|
18984
18979
|
}
|
|
18985
18980
|
if (!mseStrategy && !softStrategy) {
|
|
18986
18981
|
return {};
|
|
@@ -19033,38 +19028,24 @@ const getHlsStrategy = async (options) => {
|
|
|
19033
19028
|
plugins: (mseModule == null ? void 0 : mseModule.HlsPlugin) ? [mseModule.HlsPlugin] : []
|
|
19034
19029
|
};
|
|
19035
19030
|
};
|
|
19036
|
-
const
|
|
19031
|
+
const createFlvMseStrategy = (options) => {
|
|
19037
19032
|
var _a;
|
|
19038
19033
|
return {
|
|
19039
|
-
|
|
19040
|
-
|
|
19034
|
+
options: {
|
|
19035
|
+
flv: {
|
|
19036
|
+
retryCount: 0,
|
|
19037
|
+
disconnectRetryCount: ((_a = options == null ? void 0 : options.flv) == null ? void 0 : _a.retryCount) ?? void 0,
|
|
19038
|
+
...(options == null ? void 0 : options.flv) ?? {}
|
|
19039
|
+
}
|
|
19040
|
+
},
|
|
19041
|
+
module: DynamicModule.PluginFlv
|
|
19041
19042
|
};
|
|
19042
19043
|
};
|
|
19043
|
-
const createFlvMseStrategy = (options) => ({
|
|
19044
|
-
options: {
|
|
19045
|
-
flv: {
|
|
19046
|
-
...getDefaultFlvOptions(options),
|
|
19047
|
-
...(options == null ? void 0 : options.flv) ?? {}
|
|
19048
|
-
}
|
|
19049
|
-
},
|
|
19050
|
-
module: DynamicModule.PluginFlv
|
|
19051
|
-
});
|
|
19052
|
-
const createFlvMssStrategy = (options) => ({
|
|
19053
|
-
options: {
|
|
19054
|
-
flv: {
|
|
19055
|
-
preferMMS: true,
|
|
19056
|
-
...getDefaultFlvOptions(options),
|
|
19057
|
-
...(options == null ? void 0 : options.flv) ?? {}
|
|
19058
|
-
}
|
|
19059
|
-
},
|
|
19060
|
-
module: DynamicModule.PluginFlv
|
|
19061
|
-
});
|
|
19062
19044
|
const createHlsMseStrategy = (options) => ({
|
|
19063
19045
|
options: {
|
|
19064
19046
|
hls: {
|
|
19065
19047
|
retryCount: 0,
|
|
19066
19048
|
pollRetryCount: 0,
|
|
19067
|
-
allowedStreamTrackChange: false,
|
|
19068
19049
|
...(options == null ? void 0 : options.hls) ?? {}
|
|
19069
19050
|
}
|
|
19070
19051
|
},
|
|
@@ -22123,10 +22104,10 @@ class Logger extends Plugin {
|
|
|
22123
22104
|
user_id: this._userId,
|
|
22124
22105
|
device_id: this._deviceId,
|
|
22125
22106
|
ext: {
|
|
22126
|
-
veplayer_version: "2.
|
|
22127
|
-
flv_version: "3.0.21-rc.
|
|
22128
|
-
hls_version: "3.0.21-rc.
|
|
22129
|
-
rts_version: "0.2.1-alpha.
|
|
22107
|
+
veplayer_version: "2.6.0-rc.1",
|
|
22108
|
+
flv_version: "3.0.21-rc.3",
|
|
22109
|
+
hls_version: "3.0.21-rc.3",
|
|
22110
|
+
rts_version: "0.2.1-alpha.0"
|
|
22130
22111
|
}
|
|
22131
22112
|
});
|
|
22132
22113
|
}
|
|
@@ -22719,9 +22700,6 @@ async function createLivePlayer(options) {
|
|
|
22719
22700
|
}
|
|
22720
22701
|
return player;
|
|
22721
22702
|
}
|
|
22722
|
-
function isFLVSupported() {
|
|
22723
|
-
return isMseSupported() || isMMSSupported();
|
|
22724
|
-
}
|
|
22725
22703
|
var live = /* @__PURE__ */ Object.freeze({
|
|
22726
22704
|
__proto__: null,
|
|
22727
22705
|
ErrorCode,
|
|
@@ -22730,7 +22708,6 @@ var live = /* @__PURE__ */ Object.freeze({
|
|
|
22730
22708
|
setModuleSystem("esm");
|
|
22731
22709
|
util.isMseSupported;
|
|
22732
22710
|
util.isSoftDecodeSupported;
|
|
22733
|
-
util.isMMSSupported;
|
|
22734
22711
|
setModuleSystem("esm");
|
|
22735
22712
|
export {
|
|
22736
22713
|
Codec,
|
|
@@ -22745,8 +22722,6 @@ export {
|
|
|
22745
22722
|
sniffer$1 as Sniffer,
|
|
22746
22723
|
ZH_CN$1 as ZH_CN,
|
|
22747
22724
|
createLivePlayer,
|
|
22748
|
-
isFLVSupported,
|
|
22749
|
-
isMMSSupported,
|
|
22750
22725
|
isMseSupported,
|
|
22751
22726
|
isRTMSupportCodec,
|
|
22752
22727
|
isRTMSupported,
|
package/esm/veplayer.live.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
|
|
@@ -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
|
-
|
|
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 };
|