system-7/index_files/play8.js

2 lines
47 KiB
JavaScript
Raw Permalink Normal View History

2018-09-01 05:07:00 +00:00
!function(e){var n={};function t(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=141)}({139:function(e,n){e.exports="var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// Video/Audio/TV related playback javascript - wrapping and extensions to jwplayer\n// For /details/[IDENTIFIER] and /embed/[IDENTIFIER] and TV pages and more\n\n/* TBD?\n- psuedostreaming\n- chapter marks!\n- more responsive\n*/\n\n/* DONE:\n- 'related items' shows at end of last vid in playlist\n- airplay / chrome casting\n- video /embed/ sharing button click\n- /embed/ logo in control bar\n- playback speed in control bar settings\n- tooltip images\n- webvtt\n- SPACE, left, right, up, down chars\n- caption styling (FCC compliance)\n- flash is only used to play A/V if html5 doesnt work (used to be flash could to UI/UX too)\n*/\n\n/* global jwplayer */\n(function jquery_no_conflict($) {\n // any methods or vars here are like private-to-outside globals and same for all \"Play objects\"\n var stash = {};\n\n // global config, for all Play objects\n\n // playing video size for normal /details/ pages\n var VIDEO_HEIGHT = 480;\n var VIDEO_WIDTH = 640; // (for 4:3 aspect -- scales for other aspects)\n\n var CONTROLS_HEIGHT = 30;\n var AUDIO_WIDTH = 350;\n var AUDIO_HEIGHT = CONTROLS_HEIGHT; // NOTE: may change\n var AUDIO_HEIGHT_WITH_WAVEFORM = 140;\n var AUDIO_HEIGHT_MAX = 240;\n\n var CONTROLS_MAX_WIDTH = 800;\n\n var PLAYLIST_ENTRY_HEIGHT = 20;\n var HEIGHT_ALIST = 370; // NOTE: max height; if few list entries, will be less\n var HEIGHT_VLIST = 100; // NOTE: max height; if few list entries, will be less\n\n var METADATA_HEIGHT = 100; // metadata peekaboo min height! (for \"responsive\")\n\n\n var Play = function () {\n // [playlist] should by an array, something like (ideally) one of:\n // [ {\"file\":\"chapter1.mp4\"}, {\"file\":\"chapter2.mp4\"}, .. ]\n // [ {\"sources\":[{\"file\":\"video.mp4\"},{\"file\":\"video.ogv\"},{..}]}, .. ]\n function Play(jid, playlist) {\n var _this = this;\n\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n _ref$start = _ref.start,\n start = _ref$start === undefined ? 0 : _ref$start,\n _ref$embed = _ref.embed,\n embed = _ref$embed === undefined ? false : _ref$embed,\n _ref$hide_list = _ref.hide_list,\n hide_list = _ref$hide_list === undefined ? false : _ref$hide_list,\n _ref$autoplay = _ref.autoplay,\n autoplay = _ref$autoplay === undefined ? false : _ref$autoplay,\n _ref$audio = _ref.audio,\n audio = _ref$audio === undefined ? false : _ref$audio,\n _ref$width = _ref.width,\n width = _ref$width === undefined ? 0 : _ref$width,\n _ref$height = _ref.height,\n height = _ref$height === undefined ? 0 : _ref$height,\n _ref$responsive = _ref.responsive,\n responsive = _ref$responsive === undefined ? false : _r
//# sourceMappingURL=play8.min.js.map