VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs VolumeChangeRequestedEventArgs Class

Definition

Provides information about the VolumeChangeRequested event.

public : sealed class VolumeChangeRequestedEventArgs : IVolumeChangeRequestedEventArgspublic sealed class VolumeChangeRequestedEventArgs : IVolumeChangeRequestedEventArgsPublic NotInheritable Class VolumeChangeRequestedEventArgs Implements IVolumeChangeRequestedEventArgs// 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_VolumeChangeRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    Windows.Media.PlayTo.VolumeChangeRequestedEventArgs args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            VideoPlayer.Volume = args.Volume;
        });
}
function receiver_VolumeChangeRequested(args) {
    videoPlayer.volume = args.volume;
}
Async Sub receiver_VolumeChangeRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Windows.Media.PlayTo.VolumeChangeRequestedEventArgs)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            VideoPlayer.Volume = args.Volume
        End Sub)
End Sub

Properties

Volume Volume Volume Volume

Gets the new volume level.

public : double Volume { get; }public double Volume { get; }Public ReadOnly Property Volume As double// You can use this property in JavaScript.
Value
double double double double

The new volume level.

See Also

See Also