Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 4-Jul-14 23:57pm
v3

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900