JPlayer – Change Default Solution Based on Browser Type

Last Updated on Saturday, 20 October 2012 12:29Written by DarkKnightH20Saturday, 20 October 2012 12:22

Though this will likely help nobody, I thought I’d post this anyway.

I recently was installing JPlayer on a website and found that when the default solution was HTML / HTML5, the MP4 / M4V video being played would randomly stop after a certain amount of seconds. Similarly, Firefox had the same issue.

This was fixed by making FLASH the default solution, but doing that caused the video to be black / not show up for Internet Explorer — IE10, IE9, IE8, and IE7 — you would hear the audio but not see the video.

So I was in a bind. The default solution did not work for both browsers and would cause one to not be compatible.

I solved this by adding Web Browser detection / checking to the JavaScript. Specifically, it detects whether or not you are using Internet Explorer — and if you are, then you are served a HTML version of the player. If you are on Firefox, Chrome, Safari, Opera, or any other browser, then the Adobe Flash version is the default.

Cool: Video Game in a Box

Last Updated on Wednesday, 5 October 2011 08:01Written by DarkKnightH20Thursday, 6 October 2011 08:00

Talk about cool and geeky! This is a VIDEO GAME IN A BOX! Driven by servo motors, magnetic sensors, a piezo speaker, and a teagueduino. Plus a knob and LED of course.

Watch mario jump over goombas and other things. Here’s a link to the project Source Code and here’s the description:

It’s a video game in a box!
This is a physical side scrolling adventure. Make it though the land of evil hopping meanies, industrial debris, and warp tubes. Good luck!
Each obstacle is mounted to the scrolling background with magnetic tape. If the hero passes over one, you die and the game is over.

I’d definitely like to attempt something such as this with my Arduino-Compatible Mega 1280. Maybe ping in a box first!