Bryan Summers
asked on
if "os" load "page"
I'm trying to find an example of code that will allow me to detect the os ie mac or windows, so that I can load a different page for each os. Right now I have a link to a page with a streaming flv video. works great for windows, but not mac would like to detect the os and then load the page that has the video supported by that os.
since we don't know know how many videos you have and if you're able to convert them, I'm not going to suggest to re-work what could possibly be a core feature of your site. Instead, I would read up on browser detection vs feature detection and see if those options are viable for what you're trying to accomplish
http://msdn.microsoft.com/en-us/magazine/hh475813.aspx
http://msdn.microsoft.com/en-us/magazine/hh475813.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
reply to Raretmass
I tried that went the mp4 route. There seems to be an issue with windows xp checked multiple workstations with current browser versions of firefox and ie and I get this error:
No video with supported format and MIME type found. I defined the MIME content on the server as well.
But the mp4 videos work on win 7 and on my google tablet as well.
I tried that went the mp4 route. There seems to be an issue with windows xp checked multiple workstations with current browser versions of firefox and ie and I get this error:
No video with supported format and MIME type found. I defined the MIME content on the server as well.
But the mp4 videos work on win 7 and on my google tablet as well.
You may need to add the following to your .htaccess file on the web server
AddType video/webm .webm
AddType video/mp4 .mp4
If you server uses IIS you can click on MIME types and the Add button then add the above two types. You may also want to add OGG while you are there.
If you need help adding these this article will guide you
http://coolestguidesontheplanet.com/no-video-with-supported-format-and-mime-type-found/
AddType video/webm .webm
AddType video/mp4 .mp4
If you server uses IIS you can click on MIME types and the Add button then add the above two types. You may also want to add OGG while you are there.
If you need help adding these this article will guide you
http://coolestguidesontheplanet.com/no-video-with-supported-format-and-mime-type-found/
It may be better to detect the feature you want (ie FLV playback) rather than the OS.
Here is an article that describes what options you have.
http://www.html5rocks.com/en/tutorials/detection/
However I would probably just convert the flv into a format that can play on all platforms.
This site can help convert into html5 video. Then you won't need to worry about checking OS version or features.
http://easyhtml5video.com/