Fix Ustream
This commit is contained in:
parent
3290501e81
commit
e1c8d5c6c9
|
@ -634,13 +634,13 @@ var Getters = {
|
||||||
*
|
*
|
||||||
* [](/eatadick)
|
* [](/eatadick)
|
||||||
*/
|
*/
|
||||||
var m = data.match(/cid":([0-9]+)/);
|
var m = data.match(/https:\/\/www\.ustream\.tv\/embed\/(\d+)/);
|
||||||
if(m) {
|
if (m) {
|
||||||
var title = "Ustream.tv - " + id;
|
var title = "Ustream.tv - " + id;
|
||||||
var media = new Media(m[1], title, "--:--", "us");
|
var media = new Media(m[1], title, "--:--", "us");
|
||||||
callback(false, media);
|
callback(false, media);
|
||||||
} else {
|
} else {
|
||||||
callback(true, null);
|
callback("Channel ID not found", null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -796,7 +796,7 @@ var UstreamPlayer = function (data) {
|
||||||
removeOld(iframe);
|
removeOld(iframe);
|
||||||
iframe.attr("width", VWIDTH);
|
iframe.attr("width", VWIDTH);
|
||||||
iframe.attr("height", VHEIGHT);
|
iframe.attr("height", VHEIGHT);
|
||||||
iframe.attr("src", "//www.ustream.tv/embed/"+self.videoId+"?v=3&wmode=direct");
|
iframe.attr("src", "//www.ustream.tv/embed/"+self.videoId+"?v=3&wmode=direct&autoplay=1");
|
||||||
iframe.attr("frameborder", "0");
|
iframe.attr("frameborder", "0");
|
||||||
iframe.attr("scrolling", "no");
|
iframe.attr("scrolling", "no");
|
||||||
iframe.css("border", "none");
|
iframe.css("border", "none");
|
||||||
|
|
Loading…
Reference in a new issue