@byteplus/veplayer 1.18.0-rc.8 → 1.18.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/index.d.ts +161 -0
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +7 -0
- package/lite.esm.mjs +2 -2
- package/lite.min.js +2 -2
- package/package.json +1 -1
- package/plugin/modules/DashAbralgo.mjs +1 -1
- package/plugin/modules/XGVideo.mjs +1 -1
- package/plugin/modules/danmuMask.mjs +1 -1
- package/plugin/modules/danmujs.mjs +1 -1
- package/plugin/modules/dash.mjs +1 -1
- package/plugin/modules/flv.mjs +1 -1
- package/plugin/modules/hls.mjs +1 -1
- package/plugin/modules/hlsEncrypt.mjs +1 -1
- package/plugin/modules/hlsjs.mjs +1 -1
- package/plugin/modules/hlsjsPro.mjs +1 -1
- package/plugin/modules/mp4Encrypt.mjs +1 -1
- package/plugin/modules/preloader.mjs +1 -1
- package/plugin/modules/streamprobe.mjs +1 -1
- package/plugin/modules/vestrategy.mjs +2 -2
- package/plugin/modules/vestrategy_adapt_range.mjs +2 -2
- package/plugin/modules/vestrategy_h265.mjs +2 -2
- package/plugin/modules/vestrategy_preload.mjs +2 -2
- package/plugin/vestrategy.js +1 -1
- package/plugin/vestrategy_preload.js +1 -1
package/lite.d.ts
CHANGED
|
@@ -146,6 +146,8 @@ export interface LiteDramaInfoTranscodeParam {
|
|
|
146
146
|
}
|
|
147
147
|
/** Lite-only preloading scene values supported by the player runtime. */
|
|
148
148
|
export type LitePreloadScene = 0 | 1;
|
|
149
|
+
/** Strategy service configuration mode. */
|
|
150
|
+
export type LiteServiceConfigMode = "remote" | "local-only";
|
|
149
151
|
/** Lite-safe preload strategy configuration. */
|
|
150
152
|
export interface LitePreloadStrategyConfig {
|
|
151
153
|
preloadScene?: LitePreloadScene;
|
|
@@ -160,6 +162,11 @@ export interface LitePreloadStrategyConfig {
|
|
|
160
162
|
export interface LiteStrategyInitOptions {
|
|
161
163
|
/** Optional for a configured short-drama environment. */
|
|
162
164
|
appId?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Short-drama environments default to local-only, non-drama environments
|
|
167
|
+
* default to remote, and an explicit valid value overrides either default.
|
|
168
|
+
*/
|
|
169
|
+
serviceConfigMode?: LiteServiceConfigMode;
|
|
163
170
|
region?: "cn" | "mya" | "va" | "sg";
|
|
164
171
|
strategies: {
|
|
165
172
|
preload?: true | LitePreloadStrategyConfig;
|