Created
February 7, 2012 18:42
-
-
Save anonymous/1761168 to your computer and use it in GitHub Desktop.
maerskfleet.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parseUrl = { | |
'Firefox': function (url) { | |
return { | |
'url': config.urls.video[config.urls.location] + 'light/' + url + '.theora.ogv', | |
'type': 'video/ogg; codecs="theora, vorbis"' | |
} | |
}, | |
'Safari': function (url) { | |
return { | |
'url': config.urls.video[config.urls.location] + url + '.mp4video.mp4', | |
'type': 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' | |
} | |
}, | |
'Chrome': function (url) { | |
return { | |
'url': config.urls.video[config.urls.location] + 'light/' + url + '.theora.ogv', | |
'type': 'video/ogg; codecs="theora, vorbis"' | |
} | |
}, | |
'Explorer': function (url) { | |
return { | |
'url': config.urls.video[config.urls.location] + url + '.mp4video.mp4', | |
'type': 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' | |
} | |
}, | |
'iPad': function (url) { | |
return { | |
'url': config.urls.video[config.urls.location] + url + '.mp4video.mp4', | |
'type': 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment