public MediaPlayer(Media media) { libvlc_exception_t ex = new libvlc_exception_t(); this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler, ref ex); //this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler); if (this.mplayerHandler == IntPtr.Zero) throw new VlcException(); }
public Media(Core core, string path) { libvlc_exception_t ex = new libvlc_exception_t(); this.mediaHandler = libvlc_media_new(core.Handler, path, ref ex); if (this.mediaHandler == IntPtr.Zero) { throw new VlcException(); } }
public Core(string[] argv) { libvlc_exception_t ex = new libvlc_exception_t(); this.coreHandler = libvlc_new(argv.Length, argv, ref ex); if (this.coreHandler == IntPtr.Zero) { throw new VlcException(); } }
public MediaPlayer(Media media) { libvlc_exception_t ex = new libvlc_exception_t(); this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler, ref ex); //this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler); if (this.mplayerHandler == IntPtr.Zero) { throw new VlcException(); } }
static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
static extern IntPtr libvlc_media_new(IntPtr p_instance, [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
public Media(Core core, string path) { libvlc_exception_t ex = new libvlc_exception_t(); this.mediaHandler = libvlc_media_new(core.Handler, path, ref ex); if (this.mediaHandler == IntPtr.Zero) throw new VlcException(); }
static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
public void Stop() { libvlc_exception_t ex = new libvlc_exception_t(); libvlc_media_player_stop(this.mplayerHandler, ref ex); }
static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
public void Stop() { libvlc_exception_t ex = new libvlc_exception_t(); libvlc_media_player_stop(this.mplayerHandler, ref ex); }
static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
public void Pause() { libvlc_exception_t ex = new libvlc_exception_t(); libvlc_media_player_pause(this.mplayerHandler, ref ex); }
public void Pause() { libvlc_exception_t ex = new libvlc_exception_t(); libvlc_media_player_pause(this.mplayerHandler, ref ex); }
static extern IntPtr libvlc_media_new(IntPtr p_instance, [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
public Core(string[] argv) { libvlc_exception_t ex = new libvlc_exception_t(); this.coreHandler = libvlc_new(argv.Length, argv, ref ex); if (this.coreHandler == IntPtr.Zero) throw new VlcException(); }