public VideoForm(AirplayServer server, string sessionId) { InitializeComponent(); this.server = server; m_Playback = new rotPlayer(); m_Playback.VideoControl = this.videoControl; m_Playback.OnPlaybackStart += Playback_OnPlaybackStart; m_Playback.OnPlaybackStop += Playback_OnPlaybackStop; m_Playback.OnPlaybackReady += Playback_OnPlaybackReady; m_Playback.OnPlaybackPause += Playback_OnPlaybackPause; }
private void VideoForm_FormClosing(object sender, FormClosingEventArgs e) { m_Playback.Dispose(); m_Playback = null; }