@volcengine/veplayer 2.6.0 → 2.6.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/esm/index.d.ts +15 -0
- package/esm/veplayer.biz.live.development.js +3 -3
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +29 -0
- package/esm/veplayer.development.js +107 -40
- package/esm/veplayer.live.d.ts +29 -0
- package/esm/veplayer.live.development.js +107 -40
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +15 -0
- package/esm/veplayer.vod.development.js +104 -37
- package/esm/veplayer.vod.production.js +3 -3
- package/package.json +1 -1
- package/umd/index.d.ts +15 -0
- package/umd/veplayer.biz.live.development.js +3 -3
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +29 -0
- package/umd/veplayer.development.js +107 -40
- package/umd/veplayer.live.d.ts +29 -0
- package/umd/veplayer.live.development.js +107 -40
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +15 -0
- package/umd/veplayer.vod.development.js +104 -37
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +29 -0
- package/veplayer.live.d.ts +29 -0
- package/veplayer.vod.d.ts +15 -0
package/veplayer.d.ts
CHANGED
|
@@ -1526,6 +1526,13 @@ interface VePlayerBaseOptions extends Omit<PlayerOptions, "autoplay" | "i18n"> {
|
|
|
1526
1526
|
* @default false
|
|
1527
1527
|
*/
|
|
1528
1528
|
closeVideoDblclick?: boolean;
|
|
1529
|
+
/** {zh}
|
|
1530
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
1531
|
+
*/
|
|
1532
|
+
/** {en}
|
|
1533
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
1534
|
+
*/
|
|
1535
|
+
mediaElement?: HTMLVideoElement | null;
|
|
1529
1536
|
}
|
|
1530
1537
|
/** {zh}
|
|
1531
1538
|
* @list option
|
|
@@ -1763,6 +1770,7 @@ declare class VePlayerBase {
|
|
|
1763
1770
|
private _previousPrepareResult?;
|
|
1764
1771
|
private _i18nManager;
|
|
1765
1772
|
private _events;
|
|
1773
|
+
private _customMedia?;
|
|
1766
1774
|
private _errorCallback;
|
|
1767
1775
|
/** {zh}
|
|
1768
1776
|
* @hidden
|
|
@@ -3902,6 +3910,13 @@ declare namespace strategy {
|
|
|
3902
3910
|
* @default false
|
|
3903
3911
|
*/
|
|
3904
3912
|
closeVideoDblclick?: boolean;
|
|
3913
|
+
/** {zh}
|
|
3914
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
3915
|
+
*/
|
|
3916
|
+
/** {en}
|
|
3917
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
3918
|
+
*/
|
|
3919
|
+
mediaElement?: HTMLVideoElement | null;
|
|
3905
3920
|
}
|
|
3906
3921
|
/** {zh}
|
|
3907
3922
|
* @list option
|
|
@@ -4276,6 +4291,9 @@ declare const util: {
|
|
|
4276
4291
|
isMMSSupported: typeof isMMSSupported;
|
|
4277
4292
|
appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
|
|
4278
4293
|
getUrlObject: (url?: string | undefined) => URL | undefined;
|
|
4294
|
+
getAttributes(dom: HTMLMediaElement): Record<string, any>;
|
|
4295
|
+
setAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
4296
|
+
replaceAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
4279
4297
|
createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
|
|
4280
4298
|
[propName: string]: any;
|
|
4281
4299
|
} | undefined, cname?: string | undefined): HTMLElement;
|
|
@@ -9210,6 +9228,13 @@ declare namespace live {
|
|
|
9210
9228
|
* @default false
|
|
9211
9229
|
*/
|
|
9212
9230
|
closeVideoDblclick?: boolean;
|
|
9231
|
+
/** {zh}
|
|
9232
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
9233
|
+
*/
|
|
9234
|
+
/** {en}
|
|
9235
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
9236
|
+
*/
|
|
9237
|
+
mediaElement?: HTMLVideoElement | null;
|
|
9213
9238
|
}
|
|
9214
9239
|
/** {zh}
|
|
9215
9240
|
* @list option
|
|
@@ -9448,6 +9473,7 @@ declare namespace live {
|
|
|
9448
9473
|
private _previousPrepareResult?;
|
|
9449
9474
|
private _i18nManager;
|
|
9450
9475
|
private _events;
|
|
9476
|
+
private _customMedia?;
|
|
9451
9477
|
private _errorCallback;
|
|
9452
9478
|
/** {zh}
|
|
9453
9479
|
* @hidden
|
|
@@ -10186,6 +10212,9 @@ declare namespace live {
|
|
|
10186
10212
|
isMMSSupported: typeof isMMSSupported;
|
|
10187
10213
|
appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
|
|
10188
10214
|
getUrlObject: (url?: string | undefined) => URL | undefined;
|
|
10215
|
+
getAttributes(dom: HTMLMediaElement): Record<string, any>;
|
|
10216
|
+
setAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
10217
|
+
replaceAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
10189
10218
|
createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
|
|
10190
10219
|
[propName: string]: any;
|
|
10191
10220
|
} | undefined, cname?: string | undefined): HTMLElement;
|
package/veplayer.live.d.ts
CHANGED
|
@@ -1526,6 +1526,13 @@ interface VePlayerBaseOptions extends Omit<PlayerOptions, "autoplay" | "i18n"> {
|
|
|
1526
1526
|
* @default false
|
|
1527
1527
|
*/
|
|
1528
1528
|
closeVideoDblclick?: boolean;
|
|
1529
|
+
/** {zh}
|
|
1530
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
1531
|
+
*/
|
|
1532
|
+
/** {en}
|
|
1533
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
1534
|
+
*/
|
|
1535
|
+
mediaElement?: HTMLVideoElement | null;
|
|
1529
1536
|
}
|
|
1530
1537
|
/** {zh}
|
|
1531
1538
|
* @list option
|
|
@@ -1763,6 +1770,7 @@ declare class VePlayerBase {
|
|
|
1763
1770
|
private _previousPrepareResult?;
|
|
1764
1771
|
private _i18nManager;
|
|
1765
1772
|
private _events;
|
|
1773
|
+
private _customMedia?;
|
|
1766
1774
|
private _errorCallback;
|
|
1767
1775
|
/** {zh}
|
|
1768
1776
|
* @hidden
|
|
@@ -3902,6 +3910,13 @@ declare namespace strategy {
|
|
|
3902
3910
|
* @default false
|
|
3903
3911
|
*/
|
|
3904
3912
|
closeVideoDblclick?: boolean;
|
|
3913
|
+
/** {zh}
|
|
3914
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
3915
|
+
*/
|
|
3916
|
+
/** {en}
|
|
3917
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
3918
|
+
*/
|
|
3919
|
+
mediaElement?: HTMLVideoElement | null;
|
|
3905
3920
|
}
|
|
3906
3921
|
/** {zh}
|
|
3907
3922
|
* @list option
|
|
@@ -4276,6 +4291,9 @@ declare const util: {
|
|
|
4276
4291
|
isMMSSupported: typeof isMMSSupported;
|
|
4277
4292
|
appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
|
|
4278
4293
|
getUrlObject: (url?: string | undefined) => URL | undefined;
|
|
4294
|
+
getAttributes(dom: HTMLMediaElement): Record<string, any>;
|
|
4295
|
+
setAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
4296
|
+
replaceAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
4279
4297
|
createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
|
|
4280
4298
|
[propName: string]: any;
|
|
4281
4299
|
} | undefined, cname?: string | undefined): HTMLElement;
|
|
@@ -9210,6 +9228,13 @@ declare namespace live {
|
|
|
9210
9228
|
* @default false
|
|
9211
9229
|
*/
|
|
9212
9230
|
closeVideoDblclick?: boolean;
|
|
9231
|
+
/** {zh}
|
|
9232
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
9233
|
+
*/
|
|
9234
|
+
/** {en}
|
|
9235
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
9236
|
+
*/
|
|
9237
|
+
mediaElement?: HTMLVideoElement | null;
|
|
9213
9238
|
}
|
|
9214
9239
|
/** {zh}
|
|
9215
9240
|
* @list option
|
|
@@ -9448,6 +9473,7 @@ declare namespace live {
|
|
|
9448
9473
|
private _previousPrepareResult?;
|
|
9449
9474
|
private _i18nManager;
|
|
9450
9475
|
private _events;
|
|
9476
|
+
private _customMedia?;
|
|
9451
9477
|
private _errorCallback;
|
|
9452
9478
|
/** {zh}
|
|
9453
9479
|
* @hidden
|
|
@@ -10186,6 +10212,9 @@ declare namespace live {
|
|
|
10186
10212
|
isMMSSupported: typeof isMMSSupported;
|
|
10187
10213
|
appendSearchParams: (url?: string | undefined, searchParams?: Record<string, string> | undefined) => string;
|
|
10188
10214
|
getUrlObject: (url?: string | undefined) => URL | undefined;
|
|
10215
|
+
getAttributes(dom: HTMLMediaElement): Record<string, any>;
|
|
10216
|
+
setAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
10217
|
+
replaceAttributes(dom: HTMLMediaElement, attrs?: Record<string, any>): HTMLMediaElement;
|
|
10189
10218
|
createDom(el?: string | undefined, tpl?: string | undefined, attrs?: {
|
|
10190
10219
|
[propName: string]: any;
|
|
10191
10220
|
} | undefined, cname?: string | undefined): HTMLElement;
|
package/veplayer.vod.d.ts
CHANGED
|
@@ -1395,6 +1395,13 @@ interface VePlayerBaseOptions extends Omit<PlayerOptions, "autoplay" | "i18n"> {
|
|
|
1395
1395
|
* @default false
|
|
1396
1396
|
*/
|
|
1397
1397
|
closeVideoDblclick?: boolean;
|
|
1398
|
+
/** {zh}
|
|
1399
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
1400
|
+
*/
|
|
1401
|
+
/** {en}
|
|
1402
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
1403
|
+
*/
|
|
1404
|
+
mediaElement?: HTMLVideoElement | null;
|
|
1398
1405
|
}
|
|
1399
1406
|
/** {zh}
|
|
1400
1407
|
* @list option
|
|
@@ -1595,6 +1602,7 @@ declare class VePlayerBase {
|
|
|
1595
1602
|
private _previousPrepareResult?;
|
|
1596
1603
|
private _i18nManager;
|
|
1597
1604
|
private _events;
|
|
1605
|
+
private _customMedia?;
|
|
1598
1606
|
private _errorCallback;
|
|
1599
1607
|
/** {zh}
|
|
1600
1608
|
* @hidden
|
|
@@ -3729,6 +3737,13 @@ declare namespace strategy {
|
|
|
3729
3737
|
* @default false
|
|
3730
3738
|
*/
|
|
3731
3739
|
closeVideoDblclick?: boolean;
|
|
3740
|
+
/** {zh}
|
|
3741
|
+
* @brief 支持传入 video dom,常应用于多播放器复用同一 video 场景。
|
|
3742
|
+
*/
|
|
3743
|
+
/** {en}
|
|
3744
|
+
* @brief Supports passing in video DOM, commonly used for reusing the same video scene across multiple players.
|
|
3745
|
+
*/
|
|
3746
|
+
mediaElement?: HTMLVideoElement | null;
|
|
3732
3747
|
}
|
|
3733
3748
|
/** {zh}
|
|
3734
3749
|
* @list option
|