Monica视频监控处理程序
xc
2021-04-23 b01721ab8a824f4a144ce55a8de6767bbe3f5d0a
src/main/resources/public/js/live/livepler.js
@@ -1,5 +1,35 @@
!(function () {
;!(function () {
    window.onkeydown = function () {
        h5lc.fullscreen = false
    }
    let _content = $("<div class=\"content\">\n" +
        "        <div class=\"player\" onmouseover=\"$('.player .control').css('display', 'block')\" onmouseout=\"$('.player .control').css('display', 'none')\">\n" +
        "            <div class=\"player-wrapper\" id=\"container\" style=\"background-color: #0D0E1B;\">\n" +
        "            </div>\n" +
        "            <div class=\"control\">\n" +
        "                <div class=\"fa fa-play\" id=\"play\"></div>\n" +
        "                <div class=\"fa fa-stop\" id=\"stop\" style=\"display: none\"></div>\n" +
        "                <div class=\"timer\">\n" +
        "                    <span class=\"progress_timer\">00:00:00</span>\n" +
        "                    <span class=\"duration_timer\">00:00:00</span>\n" +
        "                </div>\n" +
        "                <div class=\"fa fa-expand expand\" onclick=\"h5lc.fullscreen=true\"></div>\n" +
        "            </div>\n" +
        "        </div>\n" +
        "    </div>");
    $("#jessibucaContainer").append(_content);
    function constructLive(opt) {
        this._opt = opt;
        if (typeof opt.container === "string") {
            this._opt.container = document.getElementById(opt.container);
        }
        if (!this._opt.container) {
            throw new Error('Jessibuca need container option');
            return;
        }
})();
}})()