You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
48 KiB
8 lines
48 KiB
3 years ago
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["dep:videojs-flash", "../../videojs-flash/dist/videojs-flash.es.js"],
|
||
|
"sourcesContent": ["import d from \"./node_modules/videojs-flash/dist/videojs-flash.es.js\";export default d;", "import videojs from 'video.js';\nimport { version } from 'videojs-swf/package.json';\nimport window from 'global/window';\n\nvar version$1 = \"2.2.1\";\n\n/**\n * @file flash-rtmp.js\n * @module flash-rtmp\n */\n\n/**\n * Add RTMP properties to the {@link Flash} Tech.\n *\n * @param {Flash} Flash\n * The flash tech class.\n *\n * @mixin FlashRtmpDecorator\n *\n * @return {Flash}\n * The flash tech with RTMP properties added.\n */\nfunction FlashRtmpDecorator(Flash) {\n Flash.streamingFormats = {\n 'rtmp/mp4': 'MP4',\n 'rtmp/flv': 'FLV'\n };\n\n /**\n * Join connection and stream with an ampersand.\n *\n * @param {string} connection\n * The connection string.\n *\n * @param {string} stream\n * The stream string.\n *\n * @return {string}\n * The connection and stream joined with an `&` character\n */\n Flash.streamFromParts = function (connection, stream) {\n return connection + '&' + stream;\n };\n\n /**\n * The flash parts object that contains connection and stream info.\n *\n * @typedef {Object} Flash~PartsObject\n *\n * @property {string} connection\n * The connection string of a source, defaults to an empty string.\n *\n * @property {string} stream\n * The stream string of the source, defaults to an empty string.\n */\n\n /**\n * Convert a source url into a stream and connection parts.\n *\n * @param {string} src\n * the source url\n *\n * @return {Flash~PartsObject}\n * The parts object that contains a connection and a stream\n */\n Flash.streamToParts = function (src) {\n var parts = {\n connection: '',\n stream: ''\n };\n\n if (!src) {\n return parts;\n }\n\n // Look for the normal URL separator we expect, '&'.\n // If found, we split the URL into two pieces around the\n // first '&'.\n var connEnd = src.search(/&(?![\\w-]+=)/);\n var streamBegin = void 0;\n\n if (connEnd !== -1) {\n streamBegin = connEnd + 1;\n } else {\n // If there's not a '&', we use the last '/' as the delimiter.\n connEnd = streamBegin = src.lastIndexOf('/') + 1;\n if (connEnd === 0) {\n // really, there's not a '/'?\n connEnd = streamBegin = src.length;\n }\n }\n\n parts.connection = src.substring(0, connEnd);\n parts.stream = src.substring(streamBegin, src.length);\n\n return parts;\n };\n\n /**\n * Check if the source type is a streaming type.\n *\n * @param {string} srcType\n * The mime type to check.\n *\n * @return {boolean}\n * - True if the source type is a streaming type.\n * - False if the source type is not a streaming type.\n */\n Flash.isStreamingType = function (srcType) {\n return srcType in Flash.streamingFormats;\n };\n\n // RTMP has four variations, any string starting\n // with one of these protocols should be valid\n\n /**\n * Regular expression used to check if the source is an rtmp source.\n *\n * @property {RegExp} Flash.RTMP_RE\n */\n Flash.RTMP_RE = /^rtmp[set]?:\\/\\//i;\n\n /**\n * Check if the source itself is a streaming type.\n *\n * @param {string} src\n * The url to the source.\n *\n * @return {boolean}\n * - True if the source url indicates that the source is streaming.\n * - False if the shource url indicates that the source url is not streaming.\n */\n Flash.isStreamingSrc = function (src) {\n return Flash.RTMP_RE.test(src);\n };\n\n /**\n * A source handler for RTMP urls\n * @type {Object}\n */\n Flash.rtmpSourceHandler = {};\n\n /**\n * Check if Flash can play the given mime type.\n *\n * @param {string} type\n * The mime type to check\n *\n * @return {string}\n * 'maybe', or '' (empty string)\n */\n Flash.rtmpSourceHandler.canPlayType = function (type) {\n if (Flash.isStreamingType(type)) {\n
|
||
|
"mappings": ";;;;;;;;;;;AAAA;AAAA;;;ACAA;AAAA;;;;;;AAEA,oBAAmB;AAEnB,IAAI,YAAY;AAkBhB,4BAA4B,QAAO;AACjC,SAAM,mBAAmB;AAAA,IACvB,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAcA,SAAM,kBAAkB,SAAU,YAAY,QAAQ;AACpD,WAAO,aAAa,MAAM;AAAA,EAC5B;AAuBA,SAAM,gBAAgB,SAAU,KAAK;AACnC,QAAI,QAAQ;AAAA,MACV,YAAY;AAAA,MACZ,QAAQ;AAAA,IACV;AAEA,QAAI,CAA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