Beispiel #1
0
        //Evants
        public void Event_Process(VLCNative.libvlc_event_t p_event, IntPtr ptr)
        {
            VLCEventManager _this = PtrToEvantManager(ptr);

            Console.WriteLine("EVENT");

            throw new Exception("GOT EVENT");
        }
Beispiel #2
0
        public VLCMediaPlayer(LibVLC core, VLCMedia media)
        {
            _this = GCHandle.Alloc(this);

            _core  = core;
            _media = media;


            _instance = VLCNative.MediaPlayer.libvlc_media_player_new_from_media(_media.Handler);

            VLCNative.MediaPlayer.libvlc_video_set_callbacks(_instance, LockCalback, UnlockCalback, DisplayCalback, (IntPtr)_this);

            drawObject = new Gtk.Image();

            _eventManager = new VLCEventManager(this);
        }