Page 1 of 1
C# AxVLCPlugin2.attahEvent() not defined?
Posted: 16 May 2017 22:13
by myown94
Hello, I'm developing a c# app and im using the axvlc control but i cant access the attachEvent()/detachEvent() functions because apparently they're not defined.
I have the using AxAXVLC directive. Other functions work fine like AxVLCPlugin2.playlist.add() etc.
Please point me in the right direction.
Re: C# AxVLCPlugin2.attahEvent() not defined?
Posted: 17 May 2017 00:49
by myown94
I finally figured it out. For whatever reason the attachEvent/detachEvent functions dont exist in the xvlc.dll v1. But there are custom event handlers for every event. For example:
DVLCEvents_MediaPlayerTimeChangedEventHandler(FooBar);
Some of the event handlers though are a part of System.EventHandler and you handle them the same way you handle other c# events.
Hopefully this helps someone.
Re: C# AxVLCPlugin2.attahEvent() not defined?
Posted: 17 May 2017 13:42
by da2424
attachEvent/detachEvent will be only provided by Internet Explorer. In C#, VB and so on, you have to use the custom event handlers as you have already found out.
Btw, since VLC 2.2.2, the AXVLC API v1 was removed. Only v2 is still available.