flowerpower

modified:   public/home/bcast/jsFlowpl.js
	modified:   templates/home/bcast.html.ep
This commit is contained in:
mynah
2018-08-14 03:46:15 +00:00
parent 57b9744444
commit 476496ac44
3 changed files with 29 additions and 11 deletions

View File

@@ -1,6 +1,25 @@
flowplayer(function (api) {
api.on("load", function (e, api, video) {
console.log("streaming");
});
});
window.onload = function () {
flowplayer(".flowplayer", {
autoplay:true,
ratio: 9/16,
share: false,
clip: {
live:true ,
title: "Transmisión en directo",
sources: [
{ type: "video/webm", src: "//radio.chaos.foundation/live.webm" },
{ type: "application/dash+xml", src: "//radio.chaos.foundation/dash/cell.mpd" },
]
}
}).on("ready", function (e, api, video) {
console.log("engine: "+api.engine.engineName);
console.log("vtype: "+video.type);
console.log("src: "+video.src);
});
}