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

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

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