Condividi tramite


PlayToReceiver.NotifyVolumeChange(Double, Boolean) Metodo

Definizione

Notifica al ricevitore Play To che il volume della riproduzione audio o video è cambiato.

public:
 virtual void NotifyVolumeChange(double volume, bool mute) = NotifyVolumeChange;
void NotifyVolumeChange(double const& volume, bool const& mute);
public void NotifyVolumeChange(double volume, bool mute);
function notifyVolumeChange(volume, mute)
Public Sub NotifyVolumeChange (volume As Double, mute As Boolean)

Parametri

volume
Double

double

Nuovo valore per il volume.

mute
Boolean

bool

True se il volume è stato disattivato; in caso contrario false.

Requisiti Windows

Funzionalità dell'app
privateNetworkClientServer

Commenti

Per un esempio di creazione di un ricevitore Play To software, vedere Cast multimediale.

void VideoPlayer_VolumeChanged(object sender, RoutedEventArgs e)
{
    if (receiver != null)
        receiver.NotifyVolumeChange(VideoPlayer.Volume, VideoPlayer.IsMuted);
}
Sub VideoPlayer_VolumeChanged()
    If receiver IsNot Nothing Then
        receiver.NotifyVolumeChange(VideoPlayer.Volume, VideoPlayer.IsMuted)
    End If
End Sub

Si applica a

Vedi anche