remove mute/unmute from example
This commit is contained in:
@@ -140,19 +140,6 @@ class RemoteTrackPublicationMenuWidget extends StatelessWidget {
|
||||
itemBuilder: (BuildContext context) {
|
||||
return <PopupMenuEntry<Function>>[
|
||||
//
|
||||
// Mute/Unmute
|
||||
//
|
||||
if (pub.muted == false)
|
||||
PopupMenuItem(
|
||||
child: const Text('Mute'),
|
||||
value: () => pub.muted = true,
|
||||
),
|
||||
if (pub.muted == true)
|
||||
PopupMenuItem(
|
||||
child: const Text('Un-mute'),
|
||||
value: () => pub.muted = false,
|
||||
),
|
||||
//
|
||||
// Subscribe/Unsubscribe
|
||||
//
|
||||
if (pub.subscribed == false)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:livekit_client/src/logger.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
import '../events.dart';
|
||||
import '../extensions.dart';
|
||||
@@ -51,6 +52,7 @@ class RemoteTrackPublication extends TrackPublication {
|
||||
/// for internal use
|
||||
/// {@nodoc}
|
||||
@override
|
||||
@internal
|
||||
set muted(bool val) {
|
||||
if (val == muted) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user