Skip to content

Conversation

@hiroshihorie
Copy link
Member

No description provided.

@hiroshihorie hiroshihorie marked this pull request as ready for review November 9, 2021 04:20
Copy link
Member

@davidzhao davidzhao left a 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() {
Copy link
Member

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.

unknown,
camera,
microphone,
screenShare,
Copy link
Member

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 {
Copy link
Contributor

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omg yesss thanks onichan!!! 🙏🏻😁

@hiroshihorie hiroshihorie merged commit 1095e25 into main Nov 10, 2021
@hiroshihorie hiroshihorie deleted the simpler-api branch November 10, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants