Пример #1
0
 public void Dispose()
 {
     mVLC.libvlc_media_player_release(mPlayer);
     mVLC.libvlc_media_release(mMedia);
     mVLC = null;
 }
Пример #2
0
            public static void Init(string[] args)
            {
                string ret = Package.Extract (Path.GetFullPath ("./vlc.zip"), Path.GetFullPath ("./vlc/x86"));

                if (!string.IsNullOrWhiteSpace (ret))
                    Log.WriteLine ("Extraction skipped: {0}", ret);

                _vlc = new VLC (Path.GetFullPath ("./vlc"));
            }
Пример #3
0
            public MediaPlayback(VLC vlc, string mrl, string[] options)
            {
                mVLC = vlc;

                mMedia = vlc.libvlc_media_new_location (vlc.mInst, mrl);

                if (null != options)
                {
                    foreach (var opt in options)
                        vlc.libvlc_media_add_option (mMedia, opt);
                }

                mPlayer = vlc.libvlc_media_player_new_from_media (mMedia);
            }