Monica视频监控处理程序
xc
2021-04-25 3377bcd85e545c541282bb2168b0783a74fbbf36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;!(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 class=\"fa fa-close\" id=\"close\"></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;
        }
 
}})()