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