Merge branch '3.0' into videojs-hls

This commit is contained in:
calzoneman 2016-08-09 22:41:55 -07:00
commit e99bfcd47b
6 changed files with 34 additions and 2 deletions

View file

@ -1305,7 +1305,8 @@
us: UstreamPlayer,
im: ImgurPlayer,
vm: VideoJSPlayer,
hl: HLSPlayer
hl: HLSPlayer,
sb: VideoJSPlayer
};
window.loadMediaPlayer = function(data) {

View file

@ -54,6 +54,8 @@ function formatURL(data) {
return "http://hitbox.tv/" + data.id;
case "hl":
return data.id;
case "sb":
return "https://streamable.com/" + data.id;
default:
return "#";
}
@ -1375,6 +1377,13 @@ function parseMediaLink(url) {
};
}
if((m = url.match(/streamable\.com\/([\w-]+)/))) {
return {
id: m[1],
type: "sb"
};
}
/* Shorthand URIs */
// To catch Google Plus by ID alone
if ((m = url.match(/^(?:gp:)?(\d{21}_\d{19}_\d{19})/))) {