MuteChangeRequestedEventArgs MuteChangeRequestedEventArgs MuteChangeRequestedEventArgs MuteChangeRequestedEventArgs Class

Definition

Provides information about the MuteChangeRequested event.

public : sealed class MuteChangeRequestedEventArgs : IMuteChangeRequestedEventArgspublic sealed class MuteChangeRequestedEventArgs : IMuteChangeRequestedEventArgsPublic NotInheritable Class MuteChangeRequestedEventArgs Implements IMuteChangeRequestedEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

For an example of creating a software Play To receiver, see Media casting or Media casting.

async void receiver_MuteChangeRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    Windows.Media.PlayTo.MuteChangeRequestedEventArgs args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            VideoPlayer.IsMuted = args.Mute;
        });
}
function receiver_MuteChangeRequested(args) {
    videoPlayer.muted = args.mute;
}
Async Sub receiver_MuteChangeRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Windows.Media.PlayTo.MuteChangeRequestedEventArgs)
    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            VideoPlayer.IsMuted = args.Mute
        End Sub)
End Sub

Properties

Mute Mute Mute Mute

Gets a value that indicates whether mute or unmute was requested.

public : PlatForm::Boolean Mute { get; }public bool Mute { get; }Public ReadOnly Property Mute As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if mute was requested; otherwise false.

See Also

See Also