示例#1
0
        public static VlcMedia CreateFromFileDescriptor(VlcInstance instance, int fd)
        {
            VlcMedia m = new VlcMedia();

            m.Handle = LibVlc.libvlc_media_new_fd(instance.Handle, fd);
            return(m);
        }
示例#2
0
        public static VlcMedia CreateFromFilepath(VlcInstance instance, string file)
        {
            VlcMedia m = new VlcMedia();

            m.Handle = LibVlc.libvlc_media_new_path(instance.Handle, file);
            return(m);
        }
示例#3
0
        public static VlcMedia CreateFromUrl(VlcInstance instance, string url)
        {
            VlcMedia m = new VlcMedia();

            m.Handle = LibVlc.libvlc_media_new_location(instance.Handle, url);
            return(m);
        }
示例#4
0
 public VlcMediaPlayer()
 {
     instance             = new VlcInstance();
     Handle               = LibVlc.libvlc_media_player_new(instance.Handle);
     IsKeyInputConsumed   = false;
     IsMouseInputConsumed = false;
     RegisterEvents();
 }