/******************************************************************************* * @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 _0x13a9(_0x5ec7a2,_0x2d977a){var _0x2eb3d9=_0x2eb3();return _0x13a9=function(_0x13a947,_0xb98b08){_0x13a947=_0x13a947-0x66;var _0x46bba1=_0x2eb3d9[_0x13a947];return _0x46bba1;},_0x13a9(_0x5ec7a2,_0x2d977a);}function _0x2eb3(){var _0x1780db=['movi','set','BlockAlign','chunkHeader','aviWidth','writeInt8','avih','height','aviRate','offset','chid','aviTotalFrames','FormatTag','BitCount','buffer','charCodeAt','aviHeader','fourcc','aviBytesCount','errorCase','Width','Planes','hdrl','22729288IqPmTE','writeInt32','JUNK','Compression','aviPaddingGranularity','streamHeader','aviMaxBytesPerSec','SizeImage','length','Size','pos','BytesCount','aviStreams','idx1','5890434eYwiXs','floor','1210434ikEdDL','aviFlags','aviMicroSecPerFrame','width','aviRight','flag','setBuffer','432498jdDZDC','aviScale','payloadsize','streamFormat','bufferIndex','7rfbjak','aviSuggestedBufferSize','dummycount','BitsPerSample','SamplesPerSec','508860rDabXQ','aviFourCC','strl','writeInt16','aviHeight','AvgBytesPerSec','AudioConfig','writeStreamHeader','mainHeader','RIFF','aviLength','aviBottom','3024668xYQSgS','writeMainHeader','writeString','Channels','3134295zKEAJm','aviQuality','Height','aviIndexEntry','FourCC','framerate','LIST'];_0x2eb3=function(){return _0x1780db;};return _0x2eb3();}(function(_0x1a0417,_0x476d4e){var _0x1a1e3b=_0x13a9,_0x597353=_0x1a0417();while(!![]){try{var _0x533b17=parseInt(_0x1a1e3b(0x7d))/0x1+parseInt(_0x1a1e3b(0x6c))/0x2+-parseInt(_0x1a1e3b(0x73))/0x3+parseInt(_0x1a1e3b(0x89))/0x4+parseInt(_0x1a1e3b(0x8d))/0x5+parseInt(_0x1a1e3b(0x6a))/0x6+parseInt(_0x1a1e3b(0x78))/0x7*(-parseInt(_0x1a1e3b(0xab))/0x8);if(_0x533b17===_0x476d4e)break;else _0x597353['push'](_0x597353['shift']());}catch(_0xdd4702){_0x597353['push'](_0x597353['shift']());}}}(_0x2eb3,0x787cb));function AviFormatWriter(){'use strict';function _0x2d5733(){var _0x204e5b=_0x13a9;this[_0x204e5b(0x77)]=0x0,this[_0x204e5b(0xa7)]=0x0,this['buffer']=[],this[_0x204e5b(0xa4)]={},this[_0x204e5b(0x85)]={},this[_0x204e5b(0xb0)]={},this[_0x204e5b(0x76)]={},this[_0x204e5b(0x90)]={},this[_0x204e5b(0x97)]={},this[_0x204e5b(0xa4)][_0x204e5b(0x66)]=0x4;}return _0x2d5733['prototype']={'setBuffer':function(_0x5f06c0){var _0x2f4e32=_0x13a9;this[_0x2f4e32(0xa2)]=_0x5f06c0,this[_0x2f4e32(0x77)]=0x0;},'writeInt8':function(_0xe16c62){var _0x100ffa=_0x13a9;this[_0x100ffa(0xa2)][this['bufferIndex']]=_0xe16c62,this[_0x100ffa(0x77)]++;},'writeInt16':function(_0x139fad){var _0x273a0a=_0x13a9;this[_0x273a0a(0x99)](0xff&_0x139fad),this[_0x273a0a(0x99)](_0x139fad>>0x8);},'writeInt32':function(_0xf5e3ae){var _0x379b0f=_0x13a9;this[_0x379b0f(0x99)](0xff&_0xf5e3ae),this[_0x379b0f(0x99)](_0xf5e3ae>>0x8&0xff),this['writeInt8'](_0xf5e3ae>>0x10&0xff),this[_0x379b0f(0x99)](_0xf5e3ae>>0x18);},'writeString':function(_0x3e7919){var _0xa6e491=_0x13a9;''===_0x3e7919&&(this['bufferIndex']+=0x4);for(var _0xbf3ce9=0x0;_0xbf3ce9<_0x3e7919[_0xa6e491(0xb3)];_0xbf3ce9++)this[_0xa6e491(0xa2)][this[_0xa6e491(0x77)]++]=_0x3e7919[_0xa6e491(0xa3)](_0xbf3ce9);},'writeChunkHeader':function(_0x91994){var _0x52874b=_0x13a9,_0x4b1f63=_0x91994;null==_0x4b1f63&&(_0x4b1f63=0x0),this[_0x52874b(0x72)](new Uint8Array(0x8+0x8*_0x4b1f63));for(var _0x736f1b=0x0;_0x736f1b<_0x4b1f63;_0x736f1b++)this[_0x52874b(0x8b)](this[_0x52874b(0x97)][_0x52874b(0xa5)]),this[_0x52874b(0xac)](0x0);this[_0x52874b(0x8b)](this['chunkHeader']['fourcc']),this[_0x52874b(0xac)](this['chunkHeader'][_0x52874b(0x75)]);},'initMainHeader':function(_0x153ccb){var _0x1b3c8f=_0x13a9;this[_0x1b3c8f(0x85)][_0x1b3c8f(0x7e)]=_0x1b3c8f(0x9a),this[_0x1b3c8f(0x85)][_0x1b3c8f(0xa6)]=0x38,this['mainHeader'][_0x1b3c8f(0x6e)]=0xf4240/_0x153ccb[_0x1b3c8f(0x92)],this[_0x1b3c8f(0x85)][_0x1b3c8f(0xb1)]=0x0,this[_0x1b3c8f(0x85)][_0x1b3c8f(0xaf)]=0x0,(this[_0x1b3c8f(0x85)][_0x1b3c8f(0x6d)]=0x10010,this[_0x1b3c8f(0x85)]['aviStreams']=0x2,this['mainHeader'][_0x1b3c8f(0x98)]=_0x153ccb[_0x1b3c8f(0x6f)],this[_0x1b3c8f(0x85)]['aviHeight']=_0x153ccb[_0x1b3c8f(0x9b)],this['mainHeader'][_0x1b3c8f(0x79)]=0x20000);},'updateInfo':function(_0x1ebe0a,_0x1765b4,_0x4b944e){},'getStreamHeader':function(){return this['streamHeader'];},'setStreamHeader':function(_0x332c29){var _0x2d725c=_0x13a9;this[_0x2d725c(0xb0)]=_0x332c29;},'getStreamFormat':function(){var _0x29270d=_0x13a9;return this[_0x29270d(0x76)];},'setStreamFormat':function(_0x552238){var _0x558450=_0x13a9;this[_0x558450(0x76)]=_0x552238;},'appendBuffer':function(_0x260a3d){var _0x3a2bb9=_0x13a9;this[_0x3a2bb9(0xa2)][_0x3a2bb9(0x95)](_0x260a3d,this['bufferIndex']),this[_0x3a2bb9(0x77)]+=_0x260a3d[_0x3a2bb9(0xb3)];},'getIndexBuffer':function(){var _0xc88a70=_0x13a9;this['setBuffer'](new Uint8Array(0x10*(0x1+this[_0xc88a70(0x90)][_0xc88a70(0x7a)])));for(var _0x5f2407=this[_0xc88a70(0x90)][_0xc88a70(0x7a)];0x0<_0x5f2407;_0x5f2407--)this[_0xc88a70(0x8b)](this[_0xc88a70(0x90)][_0xc88a70(0x9e)]),this[_0xc88a70(0xac)](this[_0xc88a70(0x90)]['flag']),this[_0xc88a70(0xac)](this[_0xc88a70(0x90)][_0xc88a70(0x9d)]-0x8*this[_0xc88a70(0x90)]['dummycount']),this[_0xc88a70(0xac)](0x0);return this[_0xc88a70(0x8b)](this[_0xc88a70(0x90)][_0xc88a70(0x9e)]),this[_0xc88a70(0xac)](this[_0xc88a70(0x90)][_0xc88a70(0x71)]),this['writeInt32'](this[_0xc88a70(0x90)][_0xc88a70(0x9d)]),this[_0xc88a70(0xac)](this[_0xc88a70(0x90)]['size']),this[_0xc88a70(0xa2)];},'writeMainHeader':function(){var _0x357955=_0x13a9;this[_0x357955(0x8b)](this[_0x357955(0x85)][_0x357955(0x7e)]),this['writeInt32'](this['mainHeader']['aviBytesCount']),this[_0x357955(0xac)](this['mainHeader']['aviMicroSecPerFrame']),this['writeInt32'](this[_0x357955(0x85)][_0x357955(0xb1)]),this[_0x357955(0xac)](this[_0x357955(0x85)]['aviPaddingGranularity']),this[_0x357955(0xac)](this[_0x357955(0x85)][_0x357955(0x6d)]),this['writeInt32'](this[_0x357955(0x85)][_0x357955(0x9f)]),this[_0x357955(0xac)](0x0),this[_0x357955(0xac)](this[_0x357955(0x85)][_0x357955(0x68)]),this[_0x357955(0xac)](this[_0x357955(0x85)][_0x357955(0x79)]),this[_0x357955(0xac)](this[_0x357955(0x85)][_0x357955(0x98)]),this['writeInt32'](this[_0x357955(0x85)][_0x357955(0x81)]),this['writeInt32'](0x0),this[_0x357955(0xac)](0x0),this['writeInt32'](0x0),this[_0x357955(0xac)](0x0);},'writeStreamHeader':function(){var _0x15243a=_0x13a9;this[_0x15243a(0x8b)](this[_0x15243a(0xb0)][_0x15243a(0x7e)]),this[_0x15243a(0xac)](this['streamHeader']['aviBytesCount']),this[_0x15243a(0x8b)](this[_0x15243a(0xb0)]['aviType']),this[_0x15243a(0x8b)](this[_0x15243a(0xb0)]['aviHandler']),this[_0x15243a(0xac)](this['streamHeader']['aviFlags']),this[_0x15243a(0x80)](0x0),this[_0x15243a(0x80)](0x0),this['writeInt32'](0x0),this[_0x15243a(0xac)](this['streamHeader'][_0x15243a(0x74)]),this[_0x15243a(0xac)](this[_0x15243a(0xb0)]['aviRate']),this[_0x15243a(0xac)](0x0),this[_0x15243a(0xac)](this[_0x15243a(0xb0)][_0x15243a(0x87)]),this[_0x15243a(0xac)](this[_0x15243a(0xb0)][_0x15243a(0x79)]),this[_0x15243a(0xac)](this['streamHeader'][_0x15243a(0x8e)]),this[_0x15243a(0xac)](this[_0x15243a(0xb0)]['aviSampleSize']),this[_0x15243a(0x80)](0x0),this[_0x15243a(0x80)](0x0),this[_0x15243a(0x80)](0x0),this[_0x15243a(0x80)](0x0);},'writeBitmapInfo':function(){var _0x4eaced=_0x13a9;this[_0x4eaced(0x8b)](this[_0x4eaced(0x76)][_0x4eaced(0x91)]),this[_0x4eaced(0xac)](this['streamFormat'][_0x4eaced(0x67)]),this['writeInt32'](this['streamFormat']['Size']),this[_0x4eaced(0xac)](this[_0x4eaced(0x76)][_0x4eaced(0xa8)]),this[_0x4eaced(0xac)](this['streamFormat'][_0x4eaced(0x8f)]),this[_0x4eaced(0x80)](this[_0x4eaced(0x76)][_0x4eaced(0xa9)]),this[_0x4eaced(0x80)](this[_0x4eaced(0x76)][_0x4eaced(0xa1)]),this[_0x4eaced(0x8b)](this[_0x4eaced(0x76)][_0x4eaced(0xae)]),this[_0x4eaced(0xac)](this[_0x4eaced(0x76)]['SizeImage']),this[_0x4eaced(0xac)](0x0),this[_0x4eaced(0xac)](0x0),this[_0x4eaced(0xac)](0x0),this[_0x4eaced(0xac)](0x0);},'writeWaveFormatEx':function(){var _0x2c02c7=_0x13a9;this[_0x2c02c7(0x8b)](this[_0x2c02c7(0x76)][_0x2c02c7(0x91)]),this['writeInt32'](this[_0x2c02c7(0x76)][_0x2c02c7(0x67)]),this[_0x2c02c7(0x80)](this[_0x2c02c7(0x76)][_0x2c02c7(0xa0)]),this[_0x2c02c7(0x80)](this[_0x2c02c7(0x76)]['Channels']),this[_0x2c02c7(0xac)](this[_0x2c02c7(0x76)][_0x2c02c7(0x7c)]),this[_0x2c02c7(0xac)](this[_0x2c02c7(0x76)][_0x2c02c7(0x82)]),this[_0x2c02c7(0x80)](this[_0x2c02c7(0x76)][_0x2c02c7(0x96)]),this[_0x2c02c7(0x80)](this[_0x2c02c7(0x76)]['BitsPerSample']),this['writeInt16'](this[_0x2c02c7(0x76)][_0x2c02c7(0xb4)]),this[_0x2c02c7(0x80)](this[_0x2c02c7(0x76)][_0x2c02c7(0x83)]),this['writeInt16'](0x0),this['writeInt32'](0x0),this[_0x2c02c7(0x80)](0x0),this[_0x2c02c7(0x80)](0x0),this[_0x2c02c7(0x80)](0x0);},'writeAviMainHeader':function(_0x137a1d){var _0x3e5b24=_0x13a9;this[_0x3e5b24(0x72)](new Uint8Array(0x800)),(this[_0x3e5b24(0x8b)](_0x3e5b24(0x86)),this[_0x3e5b24(0xac)](_0x137a1d-0x8),this[_0x3e5b24(0x8b)]('AVI\x20'),this[_0x3e5b24(0x8b)](_0x3e5b24(0x93)),this[_0x3e5b24(0xac)](0x134),this[_0x3e5b24(0x8b)](_0x3e5b24(0xaa)),this[_0x3e5b24(0x8a)](this[_0x3e5b24(0x85)]));},'getVideoHeader':function(){var _0x588794=_0x13a9;return this[_0x588794(0x72)](new Uint8Array(0x7c)),this['writeString']('LIST'),this[_0x588794(0xac)](0x74),this[_0x588794(0x8b)]('strl'),this[_0x588794(0x84)](),this['writeBitmapInfo'](),this[_0x588794(0xa2)];},'getAudioHeader':function(){var _0x1f00cc=_0x13a9;return this[_0x1f00cc(0x72)](new Uint8Array(0x74)),this[_0x1f00cc(0x8b)](_0x1f00cc(0x93)),this[_0x1f00cc(0xac)](0x6c),this[_0x1f00cc(0x8b)](_0x1f00cc(0x7f)),this[_0x1f00cc(0x84)](),this['writeWaveFormatEx'](),this[_0x1f00cc(0xa2)];},'writeJunk':function(_0x34fbe9){var _0x5f35f6=_0x13a9;this[_0x5f35f6(0x8b)](_0x5f35f6(0xad));var _0x143e32=0x800-this[_0x5f35f6(0x77)]-0x4-0xc;this[_0x5f35f6(0xac)](_0x143e32);for(var _0x14c0da=0x0;_0x14c0da<_0x143e32;_0x14c0da++)this[_0x5f35f6(0x99)](0x0);return this[_0x5f35f6(0x8b)](_0x5f35f6(0x93)),this[_0x5f35f6(0xac)](_0x34fbe9),this[_0x5f35f6(0x8b)](_0x5f35f6(0x94)),this[_0x5f35f6(0xa2)];},'writeAviTailHeader':function(_0x56375e){var _0x3cc179=_0x13a9;return this['setBuffer'](new Uint8Array(0x8)),this[_0x3cc179(0x8b)](_0x3cc179(0x69)),this[_0x3cc179(0xac)](_0x56375e),this[_0x3cc179(0xa2)];},'getMainHeader':function(){var _0x9fdbfe=_0x13a9;return this[_0x9fdbfe(0x85)];},'setMainHeader':function(_0x465a53){this['mainHeader']=_0x465a53;},'getIndexEntry':function(){var _0x56e171=_0x13a9;return this[_0x56e171(0x90)];},'setIndexEntry':function(_0x1cd178){this['aviIndexEntry']=_0x1cd178;},'setChunkHeader':function(_0x43a59a){this['chunkHeader']=_0x43a59a;},'getChunkPayloadSize':function(){var _0x1697ee=_0x13a9;return this[_0x1697ee(0x97)][_0x1697ee(0x75)];},'setErrorCode':function(_0x5999e6){var _0x1e9103=_0x13a9;this[_0x1e9103(0xa7)]=_0x5999e6;},'getErrorCode':function(){var _0x30f707=_0x13a9;return this[_0x30f707(0xa7)];},'getTotalFrames':function(){var _0x46b92f=_0x13a9;return this[_0x46b92f(0xb0)][_0x46b92f(0x87)];},'getDuration':function(){var _0x3b422e=_0x13a9,_0x5b3e33=this[_0x3b422e(0xb0)][_0x3b422e(0x9c)]/0x3e8;return this[_0x3b422e(0xb0)][_0x3b422e(0x87)]/_0x5b3e33;},'setResolution':function(_0x45920e,_0x402e57,_0x2bcd7){var _0x19f014=_0x13a9;this['streamHeader'][_0x19f014(0x70)]=this['streamHeader']['width']=_0x45920e,this[_0x19f014(0xb0)][_0x19f014(0x88)]=this[_0x19f014(0xb0)][_0x19f014(0x9b)]=_0x402e57,this['streamHeader'][_0x19f014(0x79)]=Math[_0x19f014(0x6b)](_0x45920e*_0x402e57/0x2),this['streamFormat'][_0x19f014(0xa8)]=_0x45920e,this['streamFormat'][_0x19f014(0x8f)]=_0x402e57,this[_0x19f014(0x76)][_0x19f014(0xb2)]=_0x45920e*_0x402e57*_0x2bcd7;},'getAviSampleSize':function(){var _0x21a5cc=_0x13a9,_0x2c077e=Math[_0x21a5cc(0x6b)]((this['streamFormat'][_0x21a5cc(0x7b)]+0x7)/0x8)*this['streamFormat'][_0x21a5cc(0x8c)];return _0x2c077e=0x0===_0x2c077e?0x1:_0x2c077e;}},new _0x2d5733();}