Skip to content

Instantly share code, notes, and snippets.

Created Feb 7, 2012
Embed
What would you like to do?
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