@byteplus/vepusher 2.0.4-rc.12 → 2.0.4-rc.13

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.
@@ -351,6 +351,7 @@ declare interface IProperty {
351
351
  * @brief Update the push stream address. The effect: When reconnecting, the latest push stream address will be used to avoid push stream address timeout authentication failure.
352
352
  */
353
353
  updatePushUrl: string;
354
+ setGetCustomRTMAnswerSdp: (offerSdp: RTCSessionDescriptionInit) => Promise<RTCSessionDescriptionInit>;
354
355
  }
355
356
 
356
357
  declare type IVePusherEvents = {
@@ -978,7 +979,12 @@ declare class LivePusher extends default_2<RTMEvents> {
978
979
  * - ** Success**: No return value.
979
980
  * - ** Failure**: Returns an error message.
980
981
  */
981
- startPush(rtmUrl: string): Promise<void>;
982
+ startPush(rtmUrl: string, options?: {
983
+ whip?: {
984
+ useWHIP: boolean;
985
+ bearerToken: string;
986
+ };
987
+ }): Promise<void>;
982
988
  /** {zh}
983
989
  * @brief 将视频流添加到合流画布中,可以将多个视频流(例如主播的摄像头画面、屏幕共享画面)合成到同一个合流画布中,如果视频流中包含音频信息,音频也会被添加到混音模块中。
984
990
  * @notes 必须在已调用 [`enableMixing()`](#livepusher-enablemixing) 方法启用合流功能后使用。