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:
Hiroshi Horie
2021-10-01 16:56:36 +09:00
committed by GitHub
parent 84618cf56f
commit b67c807fd5
10 changed files with 62 additions and 103 deletions
+1 -5
View File
@@ -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() {