示例#1
0
文件: VLC.cs 项目: ming4883/TOB
 public void Dispose()
 {
     mVLC.libvlc_media_player_release(mPlayer);
     mVLC.libvlc_media_release(mMedia);
     mVLC = null;
 }
示例#2
0
文件: App.cs 项目: ming4883/TOB
            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
文件: VLC.cs 项目: ming4883/TOB
            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);
            }