mirror of https://github.com/calzoneman/sync.git
Fix Ustream
This commit is contained in:
parent
3290501e81
commit
e1c8d5c6c9
|
@ -634,13 +634,13 @@ var Getters = {
|
|||
*
|
||||
* [](/eatadick)
|
||||
*/
|
||||
var m = data.match(/cid":([0-9]+)/);
|
||||
var m = data.match(/https:\/\/www\.ustream\.tv\/embed\/(\d+)/);
|
||||
if (m) {
|
||||
var title = "Ustream.tv - " + id;
|
||||
var media = new Media(m[1], title, "--:--", "us");
|
||||
callback(false, media);
|
||||
} else {
|
||||
callback(true, null);
|
||||
callback("Channel ID not found", null);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -796,7 +796,7 @@ var UstreamPlayer = function (data) {
|
|||
removeOld(iframe);
|
||||
iframe.attr("width", VWIDTH);
|
||||
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("scrolling", "no");
|
||||
iframe.css("border", "none");
|
||||
|
|
Loading…
Reference in New Issue