public void Stop() { if (this.IsRunning) { receiver.Stop(); // notify client that the video is finished RaiseVideoSourceFinishedEvent(VideoSourceFinishedReasonType.StoppedByUser); } }
void OnDestroy() { receiver.Stop(); }
private void OnClosing(object sender, CancelEventArgs e) { receiver.Stop(); }
void OnApplicationQuit() { //Debug.Log("OnApplicationQuit"); receiver.Stop(); }