VLC player event catch

Posted by user350632 on Stack Overflow See other posts from Stack Overflow or by user350632
Published on 2010-05-26T08:02:53Z Indexed on 2010/05/26 8:41 UTC
Read the original article Hit count: 240

Filed under:
|
|

In my C# application i need to trigger some events when a VLC player (preferably) starts playback (a play button is pressed in VLC for example).Tried Windows Media Player classic with Microsoft Spy++ and observed messages that are sent when playback starts\repeats but i don't know how i could "catch" those messages in my C# code.So my question: is there any way to hook up to event in VLC (or WMP) and get notified about playback status (play, stop, start of repeat).

My goal is to create a C# function that waits for start of playback event in player and then triggers some actions in my application (this should also happen when playback ends and starts repeating). What approach should i take here?

Just to clearify: I don't want to embedded a new instance of VLC in my app, but instead control/read the "real" full version of VLC, started seperatly by the user

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008