Skip to content

Commit 5ebaab9

Browse files
authored
Merge pull request #11 from danysmall/fix/transceiver-direction-stopped-arg
Added "stopped" value to TransceiverDirection
2 parents 1d76ce3 + 52784d2 commit 5ebaab9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/enums.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ enum RTCVideoViewObjectFit {
4949
RTCVideoViewObjectFitContain,
5050
RTCVideoViewObjectFitCover,
5151
}
52+
5253
enum RTCRtpMediaType {
5354
RTCRtpMediaTypeAudio,
5455
RTCRtpMediaTypeVideo,
@@ -72,20 +73,23 @@ enum TransceiverDirection {
7273
SendOnly,
7374
RecvOnly,
7475
Inactive,
76+
Stopped,
7577
}
7678

7779
final typeStringToRtpTransceiverDirection = <String, TransceiverDirection>{
7880
'sendrecv': TransceiverDirection.SendRecv,
7981
'sendonly': TransceiverDirection.SendOnly,
8082
'recvonly': TransceiverDirection.RecvOnly,
8183
'inactive': TransceiverDirection.Inactive,
84+
'stopped': TransceiverDirection.Stopped,
8285
};
8386

8487
final typeRtpTransceiverDirectionToString = <TransceiverDirection, String>{
8588
TransceiverDirection.SendRecv: 'sendrecv',
8689
TransceiverDirection.SendOnly: 'sendonly',
8790
TransceiverDirection.RecvOnly: 'recvonly',
8891
TransceiverDirection.Inactive: 'inactive',
92+
TransceiverDirection.Stopped: 'stopped,'
8993
};
9094

9195
RTCIceConnectionState iceConnectionStateForString(String? state) {

0 commit comments

Comments
 (0)