挂接到WMP [英] Hooking Into WMP

查看:103
本文介绍了挂接到WMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想挂接到Windows Media Player以便执行以下操作:

1.实时阅读字幕.
2.打开/关闭音量.
3.跳到电影中的某些预定义时间.

我想与WMP进行交流",而不是完全重写媒体播放器来完成我想做的事情.

有谁知道我如何能够钩住"媒体播放器并与其进行通信?我唯一的想法是可能劫持它的队列并听取并向其发布内容,但这很棘手.

我编写的用于执行此操作的应用程序最可能是C#,但在必要的地方到处都使用Win32函数.

感谢您的帮助.

Hello all,

I''d like to hook into Windows Media Player in order to do the following:

1. Read the Caption real-time.
2. Turn the volume on/off.
3. Skip to certain, pre-defined times in the movie.

I''d like to do this "communicating" with WMP as opposed to completely re-writing a media player to do the things I want it to do.

Would anyone know how I might be able to "hook" into the media player and communicate with it? My only thought is to possibly hijack it''s queue and listen into that and post things to it, but that''s pretty tricky.

The app I write to do this would most like be in C# but utilizing Win32 functions here and there where necessary.

Any help is appreciated.

推荐答案

您可以指定电影在WMP中的位置,并设置音量.您不需要任何技巧.要阅读"字幕,即在电影中查找文字并将其转换为实际文字,您需要编写一个位于WMP播放器链中的DirectX过滤器,然后必须购买或编写OCX库.这可能会花费很多钱,为什么您需要这样做?
You can specify the position of a movie in WMP, and set the volume. You don''t need any tricks for that. To ''read'' a caption, that is, to find text in a movie and turn it into actual text, you''d need to write a DirectX filter that sits in the chain of the WMP player, and you''d have to buy or write an OCX library. This is likely to cost a fair bit of money, why do you need to do that ?


这篇关于挂接到WMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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