feat(streaming): 添加自编码串流模式切换功能
This commit is contained in:
@@ -68,4 +68,11 @@ class ControlCommands {
|
||||
height: height,
|
||||
fps: fps,
|
||||
);
|
||||
|
||||
/// 串流模式切换指令。
|
||||
/// [mode] 为 0=WebRTC 全托管 / 1=自编码(自建 MediaCodec 编解码 + video DataChannel 裸流透传)。
|
||||
static ControlMessage streamMode(int mode) => ControlMessage(
|
||||
action: Action.SET_STREAM_MODE,
|
||||
streamMode: mode,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user