Add ustream support
This commit is contained in:
parent
e45489b77c
commit
c1c3e4c47f
8 changed files with 84 additions and 5 deletions
|
|
@ -502,6 +502,8 @@ function parseVideoURL(url){
|
|||
return [parseTwitch(url), "tw"];
|
||||
else if(url.indexOf("livestream.com") != -1)
|
||||
return [parseLivestream(url), "li"];
|
||||
else if(url.indexOf("ustream.tv") != -1)
|
||||
return [parseUstream(url), "us"];
|
||||
else if(url.indexOf("soundcloud.com") != -1)
|
||||
return [url, "sc"];
|
||||
else if(url.indexOf("vimeo.com") != -1)
|
||||
|
|
@ -550,6 +552,14 @@ function parseLivestream(url) {
|
|||
return null;
|
||||
}
|
||||
|
||||
function parseUstream(url) {
|
||||
var m = url.match(/ustream\.tv\/([a-zA-Z0-9-]+)/);
|
||||
if(m) {
|
||||
return m[1];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function parseVimeo(url) {
|
||||
var m = url.match(/vimeo\.com\/([0-9]+)/);
|
||||
if(m) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue