Пример #1
0
        private void DisposePlaybin()
        {
            playbin.Error          -= OnPlaybinError;
            playbin.EndOfStream    -= OnPlaybinEndOfStream;
            playbin.StateChanged   -= OnPlaybinStateChanged;
            playbin.FoundVideoInfo -= OnPlaybinFoundVideoInfo;
            playbin.FoundTag       -= OnPlaybinFoundTag;

            Widget videoWidget = playbin.GetVideoWidget();

            frame.Remove(videoWidget);

            playbin.Dispose();
            playbin = null;
        }
Пример #2
0
 public void Dispose()
 {
     Close();
     playbin.Dispose();
 }