-
Notifications
You must be signed in to change notification settings - Fork 201
Simpler APIs #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simpler APIs #28
Conversation
davidzhao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg, just a minor comment
| return setSourceEnabled(TrackSource.camera, enabled); | ||
| } | ||
|
|
||
| bool isCameraEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is better defined on Participant, since it'd make it easier to check for remote participant too.
lib/src/types.dart
Outdated
| unknown, | ||
| camera, | ||
| microphone, | ||
| screenShare, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I also added a ScreenShareAudio type.. for when the screen share is shared with an audio track.
| } | ||
|
|
||
| extension LocalParticipantTrackSourceExt on LocalParticipant { | ||
| Future<void> setCamercaEnabled(bool enabled) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo in setCamercaEnabled (should be setCameraEnabled)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omg yesss thanks onichan!!! 🙏🏻😁
No description provided.