Skip to content

Commit

Permalink
Merge branch 'main' into feat/video-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol authored Dec 6, 2024
2 parents 3f7f6a0 + 1ccc7c5 commit 32432a7
Show file tree
Hide file tree
Showing 24 changed files with 761 additions and 507 deletions.
217 changes: 27 additions & 190 deletions packages/stream_video/lib/protobuf/video/sfu/event/events.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ import 'package:protobuf/protobuf.dart' as $pb;
import '../models/models.pb.dart' as $0;
import '../models/models.pbenum.dart' as $0;
import '../signal_rpc/signal.pb.dart' as $1;
import 'events.pbenum.dart';

export 'events.pbenum.dart';

enum SfuEvent_EventPayload {
subscriberOffer,
Expand Down Expand Up @@ -2272,65 +2269,11 @@ class AudioLevelChanged extends $pb.GeneratedMessage {
$core.List<AudioLevel> get audioLevels => $_getList(0);
}

class AudioMediaRequest extends $pb.GeneratedMessage {
factory AudioMediaRequest({
$core.int? channelCount,
}) {
final $result = create();
if (channelCount != null) {
$result.channelCount = channelCount;
}
return $result;
}
AudioMediaRequest._() : super();
factory AudioMediaRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory AudioMediaRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AudioMediaRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'stream.video.sfu.event'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'channelCount', $pb.PbFieldType.O3)
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
AudioMediaRequest clone() => AudioMediaRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
AudioMediaRequest copyWith(void Function(AudioMediaRequest) updates) => super.copyWith((message) => updates(message as AudioMediaRequest)) as AudioMediaRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static AudioMediaRequest create() => AudioMediaRequest._();
AudioMediaRequest createEmptyInstance() => create();
static $pb.PbList<AudioMediaRequest> createRepeated() => $pb.PbList<AudioMediaRequest>();
@$core.pragma('dart2js:noInline')
static AudioMediaRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AudioMediaRequest>(create);
static AudioMediaRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.int get channelCount => $_getIZ(0);
@$pb.TagNumber(1)
set channelCount($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasChannelCount() => $_has(0);
@$pb.TagNumber(1)
void clearChannelCount() => clearField(1);
}

class AudioSender extends $pb.GeneratedMessage {
factory AudioSender({
AudioMediaRequest? mediaRequest,
$0.Codec? codec,
}) {
final $result = create();
if (mediaRequest != null) {
$result.mediaRequest = mediaRequest;
}
if (codec != null) {
$result.codec = codec;
}
Expand All @@ -2341,7 +2284,6 @@ class AudioSender extends $pb.GeneratedMessage {
factory AudioSender.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AudioSender', package: const $pb.PackageName(_omitMessageNames ? '' : 'stream.video.sfu.event'), createEmptyInstance: create)
..aOM<AudioMediaRequest>(1, _omitFieldNames ? '' : 'mediaRequest', subBuilder: AudioMediaRequest.create)
..aOM<$0.Codec>(2, _omitFieldNames ? '' : 'codec', subBuilder: $0.Codec.create)
..hasRequiredFields = false
;
Expand All @@ -2367,105 +2309,16 @@ class AudioSender extends $pb.GeneratedMessage {
static AudioSender getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AudioSender>(create);
static AudioSender? _defaultInstance;

@$pb.TagNumber(1)
AudioMediaRequest get mediaRequest => $_getN(0);
@$pb.TagNumber(1)
set mediaRequest(AudioMediaRequest v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasMediaRequest() => $_has(0);
@$pb.TagNumber(1)
void clearMediaRequest() => clearField(1);
@$pb.TagNumber(1)
AudioMediaRequest ensureMediaRequest() => $_ensure(0);

@$pb.TagNumber(2)
$0.Codec get codec => $_getN(1);
$0.Codec get codec => $_getN(0);
@$pb.TagNumber(2)
set codec($0.Codec v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasCodec() => $_has(1);
$core.bool hasCodec() => $_has(0);
@$pb.TagNumber(2)
void clearCodec() => clearField(2);
@$pb.TagNumber(2)
$0.Codec ensureCodec() => $_ensure(1);
}

class VideoMediaRequest extends $pb.GeneratedMessage {
factory VideoMediaRequest({
$core.int? idealHeight,
$core.int? idealWidth,
$core.int? idealFrameRate,
}) {
final $result = create();
if (idealHeight != null) {
$result.idealHeight = idealHeight;
}
if (idealWidth != null) {
$result.idealWidth = idealWidth;
}
if (idealFrameRate != null) {
$result.idealFrameRate = idealFrameRate;
}
return $result;
}
VideoMediaRequest._() : super();
factory VideoMediaRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory VideoMediaRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoMediaRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'stream.video.sfu.event'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'idealHeight', $pb.PbFieldType.O3)
..a<$core.int>(2, _omitFieldNames ? '' : 'idealWidth', $pb.PbFieldType.O3)
..a<$core.int>(3, _omitFieldNames ? '' : 'idealFrameRate', $pb.PbFieldType.O3)
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
VideoMediaRequest clone() => VideoMediaRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
VideoMediaRequest copyWith(void Function(VideoMediaRequest) updates) => super.copyWith((message) => updates(message as VideoMediaRequest)) as VideoMediaRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static VideoMediaRequest create() => VideoMediaRequest._();
VideoMediaRequest createEmptyInstance() => create();
static $pb.PbList<VideoMediaRequest> createRepeated() => $pb.PbList<VideoMediaRequest>();
@$core.pragma('dart2js:noInline')
static VideoMediaRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<VideoMediaRequest>(create);
static VideoMediaRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.int get idealHeight => $_getIZ(0);
@$pb.TagNumber(1)
set idealHeight($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasIdealHeight() => $_has(0);
@$pb.TagNumber(1)
void clearIdealHeight() => clearField(1);

@$pb.TagNumber(2)
$core.int get idealWidth => $_getIZ(1);
@$pb.TagNumber(2)
set idealWidth($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasIdealWidth() => $_has(1);
@$pb.TagNumber(2)
void clearIdealWidth() => clearField(2);

@$pb.TagNumber(3)
$core.int get idealFrameRate => $_getIZ(2);
@$pb.TagNumber(3)
set idealFrameRate($core.int v) { $_setSignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasIdealFrameRate() => $_has(2);
@$pb.TagNumber(3)
void clearIdealFrameRate() => clearField(3);
$0.Codec ensureCodec() => $_ensure(0);
}

/// VideoLayerSetting is used to specify various parameters of a particular encoding in simulcast.
Expand All @@ -2477,9 +2330,9 @@ class VideoLayerSetting extends $pb.GeneratedMessage {
$core.bool? active,
$core.int? maxBitrate,
$core.double? scaleResolutionDownBy,
VideoLayerSetting_Priority? priority,
$0.Codec? codec,
$core.int? maxFramerate,
$core.String? scalabilityMode,
}) {
final $result = create();
if (name != null) {
Expand All @@ -2494,15 +2347,15 @@ class VideoLayerSetting extends $pb.GeneratedMessage {
if (scaleResolutionDownBy != null) {
$result.scaleResolutionDownBy = scaleResolutionDownBy;
}
if (priority != null) {
$result.priority = priority;
}
if (codec != null) {
$result.codec = codec;
}
if (maxFramerate != null) {
$result.maxFramerate = maxFramerate;
}
if (scalabilityMode != null) {
$result.scalabilityMode = scalabilityMode;
}
return $result;
}
VideoLayerSetting._() : super();
Expand All @@ -2514,9 +2367,9 @@ class VideoLayerSetting extends $pb.GeneratedMessage {
..aOB(2, _omitFieldNames ? '' : 'active')
..a<$core.int>(3, _omitFieldNames ? '' : 'maxBitrate', $pb.PbFieldType.O3)
..a<$core.double>(4, _omitFieldNames ? '' : 'scaleResolutionDownBy', $pb.PbFieldType.OF)
..e<VideoLayerSetting_Priority>(5, _omitFieldNames ? '' : 'priority', $pb.PbFieldType.OE, defaultOrMaker: VideoLayerSetting_Priority.PRIORITY_HIGH_UNSPECIFIED, valueOf: VideoLayerSetting_Priority.valueOf, enumValues: VideoLayerSetting_Priority.values)
..aOM<$0.Codec>(6, _omitFieldNames ? '' : 'codec', subBuilder: $0.Codec.create)
..a<$core.int>(7, _omitFieldNames ? '' : 'maxFramerate', $pb.PbFieldType.OU3)
..aOS(8, _omitFieldNames ? '' : 'scalabilityMode')
..hasRequiredFields = false
;

Expand Down Expand Up @@ -2577,46 +2430,42 @@ class VideoLayerSetting extends $pb.GeneratedMessage {
@$pb.TagNumber(4)
void clearScaleResolutionDownBy() => clearField(4);

@$pb.TagNumber(5)
VideoLayerSetting_Priority get priority => $_getN(4);
@$pb.TagNumber(5)
set priority(VideoLayerSetting_Priority v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasPriority() => $_has(4);
@$pb.TagNumber(5)
void clearPriority() => clearField(5);

@$pb.TagNumber(6)
$0.Codec get codec => $_getN(5);
$0.Codec get codec => $_getN(4);
@$pb.TagNumber(6)
set codec($0.Codec v) { setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasCodec() => $_has(5);
$core.bool hasCodec() => $_has(4);
@$pb.TagNumber(6)
void clearCodec() => clearField(6);
@$pb.TagNumber(6)
$0.Codec ensureCodec() => $_ensure(5);
$0.Codec ensureCodec() => $_ensure(4);

@$pb.TagNumber(7)
$core.int get maxFramerate => $_getIZ(6);
$core.int get maxFramerate => $_getIZ(5);
@$pb.TagNumber(7)
set maxFramerate($core.int v) { $_setUnsignedInt32(6, v); }
set maxFramerate($core.int v) { $_setUnsignedInt32(5, v); }
@$pb.TagNumber(7)
$core.bool hasMaxFramerate() => $_has(6);
$core.bool hasMaxFramerate() => $_has(5);
@$pb.TagNumber(7)
void clearMaxFramerate() => clearField(7);

@$pb.TagNumber(8)
$core.String get scalabilityMode => $_getSZ(6);
@$pb.TagNumber(8)
set scalabilityMode($core.String v) { $_setString(6, v); }
@$pb.TagNumber(8)
$core.bool hasScalabilityMode() => $_has(6);
@$pb.TagNumber(8)
void clearScalabilityMode() => clearField(8);
}

class VideoSender extends $pb.GeneratedMessage {
factory VideoSender({
VideoMediaRequest? mediaRequest,
$0.Codec? codec,
$core.Iterable<VideoLayerSetting>? layers,
}) {
final $result = create();
if (mediaRequest != null) {
$result.mediaRequest = mediaRequest;
}
if (codec != null) {
$result.codec = codec;
}
Expand All @@ -2630,7 +2479,6 @@ class VideoSender extends $pb.GeneratedMessage {
factory VideoSender.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoSender', package: const $pb.PackageName(_omitMessageNames ? '' : 'stream.video.sfu.event'), createEmptyInstance: create)
..aOM<VideoMediaRequest>(1, _omitFieldNames ? '' : 'mediaRequest', subBuilder: VideoMediaRequest.create)
..aOM<$0.Codec>(2, _omitFieldNames ? '' : 'codec', subBuilder: $0.Codec.create)
..pc<VideoLayerSetting>(3, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayerSetting.create)
..hasRequiredFields = false
Expand All @@ -2657,30 +2505,19 @@ class VideoSender extends $pb.GeneratedMessage {
static VideoSender getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<VideoSender>(create);
static VideoSender? _defaultInstance;

@$pb.TagNumber(1)
VideoMediaRequest get mediaRequest => $_getN(0);
@$pb.TagNumber(1)
set mediaRequest(VideoMediaRequest v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasMediaRequest() => $_has(0);
@$pb.TagNumber(1)
void clearMediaRequest() => clearField(1);
@$pb.TagNumber(1)
VideoMediaRequest ensureMediaRequest() => $_ensure(0);

@$pb.TagNumber(2)
$0.Codec get codec => $_getN(1);
$0.Codec get codec => $_getN(0);
@$pb.TagNumber(2)
set codec($0.Codec v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasCodec() => $_has(1);
$core.bool hasCodec() => $_has(0);
@$pb.TagNumber(2)
void clearCodec() => clearField(2);
@$pb.TagNumber(2)
$0.Codec ensureCodec() => $_ensure(1);
$0.Codec ensureCodec() => $_ensure(0);

@$pb.TagNumber(3)
$core.List<VideoLayerSetting> get layers => $_getList(2);
$core.List<VideoLayerSetting> get layers => $_getList(1);
}

/// sent to users when they need to change the quality of their video
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,3 @@
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

class VideoLayerSetting_Priority extends $pb.ProtobufEnum {
static const VideoLayerSetting_Priority PRIORITY_HIGH_UNSPECIFIED = VideoLayerSetting_Priority._(0, _omitEnumNames ? '' : 'PRIORITY_HIGH_UNSPECIFIED');
static const VideoLayerSetting_Priority PRIORITY_LOW = VideoLayerSetting_Priority._(1, _omitEnumNames ? '' : 'PRIORITY_LOW');
static const VideoLayerSetting_Priority PRIORITY_MEDIUM = VideoLayerSetting_Priority._(2, _omitEnumNames ? '' : 'PRIORITY_MEDIUM');
static const VideoLayerSetting_Priority PRIORITY_VERY_LOW = VideoLayerSetting_Priority._(3, _omitEnumNames ? '' : 'PRIORITY_VERY_LOW');

static const $core.List<VideoLayerSetting_Priority> values = <VideoLayerSetting_Priority> [
PRIORITY_HIGH_UNSPECIFIED,
PRIORITY_LOW,
PRIORITY_MEDIUM,
PRIORITY_VERY_LOW,
];

static final $core.Map<$core.int, VideoLayerSetting_Priority> _byValue = $pb.ProtobufEnum.initByValue(values);
static VideoLayerSetting_Priority? valueOf($core.int value) => _byValue[value];

const VideoLayerSetting_Priority._($core.int v, $core.String n) : super(v, n);
}


const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
Loading

0 comments on commit 32432a7

Please sign in to comment.