![]() |
A Volume Adjusting Application?
Hey everyone.
I was just wondering about the feasibility of a program that detects when a flash video is playing an advertisement and then mutes the computer until the end of the advertisement. Ideally it would play some music and darken the screen too. Is this possible? It seems that if its possible to do the detection, the other stuff would be possible. Does anyone know what language would be best to do such a thing in? I mostly program in php but can do some java too. Is java capable of it? I'm assuming so, but I dont know how. Thoughts? |
I'm pretty sure that Java can't do that, your best bet would be something like C++ which checks the running processes or the current output to headphone jacks.
Otherwise, Javascript will be able to stop any .swf files and show an overlay. On clicking "ok" on the overlay it could load the .swf. |
Quote:
It would be more feasible to crate a computer program at at the click of a button could do that. This way you would not have to decipher what is and is not legit, you would only have to do the process itself. This could probably be done in any computer programming language. If your purposes are exclusively Windows, I would recommend VB.net due to its easiness. |
Hey guys, thanks for the replies.
Your question about distinguishing between ads and legitimate flash would definitely be the hardest part. I noticed that sites like hulu and comedy central seem to crank up the volume on ads, so I was hoping it would be possible to detect some type of pattern with the volume or other variables that could accurately distinguish between the two. Now that I think about it, it seems like if it were possible to detect this it would be so unreliable that it wouldnt work in the great majority of cases. I like your idea about the button though. That was my first idea, but I realized that when im actually watching a streaming show, I'm usually at least 10 feet away from my monitor. What about a wireless mouse or keyboard or some type of bluetooth device to tell the computer when to switch to "ad mode" and when to switch back? I know some people have controlled their computer via wiimote before, and that would be awesome. Lately all I use is linux, so I want to figure out how to write something to work in it. Which language would be best? I knew that web languages dont do this sort of thing which is why I was considering java. So, would it be simple to make a java app that runs on startup, waits for a particular input that comes from a wireless device, and then plays music and darkens the screen when its told to? I dont know where to start, but i guess i'll start with google. Thanks again for the responses. (P.S. whats with the session timeout length for this site? I was logged out by the time i finished writing my post lol) |
maybe worth having a look at a Media PC remote control device, then you can rewrite/hack the driver on your linux box ?
The way I see it if you are trying to click a button on your screen to put it into "add mode" you are going to have to move the cursor.. With a media remote, you can hit a button and maybe bring up the screensaver.. Just a thought, how are you going to know when the advert is finished ??? |
Quote:
Quote:
I only really watch streams on hulu lately, so I dont have a problem with hard coding it to work only for that site. This would make things simpler. All this stuff seems quite tricky though, I wonder if i could do it. Also, budget is about zero bucks since im currently unemployed. |
Zero budget eh... ok, what you like with a soldering iron.. A quick goole I found..
http://www.instructables.com/id/IR-R...your-Computer/ Maybe you could knock something together like that and write a C++ driver, "shouldn't" be too hard given the nature of linux and the supporting community, am should you would find help or even someone who would do most of the work as it's a good idea... I'd would suggest that the adverts are a set length, as most people sell advertising based on time, so you could in theory hit button on the remote that starts a timer of sorts which blanks the screen plays some background music (easy enough in a bash script) for a set length of time, and then revert back say maybe 2 secs before the end of the advert.. |
Zero budget eh... ok, what you like with a soldering iron.. A quick google I found..
http://www.instructables.com/id/IR-R...your-Computer/ Maybe you could knock something together like that and write a C++ driver, "shouldn't" be too hard given the nature of linux and the supporting community, am should you would find help or even someone who would do most of the work as it's a good idea... I'd would suggest that the adverts are a set length, as most people sell advertising based on time, so you could in theory hit button on the remote that starts a timer of sorts which blanks the screen plays some background music (easy enough in a bash script) for a set length of time, and then revert back say maybe 2 secs before the end of the advert.. |
WoW.. Maybe I should have read the page properly... Thats for Windows...
have a look here instead.. http://www.lirc.org/ |
Hmmm, your second link looks promising. Having a remote control which executes commands would be good for this application as well as other cool things, like controlling a music library from accross the room. I'm definitely gonna look into this, but not tonight since im going to bed soon. Lets keep this idea alive though, if it worked it would be pretty awesome I think
Edit: oh yea, zero bucks is a little bit of an exageration, i could spare a few if it was promising :-) |
Quote:
Quote:
Quote:
|
| All times are GMT. The time now is 04:19 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0