| | |
| | | !(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 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; |
| | | } |
| | | |
| | | })(); |
| | | }})() |
| | | |