VLC 播放器事件捕获 [英] VLC player event catch

查看:64
本文介绍了VLC 播放器事件捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 C# 应用程序中,我需要在 VLC 播放器(最好)开始播放时触发一些事件(例如,在 VLC 中按下播放按钮).尝试使用 Microsoft Spy++ 的 Windows Media Player 经典版并观察播放时发送的消息开始\重复,但我不知道如何在我的 C# 代码中捕获"这些消息.停止,重复开始)

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).

我的目标是创建一个 C# 函数,它等待播放器中播放事件的开始,然后在我的应用程序中触发一些操作(这也应该在播放结束并开始重复时发生).我应该在这里采取什么方法?

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?

只是为了澄清:我不想在我的应用程序中嵌入一个新的 VLC 实例,而是控制/读取 VLC 的真实"完整版本,由用户单独启动

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

推荐答案

下面链接的文章看起来很旧,但如果不直接使用该组件,也许您可​​以从中收集一些好的信息.

The below linked article looks like it is old, but maybe you can glean some good info from it if not use the component outright.

.NET 到 VLC 的接口

这篇关于VLC 播放器事件捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆