@volcengine/veplayer 1.5.10 → 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
@@ -985,6 +985,9 @@ declare enum CodecType {
985
985
  H265 = "h265",
986
986
  H264 = "h264"
987
987
  }
988
+ declare enum RTMCodec {
989
+ H264 = "h264"
990
+ }
988
991
  export declare type PLAY_MODE_TYPE = "order" | "sloop" | "loop" | "random";
989
992
  export interface IMusicListItem {
990
993
  /**
@@ -1249,6 +1252,13 @@ export interface IPlayerConfig extends IPlayerOptions {
1249
1252
  * @memberof IPlayerConfig
1250
1253
  */
1251
1254
  enableHlsMSE?: boolean;
1255
+ /**
1256
+ * 在PC Safari上是否不使用hls插件播放,默认true。true: 启用;false: 不启用
1257
+ *
1258
+ * @type {boolean}
1259
+ * @memberof IPlayerConfig
1260
+ */
1261
+ useHlsPluginForSafari?: boolean;
1252
1262
  /**
1253
1263
  * 是否开启mp4的MSE模式,开启后采用MSE方式播放MP4,
1254
1264
  * 同时带来精确的seek加载、视频的无缝切换、流量节省等功能
@@ -1778,6 +1788,7 @@ declare class PlayerData {
1778
1788
  unionId?: string;
1779
1789
  unionInfo?: string;
1780
1790
  isMusic?: boolean;
1791
+ useHlsPluginForSafari: boolean;
1781
1792
  constructor(configs: IPlayerConfig);
1782
1793
  initPlayData(configs: any): void;
1783
1794
  initPlaylistAndGetCurrent(configs: IPlayerConfig): any;
@@ -1973,6 +1984,9 @@ declare class VePlayer {
1973
1984
  private sdkUmdLoader;
1974
1985
  static isMSESupported: typeof isMSESupport;
1975
1986
  static isRTMSupported: typeof import("@byted/xgplayer-rts").RtsPlugin.isSupported;
1987
+ static isRTMSupportCodec: (codec: RTMCodec, options: {
1988
+ targetProfileLevel?: string;
1989
+ }) => Promise<boolean>;
1976
1990
  static playerVersion: string;
1977
1991
  constructor(configs: IPlayerConfig);
1978
1992
  /**
@@ -2114,7 +2128,13 @@ declare class VePlayer {
2114
2128
  * @memberof VePlayer
2115
2129
  */
2116
2130
  getCurrentPlayerConfig(): {
2117
- 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
+ */
2118
2138
  isLive?: boolean;
2119
2139
  lineId?: string | number;
2120
2140
  definition?: string;