Exemple #1
0
 public void Dispose()
 {
     mVLC.libvlc_media_player_release(mPlayer);
     mVLC.libvlc_media_release(mMedia);
     mVLC = null;
 }
Exemple #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"));
            }
Exemple #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);
            }