/// <summary> /// Change the PlayMode on the device /// </summary> /// <param name="NewMode">Desired Mode</param> public void SetPlayMode(PlayMode NewMode) { CpAVTransport.Enum_CurrentPlayMode RetVal = CpAVTransport.Enum_CurrentPlayMode._UNSPECIFIED_; AVTransport.SetUnspecifiedValue("Enum_CurrentPlayMode", NewMode.ToString()); AVTransport.SetPlayMode((UInt32)this.AVTid, RetVal); }
private void GetTransportSettingsSink(CpAVTransport sender, System.UInt32 InstanceID, CpAVTransport.Enum_CurrentPlayMode PlayMode, CpAVTransport.Enum_CurrentRecordQualityMode RecQualityMode, UPnPInvokeException e, object _Tag) { if (e == null) { _CurrentPlayMode = _cp.Enum_CurrentPlayMode_ToString(PlayMode); if (this.OnCurrentPlayModeChanged != null) { OnCurrentPlayModeChanged(this); } } lock (this) { --StateCounter; if (StateCounter == 0) { if (OnReady != null) { OnReady(this); } } } }