@volcengine/veplayer 2.5.0 → 2.6.0-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.
- 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/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 };
|
package/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 };
|
package/veplayer.vod.d.ts
CHANGED
|
@@ -3994,7 +3994,6 @@ declare namespace strategy {
|
|
|
3994
3994
|
}
|
|
3995
3995
|
type StrategyCreator<T, R extends keyof ModulesMap = any> = (options?: T) => Strategy<T, R>;
|
|
3996
3996
|
const createFlvMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
|
|
3997
|
-
const createFlvMssStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginFlv>;
|
|
3998
3997
|
const createHlsMseStrategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginHls>;
|
|
3999
3998
|
const createSoftDecodeH264Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
|
|
4000
3999
|
const createSoftDecodeH265Strategy: StrategyCreator<VePlayerBaseOptions, DynamicModule.PluginXgvideo>;
|