@volcengine/veplayer 2.11.0-rc.1 → 2.11.1-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/veplayer.biz.live.development.js +0 -12
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +0 -6
- package/esm/veplayer.development.js +3 -15
- package/esm/veplayer.live.d.ts +0 -6
- package/esm/veplayer.live.development.js +3 -15
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +1 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +0 -12
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +0 -6
- package/umd/veplayer.development.js +3 -15
- package/umd/veplayer.live.d.ts +0 -6
- package/umd/veplayer.live.development.js +3 -15
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +1 -1
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +0 -6
- package/veplayer.live.d.ts +0 -6
|
@@ -34446,17 +34446,11 @@ class LicenseEventEmitter {
|
|
|
34446
34446
|
}
|
|
34447
34447
|
class LiveLicenseManager {
|
|
34448
34448
|
constructor() {
|
|
34449
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34450
|
-
// @ts-ignore
|
|
34451
|
-
__publicField(this, "enableLiveLicenseCheck", false);
|
|
34452
34449
|
__publicField(this, "licenseSupportModuleList", []);
|
|
34453
34450
|
__publicField(this, "licenseStatusResult");
|
|
34454
34451
|
__publicField(this, "licenseCheckResult");
|
|
34455
34452
|
}
|
|
34456
34453
|
async create() {
|
|
34457
|
-
if (!this.enableLiveLicenseCheck) {
|
|
34458
|
-
return;
|
|
34459
|
-
}
|
|
34460
34454
|
const [license, featureList] = await Promise.all([
|
|
34461
34455
|
licenseManager$1.checkLicense(),
|
|
34462
34456
|
licenseManager$1.checkModuleList()
|
|
@@ -34470,9 +34464,6 @@ class LiveLicenseManager {
|
|
|
34470
34464
|
}
|
|
34471
34465
|
// 获取 License Fatal 报错信息,License 有问题或者 Domain 不匹配
|
|
34472
34466
|
getLicenseFatalError() {
|
|
34473
|
-
if (!this.enableLiveLicenseCheck) {
|
|
34474
|
-
return;
|
|
34475
|
-
}
|
|
34476
34467
|
if (this.licenseStatusResult === LicenseStatus.LICENSE_STATUS_INVALID) {
|
|
34477
34468
|
console.warn(`current license is invalid, please check license`);
|
|
34478
34469
|
return ErrorCode$1.LICENSE_STATUS_INVALID;
|
|
@@ -34485,9 +34476,6 @@ class LiveLicenseManager {
|
|
|
34485
34476
|
// 验证 License 是否支持该 feature
|
|
34486
34477
|
checkLiveLicenseFeature(feature) {
|
|
34487
34478
|
var _a, _b;
|
|
34488
|
-
if (!this.enableLiveLicenseCheck) {
|
|
34489
|
-
return;
|
|
34490
|
-
}
|
|
34491
34479
|
const result = licenseManager$1.licenseSupportModuleList.includes(feature);
|
|
34492
34480
|
if (!result) {
|
|
34493
34481
|
if (this.licenseCheckResult === LicenseEdition.EDITION_STANDARD) {
|