dedsudiyu 2 月之前
父節點
當前提交
806069ea71
共有 47 個文件被更改,包括 96355 次插入35427 次删除
  1. 0 313
      public/h5player/h5player.min.js
  2. 0 642
      public/h5player/playctrl1/DecodeWorker.js
  3. 0 1
      public/h5player/playctrl1/Decoder.js
  4. 0 642
      public/h5player/playctrl1simd/DecodeWorker.js
  5. 0 1
      public/h5player/playctrl1simd/Decoder.js
  6. 0 21
      public/h5player/playctrl2/Decoder.js
  7. 二進制
      public/h5player/playctrl2/Decoder.wasm
  8. 0 1
      public/h5player/playctrl2/Decoder.worker.js
  9. 0 21
      public/h5player/playctrl3/Decoder.js
  10. 二進制
      public/h5player/playctrl3/Decoder.wasm
  11. 0 1
      public/h5player/playctrl3/Decoder.worker.js
  12. 0 8
      public/h5player/static/css/antd.min.css
  13. 0 587
      public/h5player/static/css/bootstrap-theme.css
  14. 0 1
      public/h5player/static/css/bootstrap-theme.css.map
  15. 0 6
      public/h5player/static/css/bootstrap-theme.min.css
  16. 0 1
      public/h5player/static/css/bootstrap-theme.min.css.map
  17. 0 6834
      public/h5player/static/css/bootstrap.css
  18. 0 1
      public/h5player/static/css/bootstrap.css.map
  19. 0 6
      public/h5player/static/css/bootstrap.min.css
  20. 0 1
      public/h5player/static/css/bootstrap.min.css.map
  21. 二進制
      public/h5player/static/fonts/glyphicons-halflings-regular.eot
  22. 0 288
      public/h5player/static/fonts/glyphicons-halflings-regular.svg
  23. 二進制
      public/h5player/static/fonts/glyphicons-halflings-regular.ttf
  24. 二進制
      public/h5player/static/fonts/glyphicons-halflings-regular.woff
  25. 二進制
      public/h5player/static/fonts/glyphicons-halflings-regular.woff2
  26. 0 3
      public/h5player/static/js/antd-with-locales.min.js
  27. 0 1
      public/h5player/static/js/antd-with-locales.min.js.map
  28. 96355 0
      public/h5player/static/js/antd.js
  29. 0 3
      public/h5player/static/js/antd.min.js
  30. 0 1
      public/h5player/static/js/antd.min.js.map
  31. 0 2580
      public/h5player/static/js/bootstrap.js
  32. 0 6
      public/h5player/static/js/bootstrap.min.js
  33. 0 5
      public/h5player/static/js/jquery-1.12.4.min.js
  34. 0 4601
      public/h5player/static/js/moment.js
  35. 0 13
      public/h5player/static/js/npm.js
  36. 0 10
      public/h5player/static/js/vconsole.min.js
  37. 0 12014
      public/h5player/static/js/vue.js
  38. 0 6
      public/h5player/static/js/vue.min.js
  39. 0 120
      public/h5player/static/js/zh-cn.js
  40. 0 21
      public/h5player/talk/AudioInterCom.js
  41. 二進制
      public/h5player/talk/AudioInterCom.wasm
  42. 0 21
      public/h5player/talkW/AudioInterCom.js
  43. 二進制
      public/h5player/talkW/AudioInterCom.wasm
  44. 0 1
      public/h5player/talkW/AudioInterCom.worker.js
  45. 0 6525
      public/h5player/transform/libSystemTransform.js
  46. 二進制
      public/h5player/transform/libSystemTransform.wasm
  47. 0 120
      public/h5player/transform/systemTransform-worker.js

File diff suppressed because it is too large
+ 0 - 313
public/h5player/h5player.min.js


+ 0 - 642
public/h5player/playctrl1/DecodeWorker.js

@@ -1,642 +0,0 @@
-/**
- * Created by wangweijie5 on 2016/12/5.
- */
-(function (event) {
-    const AUDIO_TYPE = 0;	// 音频
-    const VIDEO_TYPE = 1;   // 视频
-    const PRIVT_TYPE = 2;  // 私有帧
-
-    const PLAYM4_AUDIO_FRAME = 100; // 音频帧
-    const PLAYM4_VIDEO_FRAME = 101; // 视频帧
-
-    const PLAYM4_OK = 1;
-    const PLAYM4_ORDER_ERROR = 2;
-    const PLAYM4_DECODE_ERROR = 44 	// 解码失败
-    const PLAYM4_NOT_KEYFRAME = 48; 	// 非关键帧
-    const PLAYM4_NEED_MORE_DATA = 31;   // 需要更多数据才能解析
-    const PLAYM4_NEED_NEET_LOOP = 35; //丢帧需要下个循环
-    const PLAYM4_SYS_NOT_SUPPORT = 16; 	// 不支持
-
-    importScripts('Decoder.js');
-    Module.addOnPostRun(function () {
-        postMessage({ 'function': "loaded" });
-    });
-
-    var iStreamMode = 0;  // 流模式
-
-    var bOpenMode = false;
-    var bOpenStream = false;
-
-    var funGetFrameData = null;
-    var funGetAudFrameData = null;
-
-    var bWorkerPrintLog = false;//worker层log开关
-
-    var g_nPort = -1;
-    var pInputData = null;
-    var inputBufferSize = 40960;
-
-    self.JSPlayM4_RunTimeInfoCallBack = function (nPort, pstRunTimeInfo, pUser) {
-        let port = nPort;
-        let user = pUser;
-        let nRunTimeModule = Module.HEAP32[pstRunTimeInfo >> 2];
-        let nStrVersion = Module.HEAP32[pstRunTimeInfo + 4 >> 2];
-        let nFrameTimeStamp = Module.HEAP32[pstRunTimeInfo + 8 >> 2];
-        let nFrameNum = Module.HEAP32[pstRunTimeInfo + 12 >> 2];
-        let nErrorCode = Module.HEAP32[pstRunTimeInfo + 16 >> 2];
-        // console.log("nRunTimeModule:"+nRunTimeModule+",nFrameNum:"+nFrameNum+",nErrorCode:"+nErrorCode);
-        postMessage({ 'function': "RunTimeInfoCallBack", 'nRunTimeModule': nRunTimeModule, 'nStrVersion': nStrVersion, 'nFrameTimeStamp': nFrameTimeStamp, 'nFrameNum': nFrameNum, 'nErrorCode': nErrorCode });
-    }
-
-    onmessage = function (event) {
-        var eventData = event.data;
-        var res = 0;
-        switch (eventData.command) {
-            case "printLog":
-                let downloadFlag = eventData.data;
-                if (downloadFlag === true) {
-                    bWorkerPrintLog = true;
-                    res = Module._SetPrintLogFlag(g_nPort, downloadFlag);
-                }
-                else {
-                    bWorkerPrintLog = false;
-                    res = Module._SetPrintLogFlag(g_nPort, downloadFlag);
-                }
-
-                if (res !== PLAYM4_OK) {
-                    console.log("DecodeWorker.js: PlayerSDK print log failed,res" + res);
-                    postMessage({ 'function': "printLog", 'errorCode': res });
-                }
-                break;
-            case "SetPlayPosition":
-                let nFrameNumOrTime = eventData.data;
-                let enPosType = eventData.type;
-                // res = Module._SetPlayPosition(nFrameNumOrTime,enPosType);
-                // if (res !== PLAYM4_OK)
-                // {
-                //     postMessage({'function': "SetPlayPosition", 'errorCode': res});
-                //     return;
-                // }
-                // //有没有buffer需要清除
-
-                break;
-            case "SetStreamOpenMode":
-                //获取端口号
-                g_nPort = Module._GetPort();
-                //设置流打开模式
-                iStreamMode = eventData.data;
-                res = Module._SetStreamOpenMode(g_nPort, iStreamMode);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetStreamOpenMode", 'errorCode': res });
-                    return;
-                }
-                bOpenMode = true;
-                break;
-
-            case "OpenStream":
-                // 接收到的数据
-                var iHeadLen = eventData.dataSize;
-                var pHead = Module._malloc(iHeadLen + 4);
-                if (pHead === null) {
-                    return;
-                }
-                var aHead = Module.HEAPU8.subarray(pHead, pHead + iHeadLen);
-                aHead.set(new Uint8Array(eventData.data));
-                res = Module._OpenStream(g_nPort, pHead, iHeadLen, eventData.bufPoolSize);
-                postMessage({ 'function': "OpenStream", 'errorCode': res });
-                if (res !== PLAYM4_OK) {
-                    //释放内存
-                    Module._free(pHead);
-                    pHead = null;
-                    return;
-                }
-                bOpenStream = true;
-                break;
-            case "Play":
-                let resP = Module._Play(g_nPort);
-                if (resP !== PLAYM4_OK) {
-                    return;
-                }
-                break;
-            case "InputData":
-                // 接收到的数据
-                var iLen = eventData.dataSize;
-                if (iLen > 0) {
-                    if (pInputData == null || iLen > inputBufferSize) {
-                        if (pInputData != null) {
-                            Module._free(pInputData);
-                            pInputData = null;
-                        }
-                        if (iLen > inputBufferSize) {
-                            inputBufferSize = iLen;
-                        }
-
-                        pInputData = Module._malloc(inputBufferSize);
-                        if (pInputData === null) {
-                            return;
-                        }
-                    }
-
-                    var inputData = new Uint8Array(eventData.data);
-                    // var aInputData = Module.HEAPU8.subarray(pInputData, pInputData + iLen);
-                    // aInputData.set(inputData);
-                    Module.writeArrayToMemory(inputData, pInputData);
-                    inputData = null;
-                    res = Module._InputData(g_nPort, pInputData, iLen);
-                    if (res !== PLAYM4_OK) {
-                        let errorCode = Module._GetLastError(g_nPort);
-                        let sourceRemain = Module._GetSourceBufferRemain(g_nPort);
-                        postMessage({ 'function': "InputData", 'errorCode': errorCode, "sourceRemain": sourceRemain });
-                    }
-                    //Module._free(pInputData);
-                    //pInputData = null;
-                } else {
-                    let sourceRemain = Module._GetSourceBufferRemain(g_nPort);
-                    if (sourceRemain == 0) {
-                        postMessage({ 'function': "InputData", 'errorCode': PLAYM4_NEED_MORE_DATA });
-                        return;
-                    }
-                }
-
-                /////////////////////
-                // if (funGetFrameData === null) {
-                //     funGetFrameData = Module.cwrap('GetFrameData', 'number');
-                // }
-
-                while (bOpenMode && bOpenStream) {
-
-                    var ret = getFrameData();
-                    // 直到获取视频帧或数据不足为止
-                    if (PLAYM4_VIDEO_FRAME === ret || PLAYM4_NEED_MORE_DATA === ret || PLAYM4_ORDER_ERROR === ret)//PLAYM4_VIDEO_FRAME === ret ||  || PLAYM4_NEED_NEET_LOOP === ret
-                    {
-                        break;
-                    }
-                }
-                break;
-
-            case "SetSecretKey":
-                var keyLen = eventData.nKeyLen;
-                var pKeyData = Module._malloc(keyLen);
-                if (pKeyData === null) {
-                    return;
-                }
-                var nKeySize = eventData.data.length
-                var bufData = stringToBytes(eventData.data);
-                var aKeyData = Module.HEAPU8.subarray(pKeyData, pKeyData + keyLen);
-                let u8array = new Uint8Array(keyLen);
-                aKeyData.set(u8array, 0);
-                aKeyData.set(new Uint8Array(bufData));
-                aKeyData = null;
-                u8array = null;
-
-                res = Module._SetSecretKey(g_nPort, eventData.nKeyType, pKeyData, keyLen);//, nKeySize
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetSecretKey", 'errorCode': res });
-                    Module._free(pKeyData);
-                    pKeyData = null;
-                    return;
-                }
-
-                Module._free(pKeyData);
-                pKeyData = null;
-                break;
-
-            case "GetBMP":
-                var nBMPWidth = eventData.width;
-                var nBMPHeight = eventData.height;
-                var pYUVData = eventData.data;
-                var nYUVSize = nBMPWidth * nBMPHeight * 3 / 2;
-                var oJpegCropRect = {
-                    left: eventData.left,
-                    top: eventData.top,
-                    right: eventData.right,
-                    bottom: eventData.bottom
-                };
-
-                var pDataYUV = Module._malloc(nYUVSize);
-                if (pDataYUV === null) {
-                    return;
-                }
-
-                Module.writeArrayToMemory(new Uint8Array(pYUVData, 0, nYUVSize), pDataYUV);
-
-                // 分配BMP空间
-                var nBmpSize = nBMPWidth * nBMPHeight * 4 + 60;
-                var pBmpData = Module._malloc(nBmpSize);
-                var pBmpSize = Module._malloc(4);
-                if (pBmpData === null || pBmpSize === null) {
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-
-                    if (pBmpData != null) {
-                        Module._free(pBmpData);
-                        pBmpData = null;
-                    }
-
-                    if (pBmpSize != null) {
-                        Module._free(pBmpSize);
-                        pBmpSize = null;
-                    }
-                    return;
-                }
-
-                //Module._memset(pBmpSize, nBmpSize, 4); // 防止bmp截图出现输入数据过大的错误码
-                Module.setValue(pBmpSize, nBmpSize, "i32");
-                res = Module._GetBMP(g_nPort, pDataYUV, nYUVSize, pBmpData, pBmpSize,
-                    oBMPCropRect.left, oBMPCropRect.top, oBMPCropRect.right, oBMPCropRect.bottom);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "GetBMP", 'errorCode': res });
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-                    Module._free(pBmpData);
-                    pBmpData = null;
-                    Module._free(pBmpSize);
-                    pBmpSize = null;
-                    return;
-                }
-
-                // 获取BMP图片大小
-                var nBmpDataSize = Module.getValue(pBmpSize, "i32");
-
-                // 获取BMP图片数据
-                var aBmpData = new Uint8Array(nBmpDataSize);
-                aBmpData.set(Module.HEAPU8.subarray(pBmpData, pBmpData + nBmpDataSize));
-
-                postMessage({ 'function': "GetBMP", 'data': aBmpData, 'errorCode': res }, [aBmpData.buffer]);
-                aBmpData = null;
-                if (pDataYUV != null) {
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-                }
-                if (pBmpData != null) {
-                    Module._free(pBmpData);
-                    pBmpData = null;
-                }
-                if (pBmpSize != null) {
-                    Module._free(pBmpSize);
-                    pBmpSize = null;
-                }
-                break;
-
-            case "GetJPEG":
-                var nJpegWidth = eventData.width;
-                var nJpegHeight = eventData.height;
-                var pYUVData1 = eventData.data;
-                var nYUVSize1 = nJpegWidth * nJpegHeight * 3 / 2;
-                var oJpegCropRect = {
-                    left: eventData.left,
-                    top: eventData.top,
-                    right: eventData.right,
-                    bottom: eventData.bottom
-                };
-
-                var pDataYUV1 = Module._malloc(nYUVSize1);
-                if (pDataYUV1 === null) {
-                    return;
-                }
-
-                Module.writeArrayToMemory(new Uint8Array(pYUVData1, 0, nYUVSize1), pDataYUV1);
-
-                // 分配JPEG空间
-                var pJpegData = Module._malloc(nYUVSize1);
-                var pJpegSize = Module._malloc(4);
-                if (pJpegData === null || pJpegSize === null) {
-                    if (pJpegData != null) {
-                        Module._free(pJpegData);
-                        pJpegData = null;
-                    }
-
-                    if (pJpegSize != null) {
-                        Module._free(pJpegSize);
-                        pJpegSize = null;
-                    }
-
-                    if (pDataYUV1 != null) {
-                        Module._free(pDataYUV1);
-                        pDataYUV1 = null;
-                    }
-                    return;
-                }
-
-                Module.setValue(pJpegSize, nJpegWidth * nJpegHeight * 2, "i32");    // JPEG抓图,输入缓冲长度不小于当前帧YUV大小
-
-                res = Module._GetJPEG(g_nPort, pDataYUV1, nYUVSize1, pJpegData, pJpegSize,
-                    oJpegCropRect.left, oJpegCropRect.top, oJpegCropRect.right, oJpegCropRect.bottom);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "GetJPEG", 'errorCode': res });
-                    if (pJpegData != null) {
-                        Module._free(pJpegData);
-                        pJpegData = null;
-                    }
-
-                    if (pJpegSize != null) {
-                        Module._free(pJpegSize);
-                        pJpegSize = null;
-                    }
-
-                    if (pDataYUV1 != null) {
-                        Module._free(pDataYUV1);
-                        pDataYUV1 = null;
-                    }
-                    return;
-                }
-
-                // 获取JPEG图片大小
-                var nJpegSize = Module.getValue(pJpegSize, "i32");
-
-                // 获取JPEG图片数据
-                var aJpegData = new Uint8Array(nJpegSize);
-                aJpegData.set(Module.HEAPU8.subarray(pJpegData, pJpegData + nJpegSize));
-
-                postMessage({ 'function': "GetJPEG", 'data': aJpegData, 'errorCode': res }, [aJpegData.buffer]);
-
-                nJpegSize = null;
-                aJpegData = null;
-
-                if (pDataYUV1 != null) {
-                    Module._free(pDataYUV1);
-                    pDataYUV1 = null;
-                }
-                if (pJpegData != null) {
-                    Module._free(pJpegData);
-                    pJpegData = null;
-                }
-                if (pJpegSize != null) {
-                    Module._free(pJpegSize);
-                    pJpegSize = null;
-                }
-                break;
-
-            case "SetDecodeFrameType":
-                var nFrameType = eventData.data;
-                res = Module._SetDecodeFrameType(g_nPort, nFrameType);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetDecodeFrameType", 'errorCode': res });
-                    return;
-                }
-                break;
-            case "CloseStream":
-                //stop
-                let resS = Module._Stop(g_nPort);
-                if (resS !== PLAYM4_OK) {
-                    postMessage({ 'function': "Stop", 'errorCode': res });
-                    return;
-                }
-                //closeStream
-                res = Module._CloseStream(g_nPort);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "CloseStream", 'errorCode': res });
-                    return;
-                }
-                //freePort
-                let resF = Module._FreePort(g_nPort);
-                if (resF !== PLAYM4_OK) {
-                    postMessage({ 'function': "FreePort", 'errorCode': res });
-                    return;
-                }
-                if (pInputData != null) {
-                    Module._free(pInputData);
-                    pInputData = null;
-                }
-                break;
-            case "PlaySound":
-                let resPS = Module._PlaySound(g_nPort);
-                if (resPS !== PLAYM4_OK) {
-                    console.log("PlaySound failed");
-                    return;
-                }
-                break;
-            case "StopSound":
-                let resSS = Module._StopSound();
-                if (resSS !== PLAYM4_OK) {
-                    console.log("StopSound failed");
-                    return;
-                }
-                break;
-            case "SetVolume":
-                let resSV = Module._SetVolume(g_nPort, eventData.volume);
-                if (resSV !== PLAYM4_OK) {
-                    console.log("Audio SetVolume failed");
-                    return;
-                }
-                break;
-            case "GetVolume":
-                let volume = Module._GetVolume();
-                if (volume > 0) {
-                    postMessage({ 'function': "GetVolume", 'volume': volume });
-                }
-                else {
-                    console.log("Audio GetVolume failed");
-                    return;
-                }
-                break;
-            case "OnlyPlaySound":
-                let resOPS = Module._OnlyPlaySound(g_nPort);
-                if (resOPS !== PLAYM4_OK) {
-                    console.log("OnlyPlaySound failed");
-                    return;
-                }
-                break;
-            case "Pause":
-                let resPa = Module._Pause(g_nPort, eventData.bPlay);
-                if (resPa !== PLAYM4_OK) {
-                    console.log("Pause failed");
-                    return;
-                }
-            case "PlayRate":
-                Module._SetPlayRate(g_nPort, eventData.playRate);
-                break;
-            case "SetIFrameDecInterval":
-                Module._SetIFrameDecInterval(g_nPort, eventData.data);
-                break;
-            case "SetLostFrameMode":
-                Module._SetLostFrameMode(g_nPort, eventData.data, 0);
-                break;
-            case "SetDemuxModel":
-                Module._SetDemuxModel(g_nPort, eventData.nIdemuxType, eventData.bTrue);
-                break;
-            case "SkipErrorData":
-                Module._SkipErrorData(g_nPort, eventData.bSkip);
-                break;
-            case "SetDecodeERC":
-                Module._SetDecodeERC(g_nPort, eventData.nLevel);
-                break;
-            case "SetANRParam":
-                Module._SetANRParam(g_nPort, eventData.nEnable, eventData.nANRLevel);
-                break;
-            case "SetResampleValue":
-                Module._SetResampleValue(g_nPort, eventData.nEnable, eventData.resampleValue);
-                break;
-            case "GetLastError":
-                let errorCode = Module._GetLastError(g_nPort);
-                postMessage({ 'function': "GetLastError", 'errorCode': errorCode });
-                break;
-            case "SetGlobalBaseTime":
-                Module._SetGlobalBaseTime(g_nPort, eventData.year, eventData.month, eventData.day, eventData.hour, eventData.min, eventData.sec, eventData.ms);
-                break;
-            case "SetRunTimeInfoCB":
-                Module._SetRunTimeInfoCallBackEx(g_nPort, eventData.nModuleType, 0);
-                break;
-            default:
-                break;
-        }
-    };
-
-    function getOSDTime(oFrameInfo) {
-        var iYear = oFrameInfo.year;
-        var iMonth = oFrameInfo.month;
-        var iDay = oFrameInfo.day;
-        var iHour = oFrameInfo.hour;
-        var iMinute = oFrameInfo.minute;
-        var iSecond = oFrameInfo.second;
-
-        if (iMonth < 10) {
-            iMonth = "0" + iMonth;
-        }
-        if (iDay < 10) {
-            iDay = "0" + iDay;
-        }
-        if (iHour < 10) {
-            iHour = "0" + iHour;
-        }
-        if (iMinute < 10) {
-            iMinute = "0" + iMinute;
-        }
-        if (iSecond < 10) {
-            iSecond = "0" + iSecond;
-        }
-
-        return iYear + "-" + iMonth + "-" + iDay + " " + iHour + ":" + iMinute + ":" + iSecond;
-    }
-    // 获取帧数据
-    function getFrameData() {
-        // function getFrameData() {
-        // 获取帧数据
-        var res = Module._GetFrameData();
-        //var res = fun();
-        if (res === PLAYM4_OK) {
-            var oFrameInfo = Module._GetFrameInfo();
-            switch (oFrameInfo.frameType) {
-                case AUDIO_TYPE:
-                    var iSize = oFrameInfo.frameSize;
-                    if (0 === iSize) {
-                        return -1;
-                    }
-                    var pPCM = Module._GetFrameBuffer();
-                    // var audioBuf = new ArrayBuffer(iSize);
-                    var aPCMData = new Uint8Array(iSize);
-                    aPCMData.set(Module.HEAPU8.subarray(pPCM, pPCM + iSize));
-                    if (bWorkerPrintLog) {
-                        console.log("<<<Worker: audio media Info: nSise:" + oFrameInfo.frameSize + ",nSampleRate:" + oFrameInfo.samplesPerSec + ',channel:' + oFrameInfo.channels + ',bitsPerSample:' + oFrameInfo.bitsPerSample);
-                    }
-                    postMessage({
-                        'function': "GetFrameData", 'type': "audioType", 'data': aPCMData.buffer,
-                        'frameInfo': oFrameInfo, 'errorCode': res
-                    }, [aPCMData.buffer]);
-
-                    oFrameInfo = null;
-                    pPCM = null;
-                    aPCMData = null;
-                    return PLAYM4_AUDIO_FRAME;
-
-                case VIDEO_TYPE:
-                    var szOSDTime = getOSDTime(oFrameInfo);
-
-                    var iWidth = oFrameInfo.width;
-                    var iHeight = oFrameInfo.height;
-
-                    var iYUVSize = iWidth * iHeight * 3 / 2;
-                    if (0 === iYUVSize) {
-                        return -1;
-                    }
-
-                    var pYUV = Module._GetFrameBuffer();
-
-                    // 图像数据渲染后压回,若从主码流切到子码流,存在数组大小与图像大小不匹配现象
-                    var aYUVData = new Uint8Array(iYUVSize);
-                    aYUVData.set(Module.HEAPU8.subarray(pYUV, pYUV + iYUVSize));
-                    if (bWorkerPrintLog) {
-                        console.log("<<<Worker: video media Info: Width:" + oFrameInfo.width + ",Height:" + oFrameInfo.height + ",timeStamp:" + oFrameInfo.timeStamp);
-                    }
-
-                    postMessage({
-                        'function': "GetFrameData", 'type': "videoType", 'data': aYUVData.buffer,
-                        'dataLen': aYUVData.length, 'osd': szOSDTime, 'frameInfo': oFrameInfo, 'errorCode': res
-                    }, [aYUVData.buffer]);
-
-                    oFrameInfo = null;
-                    pYUV = null;
-                    aYUVData = null;
-                    return PLAYM4_VIDEO_FRAME;
-
-                case PRIVT_TYPE:
-                    postMessage({
-                        'function': "GetFrameData", 'type': "", 'data': null,
-                        'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': PLAYM4_SYS_NOT_SUPPORT
-                    });
-                    return PLAYM4_SYS_NOT_SUPPORT;
-
-                default:
-                    postMessage({
-                        'function': "GetFrameData", 'type': "", 'data': null,
-                        'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': PLAYM4_SYS_NOT_SUPPORT
-                    });
-                    return PLAYM4_SYS_NOT_SUPPORT;
-            }
-        }
-        else {
-            let errorCode = Module._GetLastError(g_nPort);
-            //解码失败返回裸数据
-            if (PLAYM4_DECODE_ERROR === errorCode) {
-                var rawInfo = Module._GetRawDataInfo();
-                var pRawData = Module._GetRawDataBuffer();
-                var aRawData = new Uint8Array(rawInfo.isize);
-                aRawData.set(Module.HEAPU8.subarray(pRawData, pRawData + rawInfo.isize));
-                postMessage({
-                    'function': "GetRawData", 'type': "", 'data': aRawData.buffer,
-                    'rawDataLen': rawInfo.isize, 'osd': 0, 'frameInfo': null, 'errorCode': errorCode
-                });
-                rawInfo = null;
-                pRawData = null;
-                aRawData = null;
-            }
-            //需要更多数据
-            if (PLAYM4_NEED_MORE_DATA === errorCode || PLAYM4_SYS_NOT_SUPPORT === errorCode || PLAYM4_NEED_NEET_LOOP === errorCode) {
-                postMessage({
-                    'function': "GetFrameData", 'type': "", 'data': null,
-                    'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': errorCode
-                });
-            }
-            return errorCode;
-        }
-    }
-
-    // 开始计算时间
-    function startTime() {
-        return new Date().getTime();
-    }
-
-    // 结束计算时间
-    function endTime() {
-        return new Date().getTime();
-    }
-
-    // 字母字符串转byte数组
-    function stringToBytes(str) {
-        var ch, st, re = [];
-        for (var i = 0; i < str.length; i++) {
-            ch = str.charCodeAt(i);  // get char
-            st = [];                 // set up "stack"
-            do {
-                st.push(ch & 0xFF);  // push byte to stack
-                ch = ch >> 8;          // shift value down by 1 byte
-            }
-            while (ch);
-            // add stack contents to result
-            // done because chars have "wrong" endianness
-            re = re.concat(st.reverse());
-        }
-        // return an array of bytes
-        return re;
-    }
-})();

File diff suppressed because it is too large
+ 0 - 1
public/h5player/playctrl1/Decoder.js


+ 0 - 642
public/h5player/playctrl1simd/DecodeWorker.js

@@ -1,642 +0,0 @@
-/**
- * Created by wangweijie5 on 2016/12/5.
- */
-(function (event) {
-    const AUDIO_TYPE = 0;	// 音频
-    const VIDEO_TYPE = 1;   // 视频
-    const PRIVT_TYPE = 2;  // 私有帧
-
-    const PLAYM4_AUDIO_FRAME = 100; // 音频帧
-    const PLAYM4_VIDEO_FRAME = 101; // 视频帧
-
-    const PLAYM4_OK = 1;
-    const PLAYM4_ORDER_ERROR = 2;
-    const PLAYM4_DECODE_ERROR = 44 	// 解码失败
-    const PLAYM4_NOT_KEYFRAME = 48; 	// 非关键帧
-    const PLAYM4_NEED_MORE_DATA = 31;   // 需要更多数据才能解析
-    const PLAYM4_NEED_NEET_LOOP = 35; //丢帧需要下个循环
-    const PLAYM4_SYS_NOT_SUPPORT = 16; 	// 不支持
-
-    importScripts('Decoder.js');
-    Module.addOnPostRun(function () {
-        postMessage({ 'function': "loaded" });
-    });
-
-    var iStreamMode = 0;  // 流模式
-
-    var bOpenMode = false;
-    var bOpenStream = false;
-
-    var funGetFrameData = null;
-    var funGetAudFrameData = null;
-
-    var bWorkerPrintLog = false;//worker层log开关
-
-    var g_nPort = -1;
-    var pInputData = null;
-    var inputBufferSize = 40960;
-
-    self.JSPlayM4_RunTimeInfoCallBack = function (nPort, pstRunTimeInfo, pUser) {
-        let port = nPort;
-        let user = pUser;
-        let nRunTimeModule = Module.HEAP32[pstRunTimeInfo >> 2];
-        let nStrVersion = Module.HEAP32[pstRunTimeInfo + 4 >> 2];
-        let nFrameTimeStamp = Module.HEAP32[pstRunTimeInfo + 8 >> 2];
-        let nFrameNum = Module.HEAP32[pstRunTimeInfo + 12 >> 2];
-        let nErrorCode = Module.HEAP32[pstRunTimeInfo + 16 >> 2];
-        // console.log("nRunTimeModule:"+nRunTimeModule+",nFrameNum:"+nFrameNum+",nErrorCode:"+nErrorCode);
-        postMessage({ 'function': "RunTimeInfoCallBack", 'nRunTimeModule': nRunTimeModule, 'nStrVersion': nStrVersion, 'nFrameTimeStamp': nFrameTimeStamp, 'nFrameNum': nFrameNum, 'nErrorCode': nErrorCode });
-    }
-
-    onmessage = function (event) {
-        var eventData = event.data;
-        var res = 0;
-        switch (eventData.command) {
-            case "printLog":
-                let downloadFlag = eventData.data;
-                if (downloadFlag === true) {
-                    bWorkerPrintLog = true;
-                    res = Module._SetPrintLogFlag(g_nPort, downloadFlag);
-                }
-                else {
-                    bWorkerPrintLog = false;
-                    res = Module._SetPrintLogFlag(g_nPort, downloadFlag);
-                }
-
-                if (res !== PLAYM4_OK) {
-                    console.log("DecodeWorker.js: PlayerSDK print log failed,res" + res);
-                    postMessage({ 'function': "printLog", 'errorCode': res });
-                }
-                break;
-            case "SetPlayPosition":
-                let nFrameNumOrTime = eventData.data;
-                let enPosType = eventData.type;
-                // res = Module._SetPlayPosition(nFrameNumOrTime,enPosType);
-                // if (res !== PLAYM4_OK)
-                // {
-                //     postMessage({'function': "SetPlayPosition", 'errorCode': res});
-                //     return;
-                // }
-                // //有没有buffer需要清除
-
-                break;
-            case "SetStreamOpenMode":
-                //获取端口号
-                g_nPort = Module._GetPort();
-                //设置流打开模式
-                iStreamMode = eventData.data;
-                res = Module._SetStreamOpenMode(g_nPort, iStreamMode);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetStreamOpenMode", 'errorCode': res });
-                    return;
-                }
-                bOpenMode = true;
-                break;
-
-            case "OpenStream":
-                // 接收到的数据
-                var iHeadLen = eventData.dataSize;
-                var pHead = Module._malloc(iHeadLen + 4);
-                if (pHead === null) {
-                    return;
-                }
-                var aHead = Module.HEAPU8.subarray(pHead, pHead + iHeadLen);
-                aHead.set(new Uint8Array(eventData.data));
-                res = Module._OpenStream(g_nPort, pHead, iHeadLen, eventData.bufPoolSize);
-                postMessage({ 'function': "OpenStream", 'errorCode': res });
-                if (res !== PLAYM4_OK) {
-                    //释放内存
-                    Module._free(pHead);
-                    pHead = null;
-                    return;
-                }
-                bOpenStream = true;
-                break;
-            case "Play":
-                let resP = Module._Play(g_nPort);
-                if (resP !== PLAYM4_OK) {
-                    return;
-                }
-                break;
-            case "InputData":
-                // 接收到的数据
-                var iLen = eventData.dataSize;
-                if (iLen > 0) {
-                    if (pInputData == null || iLen > inputBufferSize) {
-                        if (pInputData != null) {
-                            Module._free(pInputData);
-                            pInputData = null;
-                        }
-                        if (iLen > inputBufferSize) {
-                            inputBufferSize = iLen;
-                        }
-
-                        pInputData = Module._malloc(inputBufferSize);
-                        if (pInputData === null) {
-                            return;
-                        }
-                    }
-
-                    var inputData = new Uint8Array(eventData.data);
-                    // var aInputData = Module.HEAPU8.subarray(pInputData, pInputData + iLen);
-                    // aInputData.set(inputData);
-                    Module.writeArrayToMemory(inputData, pInputData);
-                    inputData = null;
-                    res = Module._InputData(g_nPort, pInputData, iLen);
-                    if (res !== PLAYM4_OK) {
-                        let errorCode = Module._GetLastError(g_nPort);
-                        let sourceRemain = Module._GetSourceBufferRemain(g_nPort);
-                        postMessage({ 'function': "InputData", 'errorCode': errorCode, "sourceRemain": sourceRemain });
-                    }
-                    //Module._free(pInputData);
-                    //pInputData = null;
-                } else {
-                    let sourceRemain = Module._GetSourceBufferRemain(g_nPort);
-                    if (sourceRemain == 0) {
-                        postMessage({ 'function': "InputData", 'errorCode': PLAYM4_NEED_MORE_DATA });
-                        return;
-                    }
-                }
-
-                /////////////////////
-                // if (funGetFrameData === null) {
-                //     funGetFrameData = Module.cwrap('GetFrameData', 'number');
-                // }
-
-                while (bOpenMode && bOpenStream) {
-
-                    var ret = getFrameData();
-                    // 直到获取视频帧或数据不足为止
-                    if (PLAYM4_VIDEO_FRAME === ret || PLAYM4_NEED_MORE_DATA === ret || PLAYM4_ORDER_ERROR === ret)//PLAYM4_VIDEO_FRAME === ret ||  || PLAYM4_NEED_NEET_LOOP === ret
-                    {
-                        break;
-                    }
-                }
-                break;
-
-            case "SetSecretKey":
-                var keyLen = eventData.nKeyLen;
-                var pKeyData = Module._malloc(keyLen);
-                if (pKeyData === null) {
-                    return;
-                }
-                var nKeySize = eventData.data.length
-                var bufData = stringToBytes(eventData.data);
-                var aKeyData = Module.HEAPU8.subarray(pKeyData, pKeyData + keyLen);
-                let u8array = new Uint8Array(keyLen);
-                aKeyData.set(u8array, 0);
-                aKeyData.set(new Uint8Array(bufData));
-                aKeyData = null;
-                u8array = null;
-
-                res = Module._SetSecretKey(g_nPort, eventData.nKeyType, pKeyData, keyLen);//, nKeySize
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetSecretKey", 'errorCode': res });
-                    Module._free(pKeyData);
-                    pKeyData = null;
-                    return;
-                }
-
-                Module._free(pKeyData);
-                pKeyData = null;
-                break;
-
-            case "GetBMP":
-                var nBMPWidth = eventData.width;
-                var nBMPHeight = eventData.height;
-                var pYUVData = eventData.data;
-                var nYUVSize = nBMPWidth * nBMPHeight * 3 / 2;
-                var oJpegCropRect = {
-                    left: eventData.left,
-                    top: eventData.top,
-                    right: eventData.right,
-                    bottom: eventData.bottom
-                };
-
-                var pDataYUV = Module._malloc(nYUVSize);
-                if (pDataYUV === null) {
-                    return;
-                }
-
-                Module.writeArrayToMemory(new Uint8Array(pYUVData, 0, nYUVSize), pDataYUV);
-
-                // 分配BMP空间
-                var nBmpSize = nBMPWidth * nBMPHeight * 4 + 60;
-                var pBmpData = Module._malloc(nBmpSize);
-                var pBmpSize = Module._malloc(4);
-                if (pBmpData === null || pBmpSize === null) {
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-
-                    if (pBmpData != null) {
-                        Module._free(pBmpData);
-                        pBmpData = null;
-                    }
-
-                    if (pBmpSize != null) {
-                        Module._free(pBmpSize);
-                        pBmpSize = null;
-                    }
-                    return;
-                }
-
-                //Module._memset(pBmpSize, nBmpSize, 4); // 防止bmp截图出现输入数据过大的错误码
-                Module.setValue(pBmpSize, nBmpSize, "i32");
-                res = Module._GetBMP(g_nPort, pDataYUV, nYUVSize, pBmpData, pBmpSize,
-                    oBMPCropRect.left, oBMPCropRect.top, oBMPCropRect.right, oBMPCropRect.bottom);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "GetBMP", 'errorCode': res });
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-                    Module._free(pBmpData);
-                    pBmpData = null;
-                    Module._free(pBmpSize);
-                    pBmpSize = null;
-                    return;
-                }
-
-                // 获取BMP图片大小
-                var nBmpDataSize = Module.getValue(pBmpSize, "i32");
-
-                // 获取BMP图片数据
-                var aBmpData = new Uint8Array(nBmpDataSize);
-                aBmpData.set(Module.HEAPU8.subarray(pBmpData, pBmpData + nBmpDataSize));
-
-                postMessage({ 'function': "GetBMP", 'data': aBmpData, 'errorCode': res }, [aBmpData.buffer]);
-                aBmpData = null;
-                if (pDataYUV != null) {
-                    Module._free(pDataYUV);
-                    pDataYUV = null;
-                }
-                if (pBmpData != null) {
-                    Module._free(pBmpData);
-                    pBmpData = null;
-                }
-                if (pBmpSize != null) {
-                    Module._free(pBmpSize);
-                    pBmpSize = null;
-                }
-                break;
-
-            case "GetJPEG":
-                var nJpegWidth = eventData.width;
-                var nJpegHeight = eventData.height;
-                var pYUVData1 = eventData.data;
-                var nYUVSize1 = nJpegWidth * nJpegHeight * 3 / 2;
-                var oJpegCropRect = {
-                    left: eventData.left,
-                    top: eventData.top,
-                    right: eventData.right,
-                    bottom: eventData.bottom
-                };
-
-                var pDataYUV1 = Module._malloc(nYUVSize1);
-                if (pDataYUV1 === null) {
-                    return;
-                }
-
-                Module.writeArrayToMemory(new Uint8Array(pYUVData1, 0, nYUVSize1), pDataYUV1);
-
-                // 分配JPEG空间
-                var pJpegData = Module._malloc(nYUVSize1);
-                var pJpegSize = Module._malloc(4);
-                if (pJpegData === null || pJpegSize === null) {
-                    if (pJpegData != null) {
-                        Module._free(pJpegData);
-                        pJpegData = null;
-                    }
-
-                    if (pJpegSize != null) {
-                        Module._free(pJpegSize);
-                        pJpegSize = null;
-                    }
-
-                    if (pDataYUV1 != null) {
-                        Module._free(pDataYUV1);
-                        pDataYUV1 = null;
-                    }
-                    return;
-                }
-
-                Module.setValue(pJpegSize, nJpegWidth * nJpegHeight * 2, "i32");    // JPEG抓图,输入缓冲长度不小于当前帧YUV大小
-
-                res = Module._GetJPEG(g_nPort, pDataYUV1, nYUVSize1, pJpegData, pJpegSize,
-                    oJpegCropRect.left, oJpegCropRect.top, oJpegCropRect.right, oJpegCropRect.bottom);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "GetJPEG", 'errorCode': res });
-                    if (pJpegData != null) {
-                        Module._free(pJpegData);
-                        pJpegData = null;
-                    }
-
-                    if (pJpegSize != null) {
-                        Module._free(pJpegSize);
-                        pJpegSize = null;
-                    }
-
-                    if (pDataYUV1 != null) {
-                        Module._free(pDataYUV1);
-                        pDataYUV1 = null;
-                    }
-                    return;
-                }
-
-                // 获取JPEG图片大小
-                var nJpegSize = Module.getValue(pJpegSize, "i32");
-
-                // 获取JPEG图片数据
-                var aJpegData = new Uint8Array(nJpegSize);
-                aJpegData.set(Module.HEAPU8.subarray(pJpegData, pJpegData + nJpegSize));
-
-                postMessage({ 'function': "GetJPEG", 'data': aJpegData, 'errorCode': res }, [aJpegData.buffer]);
-
-                nJpegSize = null;
-                aJpegData = null;
-
-                if (pDataYUV1 != null) {
-                    Module._free(pDataYUV1);
-                    pDataYUV1 = null;
-                }
-                if (pJpegData != null) {
-                    Module._free(pJpegData);
-                    pJpegData = null;
-                }
-                if (pJpegSize != null) {
-                    Module._free(pJpegSize);
-                    pJpegSize = null;
-                }
-                break;
-
-            case "SetDecodeFrameType":
-                var nFrameType = eventData.data;
-                res = Module._SetDecodeFrameType(g_nPort, nFrameType);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "SetDecodeFrameType", 'errorCode': res });
-                    return;
-                }
-                break;
-            case "CloseStream":
-                //stop
-                let resS = Module._Stop(g_nPort);
-                if (resS !== PLAYM4_OK) {
-                    postMessage({ 'function': "Stop", 'errorCode': res });
-                    return;
-                }
-                //closeStream
-                res = Module._CloseStream(g_nPort);
-                if (res !== PLAYM4_OK) {
-                    postMessage({ 'function': "CloseStream", 'errorCode': res });
-                    return;
-                }
-                //freePort
-                let resF = Module._FreePort(g_nPort);
-                if (resF !== PLAYM4_OK) {
-                    postMessage({ 'function': "FreePort", 'errorCode': res });
-                    return;
-                }
-                if (pInputData != null) {
-                    Module._free(pInputData);
-                    pInputData = null;
-                }
-                break;
-            case "PlaySound":
-                let resPS = Module._PlaySound(g_nPort);
-                if (resPS !== PLAYM4_OK) {
-                    console.log("PlaySound failed");
-                    return;
-                }
-                break;
-            case "StopSound":
-                let resSS = Module._StopSound();
-                if (resSS !== PLAYM4_OK) {
-                    console.log("StopSound failed");
-                    return;
-                }
-                break;
-            case "SetVolume":
-                let resSV = Module._SetVolume(g_nPort, eventData.volume);
-                if (resSV !== PLAYM4_OK) {
-                    console.log("Audio SetVolume failed");
-                    return;
-                }
-                break;
-            case "GetVolume":
-                let volume = Module._GetVolume();
-                if (volume > 0) {
-                    postMessage({ 'function': "GetVolume", 'volume': volume });
-                }
-                else {
-                    console.log("Audio GetVolume failed");
-                    return;
-                }
-                break;
-            case "OnlyPlaySound":
-                let resOPS = Module._OnlyPlaySound(g_nPort);
-                if (resOPS !== PLAYM4_OK) {
-                    console.log("OnlyPlaySound failed");
-                    return;
-                }
-                break;
-            case "Pause":
-                let resPa = Module._Pause(g_nPort, eventData.bPlay);
-                if (resPa !== PLAYM4_OK) {
-                    console.log("Pause failed");
-                    return;
-                }
-            case "PlayRate":
-                Module._SetPlayRate(g_nPort, eventData.playRate);
-                break;
-            case "SetIFrameDecInterval":
-                Module._SetIFrameDecInterval(g_nPort, eventData.data);
-                break;
-            case "SetLostFrameMode":
-                Module._SetLostFrameMode(g_nPort, eventData.data, 0);
-                break;
-            case "SetDemuxModel":
-                Module._SetDemuxModel(g_nPort, eventData.nIdemuxType, eventData.bTrue);
-                break;
-            case "SkipErrorData":
-                Module._SkipErrorData(g_nPort, eventData.bSkip);
-                break;
-            case "SetDecodeERC":
-                Module._SetDecodeERC(g_nPort, eventData.nLevel);
-                break;
-            case "SetANRParam":
-                Module._SetANRParam(g_nPort, eventData.nEnable, eventData.nANRLevel);
-                break;
-            case "SetResampleValue":
-                Module._SetResampleValue(g_nPort, eventData.nEnable, eventData.resampleValue);
-                break;
-            case "GetLastError":
-                let errorCode = Module._GetLastError(g_nPort);
-                postMessage({ 'function': "GetLastError", 'errorCode': errorCode });
-                break;
-            case "SetGlobalBaseTime":
-                Module._SetGlobalBaseTime(g_nPort, eventData.year, eventData.month, eventData.day, eventData.hour, eventData.min, eventData.sec, eventData.ms);
-                break;
-            case "SetRunTimeInfoCB":
-                Module._SetRunTimeInfoCallBackEx(g_nPort, eventData.nModuleType, 0);
-                break;
-            default:
-                break;
-        }
-    };
-
-    function getOSDTime(oFrameInfo) {
-        var iYear = oFrameInfo.year;
-        var iMonth = oFrameInfo.month;
-        var iDay = oFrameInfo.day;
-        var iHour = oFrameInfo.hour;
-        var iMinute = oFrameInfo.minute;
-        var iSecond = oFrameInfo.second;
-
-        if (iMonth < 10) {
-            iMonth = "0" + iMonth;
-        }
-        if (iDay < 10) {
-            iDay = "0" + iDay;
-        }
-        if (iHour < 10) {
-            iHour = "0" + iHour;
-        }
-        if (iMinute < 10) {
-            iMinute = "0" + iMinute;
-        }
-        if (iSecond < 10) {
-            iSecond = "0" + iSecond;
-        }
-
-        return iYear + "-" + iMonth + "-" + iDay + " " + iHour + ":" + iMinute + ":" + iSecond;
-    }
-    // 获取帧数据
-    function getFrameData() {
-        // function getFrameData() {
-        // 获取帧数据
-        var res = Module._GetFrameData();
-        //var res = fun();
-        if (res === PLAYM4_OK) {
-            var oFrameInfo = Module._GetFrameInfo();
-            switch (oFrameInfo.frameType) {
-                case AUDIO_TYPE:
-                    var iSize = oFrameInfo.frameSize;
-                    if (0 === iSize) {
-                        return -1;
-                    }
-                    var pPCM = Module._GetFrameBuffer();
-                    // var audioBuf = new ArrayBuffer(iSize);
-                    var aPCMData = new Uint8Array(iSize);
-                    aPCMData.set(Module.HEAPU8.subarray(pPCM, pPCM + iSize));
-                    if (bWorkerPrintLog) {
-                        console.log("<<<Worker: audio media Info: nSise:" + oFrameInfo.frameSize + ",nSampleRate:" + oFrameInfo.samplesPerSec + ',channel:' + oFrameInfo.channels + ',bitsPerSample:' + oFrameInfo.bitsPerSample);
-                    }
-                    postMessage({
-                        'function': "GetFrameData", 'type': "audioType", 'data': aPCMData.buffer,
-                        'frameInfo': oFrameInfo, 'errorCode': res
-                    }, [aPCMData.buffer]);
-
-                    oFrameInfo = null;
-                    pPCM = null;
-                    aPCMData = null;
-                    return PLAYM4_AUDIO_FRAME;
-
-                case VIDEO_TYPE:
-                    var szOSDTime = getOSDTime(oFrameInfo);
-
-                    var iWidth = oFrameInfo.width;
-                    var iHeight = oFrameInfo.height;
-
-                    var iYUVSize = iWidth * iHeight * 3 / 2;
-                    if (0 === iYUVSize) {
-                        return -1;
-                    }
-
-                    var pYUV = Module._GetFrameBuffer();
-
-                    // 图像数据渲染后压回,若从主码流切到子码流,存在数组大小与图像大小不匹配现象
-                    var aYUVData = new Uint8Array(iYUVSize);
-                    aYUVData.set(Module.HEAPU8.subarray(pYUV, pYUV + iYUVSize));
-                    if (bWorkerPrintLog) {
-                        console.log("<<<Worker: video media Info: Width:" + oFrameInfo.width + ",Height:" + oFrameInfo.height + ",timeStamp:" + oFrameInfo.timeStamp);
-                    }
-
-                    postMessage({
-                        'function': "GetFrameData", 'type': "videoType", 'data': aYUVData.buffer,
-                        'dataLen': aYUVData.length, 'osd': szOSDTime, 'frameInfo': oFrameInfo, 'errorCode': res
-                    }, [aYUVData.buffer]);
-
-                    oFrameInfo = null;
-                    pYUV = null;
-                    aYUVData = null;
-                    return PLAYM4_VIDEO_FRAME;
-
-                case PRIVT_TYPE:
-                    postMessage({
-                        'function': "GetFrameData", 'type': "", 'data': null,
-                        'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': PLAYM4_SYS_NOT_SUPPORT
-                    });
-                    return PLAYM4_SYS_NOT_SUPPORT;
-
-                default:
-                    postMessage({
-                        'function': "GetFrameData", 'type': "", 'data': null,
-                        'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': PLAYM4_SYS_NOT_SUPPORT
-                    });
-                    return PLAYM4_SYS_NOT_SUPPORT;
-            }
-        }
-        else {
-            let errorCode = Module._GetLastError(g_nPort);
-            //解码失败返回裸数据
-            if (PLAYM4_DECODE_ERROR === errorCode) {
-                var rawInfo = Module._GetRawDataInfo();
-                var pRawData = Module._GetRawDataBuffer();
-                var aRawData = new Uint8Array(rawInfo.isize);
-                aRawData.set(Module.HEAPU8.subarray(pRawData, pRawData + rawInfo.isize));
-                postMessage({
-                    'function': "GetRawData", 'type': "", 'data': aRawData.buffer,
-                    'rawDataLen': rawInfo.isize, 'osd': 0, 'frameInfo': null, 'errorCode': errorCode
-                });
-                rawInfo = null;
-                pRawData = null;
-                aRawData = null;
-            }
-            //需要更多数据
-            if (PLAYM4_NEED_MORE_DATA === errorCode || PLAYM4_SYS_NOT_SUPPORT === errorCode || PLAYM4_NEED_NEET_LOOP === errorCode) {
-                postMessage({
-                    'function': "GetFrameData", 'type': "", 'data': null,
-                    'dataLen': -1, 'osd': 0, 'frameInfo': null, 'errorCode': errorCode
-                });
-            }
-            return errorCode;
-        }
-    }
-
-    // 开始计算时间
-    function startTime() {
-        return new Date().getTime();
-    }
-
-    // 结束计算时间
-    function endTime() {
-        return new Date().getTime();
-    }
-
-    // 字母字符串转byte数组
-    function stringToBytes(str) {
-        var ch, st, re = [];
-        for (var i = 0; i < str.length; i++) {
-            ch = str.charCodeAt(i);  // get char
-            st = [];                 // set up "stack"
-            do {
-                st.push(ch & 0xFF);  // push byte to stack
-                ch = ch >> 8;          // shift value down by 1 byte
-            }
-            while (ch);
-            // add stack contents to result
-            // done because chars have "wrong" endianness
-            re = re.concat(st.reverse());
-        }
-        // return an array of bytes
-        return re;
-    }
-})();

File diff suppressed because it is too large
+ 0 - 1
public/h5player/playctrl1simd/Decoder.js


File diff suppressed because it is too large
+ 0 - 21
public/h5player/playctrl2/Decoder.js


二進制
public/h5player/playctrl2/Decoder.wasm


File diff suppressed because it is too large
+ 0 - 1
public/h5player/playctrl2/Decoder.worker.js


File diff suppressed because it is too large
+ 0 - 21
public/h5player/playctrl3/Decoder.js


二進制
public/h5player/playctrl3/Decoder.wasm


File diff suppressed because it is too large
+ 0 - 1
public/h5player/playctrl3/Decoder.worker.js


File diff suppressed because it is too large
+ 0 - 8
public/h5player/static/css/antd.min.css


+ 0 - 587
public/h5player/static/css/bootstrap-theme.css

@@ -1,587 +0,0 @@
-/*!
- * Bootstrap v3.4.1 (https://getbootstrap.com/)
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */
-.btn-default,
-.btn-primary,
-.btn-success,
-.btn-info,
-.btn-warning,
-.btn-danger {
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
-  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
-  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
-}
-.btn-default:active,
-.btn-primary:active,
-.btn-success:active,
-.btn-info:active,
-.btn-warning:active,
-.btn-danger:active,
-.btn-default.active,
-.btn-primary.active,
-.btn-success.active,
-.btn-info.active,
-.btn-warning.active,
-.btn-danger.active {
-  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
-  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
-}
-.btn-default.disabled,
-.btn-primary.disabled,
-.btn-success.disabled,
-.btn-info.disabled,
-.btn-warning.disabled,
-.btn-danger.disabled,
-.btn-default[disabled],
-.btn-primary[disabled],
-.btn-success[disabled],
-.btn-info[disabled],
-.btn-warning[disabled],
-.btn-danger[disabled],
-fieldset[disabled] .btn-default,
-fieldset[disabled] .btn-primary,
-fieldset[disabled] .btn-success,
-fieldset[disabled] .btn-info,
-fieldset[disabled] .btn-warning,
-fieldset[disabled] .btn-danger {
-  -webkit-box-shadow: none;
-  box-shadow: none;
-}
-.btn-default .badge,
-.btn-primary .badge,
-.btn-success .badge,
-.btn-info .badge,
-.btn-warning .badge,
-.btn-danger .badge {
-  text-shadow: none;
-}
-.btn:active,
-.btn.active {
-  background-image: none;
-}
-.btn-default {
-  background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
-  background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
-  background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #dbdbdb;
-  text-shadow: 0 1px 0 #fff;
-  border-color: #ccc;
-}
-.btn-default:hover,
-.btn-default:focus {
-  background-color: #e0e0e0;
-  background-position: 0 -15px;
-}
-.btn-default:active,
-.btn-default.active {
-  background-color: #e0e0e0;
-  border-color: #dbdbdb;
-}
-.btn-default.disabled,
-.btn-default[disabled],
-fieldset[disabled] .btn-default,
-.btn-default.disabled:hover,
-.btn-default[disabled]:hover,
-fieldset[disabled] .btn-default:hover,
-.btn-default.disabled:focus,
-.btn-default[disabled]:focus,
-fieldset[disabled] .btn-default:focus,
-.btn-default.disabled.focus,
-.btn-default[disabled].focus,
-fieldset[disabled] .btn-default.focus,
-.btn-default.disabled:active,
-.btn-default[disabled]:active,
-fieldset[disabled] .btn-default:active,
-.btn-default.disabled.active,
-.btn-default[disabled].active,
-fieldset[disabled] .btn-default.active {
-  background-color: #e0e0e0;
-  background-image: none;
-}
-.btn-primary {
-  background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
-  background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
-  background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #245580;
-}
-.btn-primary:hover,
-.btn-primary:focus {
-  background-color: #265a88;
-  background-position: 0 -15px;
-}
-.btn-primary:active,
-.btn-primary.active {
-  background-color: #265a88;
-  border-color: #245580;
-}
-.btn-primary.disabled,
-.btn-primary[disabled],
-fieldset[disabled] .btn-primary,
-.btn-primary.disabled:hover,
-.btn-primary[disabled]:hover,
-fieldset[disabled] .btn-primary:hover,
-.btn-primary.disabled:focus,
-.btn-primary[disabled]:focus,
-fieldset[disabled] .btn-primary:focus,
-.btn-primary.disabled.focus,
-.btn-primary[disabled].focus,
-fieldset[disabled] .btn-primary.focus,
-.btn-primary.disabled:active,
-.btn-primary[disabled]:active,
-fieldset[disabled] .btn-primary:active,
-.btn-primary.disabled.active,
-.btn-primary[disabled].active,
-fieldset[disabled] .btn-primary.active {
-  background-color: #265a88;
-  background-image: none;
-}
-.btn-success {
-  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
-  background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
-  background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #3e8f3e;
-}
-.btn-success:hover,
-.btn-success:focus {
-  background-color: #419641;
-  background-position: 0 -15px;
-}
-.btn-success:active,
-.btn-success.active {
-  background-color: #419641;
-  border-color: #3e8f3e;
-}
-.btn-success.disabled,
-.btn-success[disabled],
-fieldset[disabled] .btn-success,
-.btn-success.disabled:hover,
-.btn-success[disabled]:hover,
-fieldset[disabled] .btn-success:hover,
-.btn-success.disabled:focus,
-.btn-success[disabled]:focus,
-fieldset[disabled] .btn-success:focus,
-.btn-success.disabled.focus,
-.btn-success[disabled].focus,
-fieldset[disabled] .btn-success.focus,
-.btn-success.disabled:active,
-.btn-success[disabled]:active,
-fieldset[disabled] .btn-success:active,
-.btn-success.disabled.active,
-.btn-success[disabled].active,
-fieldset[disabled] .btn-success.active {
-  background-color: #419641;
-  background-image: none;
-}
-.btn-info {
-  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
-  background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
-  background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #28a4c9;
-}
-.btn-info:hover,
-.btn-info:focus {
-  background-color: #2aabd2;
-  background-position: 0 -15px;
-}
-.btn-info:active,
-.btn-info.active {
-  background-color: #2aabd2;
-  border-color: #28a4c9;
-}
-.btn-info.disabled,
-.btn-info[disabled],
-fieldset[disabled] .btn-info,
-.btn-info.disabled:hover,
-.btn-info[disabled]:hover,
-fieldset[disabled] .btn-info:hover,
-.btn-info.disabled:focus,
-.btn-info[disabled]:focus,
-fieldset[disabled] .btn-info:focus,
-.btn-info.disabled.focus,
-.btn-info[disabled].focus,
-fieldset[disabled] .btn-info.focus,
-.btn-info.disabled:active,
-.btn-info[disabled]:active,
-fieldset[disabled] .btn-info:active,
-.btn-info.disabled.active,
-.btn-info[disabled].active,
-fieldset[disabled] .btn-info.active {
-  background-color: #2aabd2;
-  background-image: none;
-}
-.btn-warning {
-  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
-  background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
-  background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #e38d13;
-}
-.btn-warning:hover,
-.btn-warning:focus {
-  background-color: #eb9316;
-  background-position: 0 -15px;
-}
-.btn-warning:active,
-.btn-warning.active {
-  background-color: #eb9316;
-  border-color: #e38d13;
-}
-.btn-warning.disabled,
-.btn-warning[disabled],
-fieldset[disabled] .btn-warning,
-.btn-warning.disabled:hover,
-.btn-warning[disabled]:hover,
-fieldset[disabled] .btn-warning:hover,
-.btn-warning.disabled:focus,
-.btn-warning[disabled]:focus,
-fieldset[disabled] .btn-warning:focus,
-.btn-warning.disabled.focus,
-.btn-warning[disabled].focus,
-fieldset[disabled] .btn-warning.focus,
-.btn-warning.disabled:active,
-.btn-warning[disabled]:active,
-fieldset[disabled] .btn-warning:active,
-.btn-warning.disabled.active,
-.btn-warning[disabled].active,
-fieldset[disabled] .btn-warning.active {
-  background-color: #eb9316;
-  background-image: none;
-}
-.btn-danger {
-  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
-  background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
-  background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  background-repeat: repeat-x;
-  border-color: #b92c28;
-}
-.btn-danger:hover,
-.btn-danger:focus {
-  background-color: #c12e2a;
-  background-position: 0 -15px;
-}
-.btn-danger:active,
-.btn-danger.active {
-  background-color: #c12e2a;
-  border-color: #b92c28;
-}
-.btn-danger.disabled,
-.btn-danger[disabled],
-fieldset[disabled] .btn-danger,
-.btn-danger.disabled:hover,
-.btn-danger[disabled]:hover,
-fieldset[disabled] .btn-danger:hover,
-.btn-danger.disabled:focus,
-.btn-danger[disabled]:focus,
-fieldset[disabled] .btn-danger:focus,
-.btn-danger.disabled.focus,
-.btn-danger[disabled].focus,
-fieldset[disabled] .btn-danger.focus,
-.btn-danger.disabled:active,
-.btn-danger[disabled]:active,
-fieldset[disabled] .btn-danger:active,
-.btn-danger.disabled.active,
-.btn-danger[disabled].active,
-fieldset[disabled] .btn-danger.active {
-  background-color: #c12e2a;
-  background-image: none;
-}
-.thumbnail,
-.img-thumbnail {
-  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
-  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
-}
-.dropdown-menu > li > a:hover,
-.dropdown-menu > li > a:focus {
-  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
-  background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
-  background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
-  background-repeat: repeat-x;
-  background-color: #e8e8e8;
-}
-.dropdown-menu > .active > a,
-.dropdown-menu > .active > a:hover,
-.dropdown-menu > .active > a:focus {
-  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-  background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
-  background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
-  background-repeat: repeat-x;
-  background-color: #2e6da4;
-}
-.navbar-default {
-  background-image: -webkit-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);
-  background-image: -o-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f8f8f8));
-  background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  border-radius: 4px;
-  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);
-  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);
-}
-.navbar-default .navbar-nav > .open > a,
-.navbar-default .navbar-nav > .active > a {
-  background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
-  background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
-  background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
-  background-repeat: repeat-x;
-  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);
-  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.075);
-}
-.navbar-brand,
-.navbar-nav > li > a {
-  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
-}
-.navbar-inverse {
-  background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
-  background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
-  background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
-  background-repeat: repeat-x;
-  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
-  border-radius: 4px;
-}
-.navbar-inverse .navbar-nav > .open > a,
-.navbar-inverse .navbar-nav > .active > a {
-  background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
-  background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
-  background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
-  background-repeat: repeat-x;
-  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);
-  box-shadow: inset 0 3px 9px rgba(0, 0, 0, 0.25);
-}
-.navbar-inverse .navbar-brand,
-.navbar-inverse .navbar-nav > li > a {
-  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-}
-.navbar-static-top,
-.navbar-fixed-top,
-.navbar-fixed-bottom {
-  border-radius: 0;
-}
-@media (max-width: 767px) {
-  .navbar .navbar-nav .open .dropdown-menu > .active > a,
-  .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
-  .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
-    color: #fff;
-    background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-    background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-    background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
-    background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
-    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
-    background-repeat: repeat-x;
-  }
-}
-.alert {
-  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
-  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
-  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
-}
-.alert-success {
-  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
-  background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
-  background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #b2dba1;
-}
-.alert-info {
-  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
-  background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
-  background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #9acfea;
-}
-.alert-warning {
-  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
-  background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
-  background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #f5e79e;
-}
-.alert-danger {
-  background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
-  background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
-  background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #dca7a7;
-}
-.progress {
-  background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
-  background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
-  background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar {
-  background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
-  background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
-  background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar-success {
-  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
-  background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
-  background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar-info {
-  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
-  background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
-  background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar-warning {
-  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
-  background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
-  background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar-danger {
-  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
-  background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
-  background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
-  background-repeat: repeat-x;
-}
-.progress-bar-striped {
-  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-}
-.list-group {
-  border-radius: 4px;
-  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
-  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
-}
-.list-group-item.active,
-.list-group-item.active:hover,
-.list-group-item.active:focus {
-  text-shadow: 0 -1px 0 #286090;
-  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
-  background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
-  background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #2b669a;
-}
-.list-group-item.active .badge,
-.list-group-item.active:hover .badge,
-.list-group-item.active:focus .badge {
-  text-shadow: none;
-}
-.panel {
-  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
-  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
-}
-.panel-default > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
-  background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
-  background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
-  background-repeat: repeat-x;
-}
-.panel-primary > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-  background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
-  background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
-  background-repeat: repeat-x;
-}
-.panel-success > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
-  background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
-  background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
-  background-repeat: repeat-x;
-}
-.panel-info > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
-  background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
-  background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
-  background-repeat: repeat-x;
-}
-.panel-warning > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
-  background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
-  background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
-  background-repeat: repeat-x;
-}
-.panel-danger > .panel-heading {
-  background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
-  background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
-  background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
-  background-repeat: repeat-x;
-}
-.well {
-  background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
-  background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
-  background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
-  background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
-  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
-  background-repeat: repeat-x;
-  border-color: #dcdcdc;
-  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
-  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
-}
-/*# sourceMappingURL=bootstrap-theme.css.map */

File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/css/bootstrap-theme.css.map


File diff suppressed because it is too large
+ 0 - 6
public/h5player/static/css/bootstrap-theme.min.css


File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/css/bootstrap-theme.min.css.map


File diff suppressed because it is too large
+ 0 - 6834
public/h5player/static/css/bootstrap.css


File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/css/bootstrap.css.map


File diff suppressed because it is too large
+ 0 - 6
public/h5player/static/css/bootstrap.min.css


File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/css/bootstrap.min.css.map


二進制
public/h5player/static/fonts/glyphicons-halflings-regular.eot


File diff suppressed because it is too large
+ 0 - 288
public/h5player/static/fonts/glyphicons-halflings-regular.svg


二進制
public/h5player/static/fonts/glyphicons-halflings-regular.ttf


二進制
public/h5player/static/fonts/glyphicons-halflings-regular.woff


二進制
public/h5player/static/fonts/glyphicons-halflings-regular.woff2


File diff suppressed because it is too large
+ 0 - 3
public/h5player/static/js/antd-with-locales.min.js


File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/js/antd-with-locales.min.js.map


File diff suppressed because it is too large
+ 96355 - 0
public/h5player/static/js/antd.js


File diff suppressed because it is too large
+ 0 - 3
public/h5player/static/js/antd.min.js


File diff suppressed because it is too large
+ 0 - 1
public/h5player/static/js/antd.min.js.map


File diff suppressed because it is too large
+ 0 - 2580
public/h5player/static/js/bootstrap.js


File diff suppressed because it is too large
+ 0 - 6
public/h5player/static/js/bootstrap.min.js


File diff suppressed because it is too large
+ 0 - 5
public/h5player/static/js/jquery-1.12.4.min.js


File diff suppressed because it is too large
+ 0 - 4601
public/h5player/static/js/moment.js


+ 0 - 13
public/h5player/static/js/npm.js

@@ -1,13 +0,0 @@
-// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
-require('../../js/transition.js')
-require('../../js/alert.js')
-require('../../js/button.js')
-require('../../js/carousel.js')
-require('../../js/collapse.js')
-require('../../js/dropdown.js')
-require('../../js/modal.js')
-require('../../js/tooltip.js')
-require('../../js/popover.js')
-require('../../js/scrollspy.js')
-require('../../js/tab.js')
-require('../../js/affix.js')

File diff suppressed because it is too large
+ 0 - 10
public/h5player/static/js/vconsole.min.js


File diff suppressed because it is too large
+ 0 - 12014
public/h5player/static/js/vue.js


File diff suppressed because it is too large
+ 0 - 6
public/h5player/static/js/vue.min.js


+ 0 - 120
public/h5player/static/js/zh-cn.js

@@ -1,120 +0,0 @@
-//! moment.js locale configuration
-//! locale : Chinese (China) [zh-cn]
-//! author : suupic : https://github.com/suupic
-//! author : Zeno Zeng : https://github.com/zenozeng
-//! author : uu109 : https://github.com/uu109
-
-import moment from '../moment';
-
-export default moment.defineLocale('zh-cn', {
-    months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
-        '_'
-    ),
-    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
-        '_'
-    ),
-    weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
-    weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
-    weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
-    longDateFormat: {
-        LT: 'HH:mm',
-        LTS: 'HH:mm:ss',
-        L: 'YYYY/MM/DD',
-        LL: 'YYYY年M月D日',
-        LLL: 'YYYY年M月D日Ah点mm分',
-        LLLL: 'YYYY年M月D日ddddAh点mm分',
-        l: 'YYYY/M/D',
-        ll: 'YYYY年M月D日',
-        lll: 'YYYY年M月D日 HH:mm',
-        llll: 'YYYY年M月D日dddd HH:mm',
-    },
-    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
-    meridiemHour: function (hour, meridiem) {
-        if (hour === 12) {
-            hour = 0;
-        }
-        if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
-            return hour;
-        } else if (meridiem === '下午' || meridiem === '晚上') {
-            return hour + 12;
-        } else {
-            // '中午'
-            return hour >= 11 ? hour : hour + 12;
-        }
-    },
-    meridiem: function (hour, minute, isLower) {
-        var hm = hour * 100 + minute;
-        if (hm < 600) {
-            return '凌晨';
-        } else if (hm < 900) {
-            return '早上';
-        } else if (hm < 1130) {
-            return '上午';
-        } else if (hm < 1230) {
-            return '中午';
-        } else if (hm < 1800) {
-            return '下午';
-        } else {
-            return '晚上';
-        }
-    },
-    calendar: {
-        sameDay: '[今天]LT',
-        nextDay: '[明天]LT',
-        nextWeek: function (now) {
-            if (now.week() !== this.week()) {
-                return '[下]dddLT';
-            } else {
-                return '[本]dddLT';
-            }
-        },
-        lastDay: '[昨天]LT',
-        lastWeek: function (now) {
-            if (this.week() !== now.week()) {
-                return '[上]dddLT';
-            } else {
-                return '[本]dddLT';
-            }
-        },
-        sameElse: 'L',
-    },
-    dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
-    ordinal: function (number, period) {
-        switch (period) {
-            case 'd':
-            case 'D':
-            case 'DDD':
-                return number + '日';
-            case 'M':
-                return number + '月';
-            case 'w':
-            case 'W':
-                return number + '周';
-            default:
-                return number;
-        }
-    },
-    relativeTime: {
-        future: '%s后',
-        past: '%s前',
-        s: '几秒',
-        ss: '%d 秒',
-        m: '1 分钟',
-        mm: '%d 分钟',
-        h: '1 小时',
-        hh: '%d 小时',
-        d: '1 天',
-        dd: '%d 天',
-        w: '1 周',
-        ww: '%d 周',
-        M: '1 个月',
-        MM: '%d 个月',
-        y: '1 年',
-        yy: '%d 年',
-    },
-    week: {
-        // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
-        dow: 1, // Monday is the first day of the week.
-        doy: 4, // The week that contains Jan 4th is the first week of the year.
-    },
-});

File diff suppressed because it is too large
+ 0 - 21
public/h5player/talk/AudioInterCom.js


二進制
public/h5player/talk/AudioInterCom.wasm


File diff suppressed because it is too large
+ 0 - 21
public/h5player/talkW/AudioInterCom.js


二進制
public/h5player/talkW/AudioInterCom.wasm


File diff suppressed because it is too large
+ 0 - 1
public/h5player/talkW/AudioInterCom.worker.js


File diff suppressed because it is too large
+ 0 - 6525
public/h5player/transform/libSystemTransform.js


二進制
public/h5player/transform/libSystemTransform.wasm


+ 0 - 120
public/h5player/transform/systemTransform-worker.js

@@ -1,120 +0,0 @@
-importScripts('libSystemTransform.js');
-    const RECORDRTP = 0;  //录制一份未经过转封装的码流原始数据,用于定位问题
-    let dataType = 1;
-    
-    // 转封装库回调函数
-    self.STCallBack = function (fileIndex,indexLen, data, dataLen)
-    {
-        //stFrameInfo的类型见DETAIL_FRAME_INFO
-		let stFrameInfo = Module._GetDetialFrameInfo();
-        let nIsMp4Index = stFrameInfo.nIsMp4Index;
-		//console.log("FrameType is " , stFrameInfo);	
-		//console.log("nIsMp4Index is " + nIsMp4Index);
-        //debugger
-        var pData = null;
-        pData = new Uint8Array(dataLen);
-        pData.set(Module.HEAPU8.subarray(data, data + dataLen));
-        if (dataType === 1) {
-            if (pData[0] == 0x49 && pData[1] == 0x4d && pData[2] == 0x4b && pData[3] == 0x48) {//码流头丢掉
-                return;
-            }
-            postMessage({type: "outputData", buf: pData, dType: 1});
-            dataType = 2;
-        } else {
-            if (nIsMp4Index) {
-                postMessage({type: "outputData", buf: pData, dType: 6}); //6:索引类型
-            } else {
-                postMessage({type: "outputData", buf: pData, dType: 2}); //2:码流
-            }
-        }
-
-        //stFrameInfo的类型见DETAIL_FRAME_INFO
-		//let stFrameInfo = Module._GetDetialFrameInfo();
-		//let stFrameType = stFrameInfo.nFrameType;
-		//let nFrameNum = stFrameInfo.nFrameNum;
-		//let nTimeStamp = stFrameInfo.nTimeStamp;
-        //let nIsMp4Index = stFrameInfo.nIsMp4Index;
-		
-		//console.log("FrameType is " + stFrameType);	
-		//console.log("nIsMp4Index is " + nIsMp4Index);	
-        
-    }
-
-    // self.Module = { memoryInitializerRequest: loadMemInitFile(), TOTAL_MEMORY: 128*1024*1024 };
-    // importScripts('SystemTransform.js');
-
-    self.Module['onRuntimeInitialized'] = function (){
-        postMessage({type: "loaded"});
-    }
-    onmessage = function (e) {
-        var data = e.data;
-        if ("create" === data.type) {
-            if (RECORDRTP) {
-                postMessage({type: "created"});
-                postMessage({type: "outputData", buf: data.buf, dType: 1});
-            } else {
-                var iHeadLen = data.len;
-                var pHead = Module._malloc(iHeadLen);
-    
-                self.writeArrayToMemory(new Uint8Array(data.buf), pHead);
-                var iTransType = data.packType;//目标格式
-                var iRet = Module._CreatHandle(pHead, iTransType, 4096);
-                if (iRet != 0) {
-                    console.log("_CreatHandle failed!" + iRet);
-                } else {
-                    iRet = Module._SysTransRegisterDataCallBack();			
-                    if(iRet != 0)
-                    {
-                        console.log("_SysTransRegisterDataCallBack Failed:" + iRet);
-                    }
-
-                    iRet = Module._SysTransStart(null, null);
-                    if(iRet != 0)
-                    {
-                        console.log("_SysTransStart Failed:" + iRet);
-                    }
-                    postMessage({type: "created"});
-                }
-            }
-
-        } else if ("inputData" === data.type) {
-            if (RECORDRTP) {
-                var aFileData = new Uint8Array(data.buf);  // 拷贝一份
-                var iBufferLen = aFileData.length;
-                var szBufferLen = iBufferLen.toString(16);
-                if (szBufferLen.length === 1) {
-                    szBufferLen = "000" + szBufferLen;
-                } else if (szBufferLen.length === 2) {
-                    szBufferLen = "00" + szBufferLen;
-                } else if (szBufferLen.length === 3) {
-                    szBufferLen = "0" + szBufferLen;
-                }
-                var aData = [0, 0, parseInt(szBufferLen.substring(0, 2), 16), parseInt(szBufferLen.substring(2, 4), 16)];
-                for(var iIndex = 0, iDataLength = aFileData.length; iIndex < iDataLength; iIndex++) {
-                    aData[iIndex + 4] = aFileData[iIndex]
-                }
-                var dataUint8 = new Uint8Array(aData);
-                postMessage({type: "outputData", buf: dataUint8.buffer, dType: 2});
-            } else {
-                let pInputDataBuf = Module._malloc(data.len);
-                var idataLen = data.len;
-                self.writeArrayToMemory(new Uint8Array(data.buf), pInputDataBuf);
-                    // 输入数据,每次最多2m
-                let pp = Module._SysTransInputData(0, pInputDataBuf, idataLen);
-                if(pp != 0) {
-                    //console.log("InputData Failed:" + pp);
-                }
-                Module._free(pInputDataBuf);
-            }
-        } else if ("release" === data.type) {
-            var iRet = Module._SysTransStop();
-            if (iRet != 0) {
-                console.log("_SysTransStop Failed:", iRet);
-            }
-            Module._SysTransRelease();
-            if (iRet != 0) {
-                console.log("_SysTransRelease Failed:", iRet);
-            }
-            close();
-        }
-    };