feat(streaming): 添加自编码串流模式切换功能
This commit is contained in:
@@ -39,6 +39,7 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
$core.int? width,
|
||||
$core.int? height,
|
||||
$core.int? fps,
|
||||
$core.int? streamMode,
|
||||
}) {
|
||||
final result = create();
|
||||
if (action != null) result.action = action;
|
||||
@@ -55,6 +56,7 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
if (width != null) result.width = width;
|
||||
if (height != null) result.height = height;
|
||||
if (fps != null) result.fps = fps;
|
||||
if (streamMode != null) result.streamMode = streamMode;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -86,6 +88,7 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
..aI(12, _omitFieldNames ? '' : 'width')
|
||||
..aI(13, _omitFieldNames ? '' : 'height')
|
||||
..aI(14, _omitFieldNames ? '' : 'fps')
|
||||
..aI(15, _omitFieldNames ? '' : 'stream_mode')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
@@ -240,6 +243,17 @@ class ControlMessage extends $pb.GeneratedMessage {
|
||||
$core.bool hasFps() => $_has(13);
|
||||
@$pb.TagNumber(14)
|
||||
void clearFps() => $_clearField(14);
|
||||
|
||||
/// 串流模式(SET_STREAM_MODE / REPORT_STREAM_MODE):
|
||||
/// 0 = WebRTC 全托管;1 = 自编码(自建 MediaCodec 编解码 + video DataChannel)
|
||||
@$pb.TagNumber(15)
|
||||
$core.int get streamMode => $_getIZ(14);
|
||||
@$pb.TagNumber(15)
|
||||
set streamMode($core.int value) => $_setSignedInt32(14, value);
|
||||
@$pb.TagNumber(15)
|
||||
$core.bool hasStreamMode() => $_has(14);
|
||||
@$pb.TagNumber(15)
|
||||
void clearStreamMode() => $_clearField(15);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
|
||||
Reference in New Issue
Block a user