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

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.
@@ -438,10 +438,6 @@ declare interface IVideoStreamLayoutParams {
438
438
  * @brief 镜像类型,默认为不镜像。
439
439
  */
440
440
  mirrorType?: MirrorType;
441
- /** {zh}
442
- * @brief 旋转角度,单位为度
443
- */
444
- rotate?: number;
445
441
  }
446
442
 
447
443
  /** {zh}
@@ -539,7 +535,7 @@ declare class LivePusher extends default_2<RTMEvents> {
539
535
  * @return - `true`: The specified streaming mode is supported.
540
536
  * - `false`: The specified streaming mode is not supported.
541
537
  */
542
- static isSupported(mode: PushMode): Promise<boolean>;
538
+ static isSupported(mode: PushMode): Promise<boolean | undefined>;
543
539
  /** {zh}
544
540
  * @brief 创建一个新的 `LivePusher` 实例。
545
541
  * @param options 配置选项,定义推流相关的参数。
@@ -1174,7 +1170,7 @@ declare class LivePusher extends default_2<RTMEvents> {
1174
1170
  * - ** Success**: No return value.
1175
1171
  * - ** Failure**: Returns an error message.
1176
1172
  */
1177
- stopPush(): Promise<void>;
1173
+ stopPush(reason?: string): Promise<void>;
1178
1174
  /** {zh}
1179
1175
  * @brief 判断当前是否正在推流。
1180
1176
  * @return - `true`:正在推流。
@@ -1226,7 +1222,7 @@ declare class LivePusher extends default_2<RTMEvents> {
1226
1222
  * - ** Success**: no return value.
1227
1223
  * - ** Failure**: returns an error message.
1228
1224
  */
1229
- destroy(): Promise<void>;
1225
+ destroy(reason?: string): Promise<void>;
1230
1226
  /** {zh}
1231
1227
  * @default ???
1232
1228
  * @brief 推流器的观察者,用于接收推流状态、错误、警告等通知回调。
@@ -1482,7 +1478,7 @@ declare class Observer implements IVePusherEvents {
1482
1478
  * - `webTransport`: Use WebTransport for streaming.
1483
1479
  * @brief Streaming Mode
1484
1480
  */
1485
- declare type PushMode = 'rtm' | 'webTransport';
1481
+ declare type PushMode = 'rtm' | 'webTransport' | 'mediaEngine';
1486
1482
 
1487
1483
  /** {zh}
1488
1484
  * @detail events