@volcengine/veplayer 1.5.13 → 1.5.16

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/dist/index.d.ts CHANGED
@@ -1252,6 +1252,13 @@ export interface IPlayerConfig extends IPlayerOptions {
1252
1252
  * @memberof IPlayerConfig
1253
1253
  */
1254
1254
  enableHlsMSE?: boolean;
1255
+ /**
1256
+ * 在PC Safari上是否不使用hls插件播放,默认true。true: 启用;false: 不启用
1257
+ *
1258
+ * @type {boolean}
1259
+ * @memberof IPlayerConfig
1260
+ */
1261
+ useHlsPluginForSafari?: boolean;
1255
1262
  /**
1256
1263
  * 是否开启mp4的MSE模式,开启后采用MSE方式播放MP4,
1257
1264
  * 同时带来精确的seek加载、视频的无缝切换、流量节省等功能
@@ -1781,6 +1788,7 @@ declare class PlayerData {
1781
1788
  unionId?: string;
1782
1789
  unionInfo?: string;
1783
1790
  isMusic?: boolean;
1791
+ useHlsPluginForSafari: boolean;
1784
1792
  constructor(configs: IPlayerConfig);
1785
1793
  initPlayData(configs: any): void;
1786
1794
  initPlaylistAndGetCurrent(configs: IPlayerConfig): any;
@@ -2120,7 +2128,13 @@ declare class VePlayer {
2120
2128
  * @memberof VePlayer
2121
2129
  */
2122
2130
  getCurrentPlayerConfig(): {
2123
- type?: "vod" | "live";
2131
+ type?: "vod" | "live"; /**
2132
+ * @description 监听sdk事件
2133
+ *
2134
+ * @param {string} action
2135
+ * @param {(...args: any[]) => void} func
2136
+ * @memberof VePlayer
2137
+ */
2124
2138
  isLive?: boolean;
2125
2139
  lineId?: string | number;
2126
2140
  definition?: string;