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