PlayToReceiver.NotifyVolumeChange | notifyVolumeChange method

Applies to Windows only

Notifies the Play To receiver that the volume of the audio or video playback has changed.

Syntax


playToReceiver.notifyVolumeChange(volume, mute);

Parameters

volume

Type: Number [JavaScript] | System.Double [.NET] | float64 [C++]

The new value for the volume.

mute

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if the volume was muted; otherwise false.

Remarks

For an example of creating a software Play To receiver, see Quickstart: Creating a Play To Receiver (JavaScript) or Quickstart: Creating a Play To Receiver (C#/VB).


function videoPlayer_VolumeChange() {
    receiver.notifyVolumeChange(videoPlayer.volume, videoPlayer.muted);
}


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.winmd

Capabilities

privateNetworkClientServer

See also

PlayToReceiver
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft