Organize events (#13)
* move internal events & remove unused events * `TrackUnpublishedEvent` for local tracks * update example since we have local track unpublish events * use flutter_webrtc 0.6.9
This commit is contained in:
@@ -47,11 +47,7 @@ class _ControlsWidgetState extends State<ControlsWidget> {
|
||||
|
||||
void _unpublishAll() async {
|
||||
final result = await context.showUnPublishDialog();
|
||||
if (result == true) {
|
||||
await participant.unpublishAllTracks();
|
||||
// Force to update UI for now
|
||||
participant.notifyListeners();
|
||||
}
|
||||
if (result == true) await participant.unpublishAllTracks();
|
||||
}
|
||||
|
||||
void _muteAudio() {
|
||||
|
||||
Reference in New Issue
Block a user