Add streamable.com support (#585)
This commit is contained in:
parent
6aebe82298
commit
88c42af139
6 changed files with 30 additions and 2 deletions
|
|
@ -1273,7 +1273,8 @@
|
|||
hb: HitboxPlayer,
|
||||
us: UstreamPlayer,
|
||||
im: ImgurPlayer,
|
||||
vm: VideoJSPlayer
|
||||
vm: VideoJSPlayer,
|
||||
sb: VideoJSPlayer
|
||||
};
|
||||
|
||||
window.loadMediaPlayer = function(data) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ function formatURL(data) {
|
|||
return data.id;
|
||||
case "hb":
|
||||
return "http://hitbox.tv/" + data.id;
|
||||
case "sb":
|
||||
return "https://streamable.com/" + data.id;
|
||||
default:
|
||||
return "#";
|
||||
}
|
||||
|
|
@ -1366,6 +1368,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})/))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue