Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2012 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1761168 to your computer and use it in GitHub Desktop.
Save anonymous/1761168 to your computer and use it in GitHub Desktop.
maerskfleet.com
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