Fix Ustream

This commit is contained in:
Calvin Montgomery 2015-03-23 16:10:00 -07:00
parent 3290501e81
commit e1c8d5c6c9
2 changed files with 4 additions and 4 deletions

View File

@ -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);
} }
}); });
}, },

View File

@ -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");