Beispiel #1
0
 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();
 }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
        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();
            }
        }
Beispiel #4
0
        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();
            }
        }
Beispiel #5
0
 static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
Beispiel #6
0
 static extern IntPtr libvlc_media_new(IntPtr p_instance,
     [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
Beispiel #7
0
 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();
 }
Beispiel #8
0
 static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray,
                                                      ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
Beispiel #9
0
 static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray,
     ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
Beispiel #10
0
 public void Stop()
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     libvlc_media_player_stop(this.mplayerHandler, ref ex);
 }
Beispiel #11
0
 static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
Beispiel #12
0
 static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
Beispiel #13
0
 static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
Beispiel #14
0
 static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
Beispiel #15
0
 static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
Beispiel #16
0
 static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
Beispiel #17
0
 static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
Beispiel #18
0
 static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
Beispiel #19
0
 static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
Beispiel #20
0
        public void Stop()
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            libvlc_media_player_stop(this.mplayerHandler, ref ex);
        }
Beispiel #21
0
 static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
Beispiel #22
0
 public void Pause()
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     libvlc_media_player_pause(this.mplayerHandler, ref ex);
 }
Beispiel #23
0
        public void Pause()
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            libvlc_media_player_pause(this.mplayerHandler, ref ex);
        }
Beispiel #24
0
 static extern IntPtr libvlc_media_new(IntPtr p_instance,
                                       [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
Beispiel #25
0
 static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
Beispiel #26
0
 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();
 }