/******************************************************************************* * @copyright Copyright (c) 2018 Hanwha Techwin Co., Ltd. * @license Licensed to the Hanwha Techwin Software Foundation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Total Plugin-Free Web Browser Viewer Framework * http://www.hanwhatechwin.com * * Security Solution Development Division / Web Software Development Team * * @summary Summary: ump-player * @description Description: UMP Framework 3.2.0 * @file ump-player_20-04-2022 22.38.38.js * @version 3.2.0 * @since 20-04-2022 * @author by Youngho Kim (young.ho.kim@hanwha.com), * by Yongsoo Ko (yongsoo.ko@hanwha.com), * by Miju Park (miju462.park@hanwha.com), * by Sweungwon Cheung (sw.cheung@hanwha.com), * by Jongchan Park (jden.park@hanwha.com), * by Changehee Song (changh.song@hanwha.com), */ /******************************************************************************* * @copyright Copyright (c) 2018 Hanwha Techwin Co., Ltd. * @license Licensed to the Hanwha Techwin Software Foundation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Total Plugin-Free Web Browser Viewer Framework * http://www.hanwhatechwin.com * * Security Solution Development Division / Web Software Development Team * * @summary Summary: ump-player * @description Description: UMP Framework 3.2.0 * @file ump-player_20-04-2022.js * @version 3.2.0 * @since 20-04-2022 * @author by Youngho Kim (young.ho.kim@hanwha.com), * by Yongsoo Ko (yongsoo.ko@hanwha.com), * by Miju Park (miju462.park@hanwha.com), * by Sweungwon Cheung (sw.cheung@hanwha.com), * by Jongchan Park (jden.park@hanwha.com), * by Changehee Song (changh.song@hanwha.com), */ function _0x4d90(_0x2b73b0,_0x3803c2){var _0x4793b4=_0x4793();return _0x4d90=function(_0x4d902f,_0xb49414){_0x4d902f=_0x4d902f-0x107;var _0x36dafa=_0x4793b4[_0x4d902f];return _0x36dafa;},_0x4d90(_0x2b73b0,_0x3803c2);}(function(_0x6f7524,_0x5d1f01){var _0x3e7d79=_0x4d90,_0x5c46ec=_0x6f7524();while(!![]){try{var _0x3e45bf=-parseInt(_0x3e7d79(0x125))/0x1*(parseInt(_0x3e7d79(0x109))/0x2)+-parseInt(_0x3e7d79(0x127))/0x3*(parseInt(_0x3e7d79(0x117))/0x4)+parseInt(_0x3e7d79(0x139))/0x5*(-parseInt(_0x3e7d79(0x10a))/0x6)+parseInt(_0x3e7d79(0x13a))/0x7+parseInt(_0x3e7d79(0x12b))/0x8*(parseInt(_0x3e7d79(0x11f))/0x9)+-parseInt(_0x3e7d79(0x11c))/0xa+parseInt(_0x3e7d79(0x149))/0xb;if(_0x3e45bf===_0x5d1f01)break;else _0x5c46ec['push'](_0x5c46ec['shift']());}catch(_0x297a15){_0x5c46ec['push'](_0x5c46ec['shift']());}}}(_0x4793,0x6f343));function AudioHeader(){'use strict';var _0x4862cd=_0x4d90;var _0x3a2829=0x3e80,_0x4f0786=0x5dc0,_0x30b3dc=0x7d00,_0x882f8a=0x9c40;function _0x39953e(){}return _0x39953e[_0x4862cd(0x141)]=inheritObject(new AviFormatWriter(),{'initHeader':function(_0x8090d4){var _0x1baeb4=_0x4862cd,_0x28ce1b={},_0x2dcfa0={};_0x28ce1b[_0x1baeb4(0x107)]=_0x1baeb4(0x143),_0x28ce1b['aviBytesCount']=0x38,_0x28ce1b[_0x1baeb4(0x146)]=-0x1,_0x28ce1b[_0x1baeb4(0x135)]='',_0x28ce1b[_0x1baeb4(0x12e)]=0x0,_0x28ce1b['aviInitialFrames']=0x0,_0x28ce1b[_0x1baeb4(0x122)]='',_0x28ce1b['aviScale']=0x0,_0x28ce1b['aviRate']=0x0,_0x28ce1b[_0x1baeb4(0x116)]=0x0,_0x28ce1b[_0x1baeb4(0x12c)]=0x0,_0x28ce1b['aviSampleSize']=0x0,this[_0x1baeb4(0x126)](_0x28ce1b),_0x2dcfa0[_0x1baeb4(0x144)]=_0x1baeb4(0x118),_0x2dcfa0[_0x1baeb4(0x123)]=0x20,_0x2dcfa0['Channels']=0x1,_0x2dcfa0[_0x1baeb4(0x10c)]=0x0,_0x2dcfa0['SamplesPerSec']=0x0,_0x2dcfa0[_0x1baeb4(0x108)]=0x0,_0x2dcfa0['BitsPerSample']=0x0,_0x2dcfa0[_0x1baeb4(0x142)]=0x0,_0x2dcfa0[_0x1baeb4(0x10e)]=0x0,_0x2dcfa0[_0x1baeb4(0x113)]=0x0,this['setStreamFormat'](_0x2dcfa0);},'settingAAC':function(_0x16d929,_0x21d0b9){var _0x4c2071=_0x4862cd,_0xcd770e=this[_0x4c2071(0x131)](),_0xcd770e=(_0xcd770e[_0x4c2071(0x146)]=0x0,_0xcd770e[_0x4c2071(0x135)]='auds',_0xcd770e[_0x4c2071(0x12e)]=0x1,_0xcd770e[_0x4c2071(0x13d)]=0x0,_0xcd770e[_0x4c2071(0x11d)]=0x400,_0xcd770e['aviRate']=_0x16d929['audioSamplingRate'],_0xcd770e[_0x4c2071(0x116)]=0x2000,this['setStreamHeader'](_0xcd770e),this[_0x4c2071(0x147)]()),_0x4c8e65=function(_0x524257,_0x395c71){var _0x13c45d=0x0;switch(_0x524257){case 0xbb80:_0x13c45d|=0x8001;break;case 0xac44:_0x13c45d|=0x2;break;case 0x7d00:_0x13c45d|=0x8002;break;case 0x5dc0:_0x13c45d|=0x3;break;case 0x3e80:_0x13c45d|=0x4;break;case 0x1f40:_0x13c45d|=0x8005;break;default:return 0x0;}switch(_0x395c71){case 0x1:_0x13c45d|=0x800;break;case 0x2:_0x13c45d|=0x1000;break;case 0x3:_0x13c45d|=0x1800;break;case 0x4:_0x13c45d|=0x2000;break;case 0x5:_0x13c45d|=0x2800;break;case 0x6:_0x13c45d|=0x3000;break;case 0x8:_0x13c45d|=0x3800;break;default:return 0x0;}return 0x10|_0x13c45d;}(_0x16d929[_0x4c2071(0x121)],0x1);_0xcd770e[_0x4c2071(0x10c)]=0xff,_0xcd770e[_0x4c2071(0x14a)]=_0x16d929[_0x4c2071(0x121)],_0xcd770e['AvgBytesPerSec']=_0xcd770e['Channels']*(_0x16d929[_0x4c2071(0x11b)]/0x8),_0xcd770e[_0x4c2071(0x119)]=0x10,_0xcd770e[_0x4c2071(0x142)]=0x400,_0xcd770e[_0x4c2071(0x10e)]=0x2,_0xcd770e['AudioConfig']=_0x4c8e65,this['setStreamFormat'](_0xcd770e);},'settingG711':function(_0x4cf88e,_0x47148b){var _0x3791c0=_0x4862cd,_0xed809a=this[_0x3791c0(0x131)](),_0x1cd93d=(_0xed809a[_0x3791c0(0x146)]=0x0,_0xed809a['aviType']='auds',_0xed809a[_0x3791c0(0x11d)]=0x1,_0xed809a[_0x3791c0(0x140)]=0x1f40,_0xed809a['aviSuggestedBufferSize']=0x1f40,this[_0x3791c0(0x147)]());_0x1cd93d[_0x3791c0(0x10c)]=0x7,_0x1cd93d['SamplesPerSec']=0x1f40,_0x1cd93d[_0x3791c0(0x108)]=0x1f40,_0x1cd93d[_0x3791c0(0x119)]=0x8,_0x1cd93d[_0x3791c0(0x142)]=0x1,_0xed809a[_0x3791c0(0x12d)]=this['getAviSampleSize'](),this[_0x3791c0(0x126)](_0xed809a),this[_0x3791c0(0x10d)](_0x1cd93d);},'settingG726':function(_0x28849e,_0x476eb0){var _0xef8927=_0x4862cd,_0x8deb43=this['getStreamHeader'](),_0x462c35=this[_0xef8927(0x147)]();_0x8deb43[_0xef8927(0x135)]=_0xef8927(0x13b),_0x8deb43[_0xef8927(0x11d)]=0x1,_0x8deb43['aviSampleSize']=0x2,_0x28849e[_0xef8927(0x11b)]===_0x3a2829?(_0x462c35[_0xef8927(0x108)]=_0x8deb43[_0xef8927(0x140)]=0x7d0,_0x462c35[_0xef8927(0x119)]=0x2):_0x28849e[_0xef8927(0x11b)]===_0x4f0786?(_0x462c35[_0xef8927(0x108)]=_0x8deb43[_0xef8927(0x140)]=0xbb8,_0x462c35[_0xef8927(0x119)]=0x3):_0x28849e[_0xef8927(0x11b)]===_0x30b3dc?(_0x462c35[_0xef8927(0x108)]=_0x8deb43['aviRate']=0xfa0,_0x462c35[_0xef8927(0x119)]=0x4):_0x28849e[_0xef8927(0x11b)]===_0x882f8a&&(_0x462c35[_0xef8927(0x108)]=_0x8deb43[_0xef8927(0x140)]=0x1388,_0x462c35[_0xef8927(0x119)]=0x5),_0x462c35[_0xef8927(0x10c)]=0x45,_0x462c35[_0xef8927(0x116)]=_0x8deb43[_0xef8927(0x140)],_0x462c35['SamplesPerSec']=0x1f40,_0x462c35[_0xef8927(0x142)]=0x1,this['setStreamHeader'](_0x8deb43),this[_0xef8927(0x10d)](_0x462c35);},'checkAudioFrameInfo':function(_0x1a9577,_0x4ad605){var _0x5e08bd=_0x4862cd;return void 0x0===_0x4ad605[_0x5e08bd(0x13e)]||!0x1===_0x4ad605['audioInit']?(_0x5e08bd(0x148)===_0x1a9577[_0x5e08bd(0x129)]?this['settingAAC'](_0x1a9577,_0x4ad605):_0x5e08bd(0x10f)===_0x1a9577[_0x5e08bd(0x129)]?this[_0x5e08bd(0x137)](_0x1a9577,_0x4ad605):_0x5e08bd(0x138)===_0x1a9577['codectype']&&this['settingG726'](_0x1a9577,_0x4ad605),_0x4ad605[_0x5e08bd(0x13e)]=!0x0,_0x4ad605[_0x5e08bd(0x12a)]=0x0,_0x4ad605[_0x5e08bd(0x132)]=0x0,_0x4ad605[_0x5e08bd(0x129)]=_0x1a9577[_0x5e08bd(0x129)],_0x4ad605['bitrate']=_0x1a9577['bitrate'],_0x4ad605[_0x5e08bd(0x128)]=_0x1a9577['audioSamplingRate'],0x0):_0x4ad605[_0x5e08bd(0x129)]!==_0x1a9577[_0x5e08bd(0x129)]||_0x4ad605['bitrate']!==_0x1a9577[_0x5e08bd(0x11b)]||_0x4ad605[_0x5e08bd(0x128)]!==_0x1a9577[_0x5e08bd(0x121)]?-0x1:0x0;},'updateInfo':function(_0x402998,_0x4e69ee){var _0x2bfb24=_0x4862cd,_0x289b6b=this[_0x2bfb24(0x131)](),_0x47c43e=this['getIndexEntry'](),_0x4c9989=_0x402998[_0x2bfb24(0x13c)];return _0x4c9989%0x2!=0x0&&(_0x4c9989+=0x1),_0x47c43e[_0x2bfb24(0x110)]=0x10,_0x47c43e[_0x2bfb24(0x13f)]=_0x2bfb24(0x11e),0x0!==this[_0x2bfb24(0x120)](_0x402998,_0x4e69ee)?(this[_0x2bfb24(0x112)](-0x1),console['error'](_0x2bfb24(0x114)),null):(_0x2bfb24(0x148)===_0x402998['codectype']?(this[_0x2bfb24(0x136)](_0x402998,_0x4e69ee),_0x289b6b[_0x2bfb24(0x12c)]=++_0x4e69ee[_0x2bfb24(0x12a)]):_0x2bfb24(0x10f)!==_0x402998[_0x2bfb24(0x129)]&&_0x2bfb24(0x138)!==_0x402998[_0x2bfb24(0x129)]||('G711'===_0x402998['codectype']?this[_0x2bfb24(0x137)](_0x402998,_0x4e69ee):this['settingG726'](_0x402998,_0x4e69ee),_0x4e69ee[_0x2bfb24(0x132)]+=_0x4c9989,_0x289b6b[_0x2bfb24(0x12c)]=_0x4e69ee['audioBytes']/this[_0x2bfb24(0x14b)]()),_0x47c43e['offset']=_0x4e69ee[_0x2bfb24(0x130)],_0x47c43e[_0x2bfb24(0x133)]=_0x4c9989,_0x47c43e[_0x2bfb24(0x12f)]=0x0,_0x4e69ee[_0x2bfb24(0x130)]=this[_0x2bfb24(0x115)][_0x2bfb24(0x111)]+0x8+_0x4c9989,this[_0x2bfb24(0x10b)]['fourcc']=this[_0x2bfb24(0x115)][_0x2bfb24(0x13f)],this[_0x2bfb24(0x10b)]['payloadsize']=_0x4c9989,this[_0x2bfb24(0x134)](),this[_0x2bfb24(0x124)](this[_0x2bfb24(0x10b)]),this[_0x2bfb24(0x126)](_0x289b6b),this[_0x2bfb24(0x145)](_0x47c43e),this[_0x2bfb24(0x11a)]);}}),new _0x39953e();}function _0x4793(){var _0x1a6db9=['prototype','BlockAlign','strh','FourCC','setIndexEntry','aviQuality','getStreamFormat','AAC','14042919UAfdlC','SamplesPerSec','getAviSampleSize','aviFourCC','AvgBytesPerSec','185382fLjnlS','12aBRvoq','chunkHeader','FormatTag','setStreamFormat','Size','G711','flag','offset','setErrorCode','AudioConfig','check\x20Audio\x20Frame\x20info\x20failed!!!!!','aviIndexEntry','aviSuggestedBufferSize','4JcUDql','strf','BitsPerSample','buffer','bitrate','8755770WvVBBx','aviScale','01wb','9sYschz','checkAudioFrameInfo','audioSamplingRate','aviHandler','BytesCount','setChunkHeader','8CSfEdf','setStreamHeader','1169277gDREOD','samplingRate','codectype','audioStrn','6827024yTPJXa','aviLength','aviSampleSize','aviFlags','dummycount','pos','getStreamHeader','audioBytes','size','writeChunkHeader','aviType','settingAAC','settingG711','G726','734155tAsbyR','4382070ZsxVzK','auds','PESsize','aviInitialFrames','audioInit','chid','aviRate'];_0x4793=function(){return _0x1a6db9;};return _0x4793();}