UNPKG

@jxstjh/jhvideo

Version:

HTML5 jhvideo base on MPEG2-TS Stream Player

78 lines 2.45 kB
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; export var BarItemType; (function (BarItemType) { BarItemType["BTN"] = "btn"; BarItemType["LABEL"] = "label"; })(BarItemType || (BarItemType = {})); export var PlayerMode; (function (PlayerMode) { PlayerMode["DESKTOP"] = "desktop"; PlayerMode["MOBILE"] = "mobile"; })(PlayerMode || (PlayerMode = {})); export var defaultStreamOpt = { // user: 'admin', passage: '0', deviceType: "pvgplus", isptz: false, // password: "a123456", protocolType: "websocketflv", protocol: 'ws', streamtype: "live", footerToolBar: [], headerToolBar: [], enableWorker: false, autoAudio: true, isDraw: false, isTalk: true }; export var defaultControllerOpt = { hideTools: true }; export var createDefaultStreamOpt = function () { var url = window.location.protocol; var protocol = url === 'https:' ? 'wss' : 'ws'; return Object.assign({}, __assign(__assign({}, defaultStreamOpt), { protocol: protocol })); }; export var createDefaultControllerOpt = function () { return Object.assign({}, defaultControllerOpt); }; export var JPEvent; (function (JPEvent) { JPEvent["DESTROY"] = "destroy"; JPEvent["INITED"] = "inited"; JPEvent["CREATED"] = "created"; JPEvent["SEEKED"] = "seeked"; JPEvent["PLAY"] = "play"; JPEvent["CANPLAY"] = "canPlay"; JPEvent["PAUSE"] = "pause"; JPEvent["ERROR"] = "error"; JPEvent["CLOSE"] = "close"; JPEvent["FullScreen"] = "fullScreen"; JPEvent["SCREENSHOT"] = "screenshot"; })(JPEvent || (JPEvent = {})); export var StyleSize; (function (StyleSize) { StyleSize["XS"] = "xs"; StyleSize["SM"] = "sm"; StyleSize["MD"] = "md"; StyleSize["LG"] = "lg"; })(StyleSize || (StyleSize = {})); export var Direction; (function (Direction) { Direction[Direction["TL"] = 1] = "TL"; Direction[Direction["TR"] = 2] = "TR"; Direction[Direction["DR"] = 3] = "DR"; Direction[Direction["DL"] = 4] = "DL"; Direction[Direction["NAN"] = 0] = "NAN"; })(Direction || (Direction = {})); //# sourceMappingURL=playerModel.js.map