/// <summary> /// Инициализация аудиотрансляции. /// </summary> public void InitializeAudio() { // Запуск воспроизведения аудио: if (this.controlSettings.PlayAudio) { try { if (this.audio == null) { this.audio = new AXVLC.VLCPlugin2Class(); } this.audio.Visible = false; this.audio.playlist.items.clear(); this.audio.AutoPlay = true; this.audio.Volume = 200; string[] options = new string[] { @":network-caching=20" }; this.audio.playlist.add( string.Format( @"http://{0}:{1}/audio.wav", this.communicationHelper.RoboHeadAddress, this.controlSettings.IpWebcamPort), null, options); this.audio.playlist.playItem(0); } catch (Exception e) { this.communicationHelper.LastErrorMessage = e.Message; } } }
/// <summary> /// Инициализация аудиотрансляции. /// </summary> public void InitializeAudio() { // Запуск воспроизведения аудио: if (this.controlSettings.PlayAudio) { try { if (this.audio == null) { this.audio = new AXVLC.VLCPlugin2Class(); //this.audio = new AXVLC.VLCPlugin2(); } this.audio.Visible = false; if (this.audio.playlist.items != null) { this.audio.playlist.items.clear(); } this.audio.AutoPlay = true; this.audio.Volume = 200; string[] options = new string[] { @":network-caching=20" }; this.audio.playlist.add( string.Format( @"http://{0}:{1}/audio.wav", this.communicationHelper.RoboHeadAddress, this.controlSettings.IpWebcamPort), null, options); this.audio.playlist.playItem(0); } catch (Exception e) { this.communicationHelper.LastErrorMessage = e.Message; } } }
public cMovie(String MovieName) { vlc = new AXVLC.VLCPlugin2(); movieName = MovieName; }