{"version":3,"file":"poodll_red5recorder.min.js","sources":["../src/poodll_red5recorder.js"],"sourcesContent":["/* jshint ignore:start */\ndefine(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzloader'], function ($, log, utils, uploader, lz) {\n\n    \"use strict\"; // jshint ;_;\n\n    log.debug('PoodLL Red5 Recorder: initialising');\n\n    return {\n\n        // This recorder supports the current browser\n        supports_current_browser: function (config) {\n            var iOS = utils.is_ios();\n            var isAndroid = utils.is_android();\n            if (iOS || (config.flashonandroid < 1 && isAndroid)) {\n                return false;\n            } else {\n                if (config.mediatype != 'audio' && config.mediatype != 'video') {\n                    return false;\n                }\n                log.debug('PoodLL Red5 Recorder: supports this browser');\n                return true;\n            }\n        },\n\n        // Perform the embed of this recorder on the page\n        //into the element passed in. with config\n        embed: function (element, config) {\n            switch (config.mediatype) {\n                case 'video':\n                    //log.debug('config.red5video_widgetjson:' + config.red5video_widgetjson);\n                    var swfopts = $.parseJSON(config.red5video_widgetjson);\n                    break;\n                case 'audio':\n                default:\n                    var swfopts = $.parseJSON(config.red5audio_widgetjson);\n            }\n\n            lz.embed.swf(swfopts);\n        }\n    }//end of returned object\n});//total end\n"],"names":["define","$","log","utils","uploader","lz","debug","supports_current_browser","config","iOS","is_ios","isAndroid","is_android","flashonandroid","mediatype","embed","element","swfopts","parseJSON","red5video_widgetjson","red5audio_widgetjson","swf"],"mappings":"AACAA,2CAAO,CAAC,SAAU,WAAY,0BAA2B,yBAA0B,2BAA2B,SAAUC,EAAGC,IAAKC,MAAOC,SAAUC,WAI7IH,IAAII,MAAM,sCAEH,CAGHC,yBAA0B,SAAUC,YAC5BC,IAAMN,MAAMO,SACZC,UAAYR,MAAMS,qBAClBH,KAAQD,OAAOK,eAAiB,GAAKF,cAGb,SAApBH,OAAOM,WAA4C,SAApBN,OAAOM,aAG1CZ,IAAII,MAAM,gDACH,KAMfS,MAAO,SAAUC,QAASR,WAEb,UADDA,OAAOM,cAGHG,QAAUhB,EAAEiB,UAAUV,OAAOW,2BAI7BF,QAAUhB,EAAEiB,UAAUV,OAAOY,sBAGzCf,GAAGU,MAAMM,IAAIJ"}