播放视频文件时调用c#后台应用程序 [英] Invoke a c# background application when a video file is played

查看:116
本文介绍了播放视频文件时调用c#后台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai guys,

您可能觉得我的问题有点尴尬,但请帮助我。是否可以将ac#background应用程序绑定到视频文件(即flv,mp4,avi)。

这是用户点击我的系统中的特定视频文件 (带有.NET framework 3.5的Windows 7机器),我需要调用我系统的网络摄像头并开始记录它30分钟。

还有一个问题是,有人可以使用fileSystemwatcher来获取文件夹双击。我认为只能抓取文件修改...知道...如果我错了就纠正我。

Hai guys,
You may feel like my question is little awkward but please help me. Is it possible to tie a c# background application to a video file( i.e flv, mp4,avi).
That is when a user clicks a specific video file in my system (Windows 7 machine with .NET framework 3.5), i need to invoke my system's web cam and starts recording it for next 30 minutes.
One more question guys is it possible to use fileSystemwatcher to gab folder double clicks. I think only file modification can be grabbed...know...correct me if i am wrong.

推荐答案

好的 - 没有。

您不能将绑定和应用程序绑定到特定文件,但您可以使用文件类型:所有.AVI文件,.MP4文件等。这个比较简单,你只需要设置文件关联(谷歌会为你找到)。相关的应用程序是你的,它决定它是你正在寻找的文件并播放和/或启动网络摄像头。



AFAIK你不能抓住文件夹双击使用文件系统观察程序,因为它不会成为文件系统操作,直到完成文件的操作 - 直到那时它都是双重点击的应用程序内部,在这种情况下是Windows资源管理器。
Well yes - and no.
You can't "tie" and application to a specific file, but you can to a file type: all .AVI files, .MP4 files and so forth. This is relatively simple, you just need to set the file associations (Google will find that for you). The associated application is yours, it decides if it is the file you are looking for and plays it and / or starts the webcam.

AFAIK you can't "grab folder double clicks" with a file system watcher because it doesn't become a file system operation until something is done with the file - until then it's all internal to teh application being double clicked on, in this case Windows Explorer.


这篇关于播放视频文件时调用c#后台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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