diff --git a/manifest.json b/manifest.json index 949c906..52cb218 100644 --- a/manifest.json +++ b/manifest.json @@ -42,9 +42,13 @@ "" ] }, - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* ios打包配置 */ - "sdkConfigs" : {}, + "sdkConfigs" : { + "ad" : {} + }, "splashscreen" : { "androidStyle" : "common" } diff --git a/pages.json b/pages.json index a32a9ca..d819442 100644 --- a/pages.json +++ b/pages.json @@ -161,8 +161,8 @@ "list": [ { "pagePath": "pages/homeIndex/index", - "iconPath": "/static/tabs/首页@2x.png", - "selectedIconPath": "static/tabs/首页2@2x.png", + "iconPath": "/static/tabs/home.png", + "selectedIconPath": "static/tabs/home1.png", "text": "首页" }, { diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue index bff60d1..448fb2a 100644 --- a/pages/homeIndex/index.vue +++ b/pages/homeIndex/index.vue @@ -6,7 +6,7 @@
@@ -45,7 +45,7 @@ margin-right: 16rpx; vertical-align: middle; " - src="../../static/tabs/铃铛@2x.png" + src="../../static/tabs/ld.png" mode="aspectFit" >当前防汛应急响应:IV级 @@ -244,19 +244,19 @@ export default { { value: '雨情', key: 1, - icon: '../../static/tabs/形状 1@2x.png', + icon: '../../static/tabs/xingzhuang.png', url:"/pages/rain/rain" }, { value: '水情', key: 2, - icon: '../../static/tabs/water (1) 拷贝@2x.png', + icon: '../../static/tabs/water.png', url:"/pages/water/water" }, { value: '工情灾情', key: 3, - icon: '../../static/tabs/工情——icon@2x.png', + icon: '../../static/tabs/gongqing.png', url:'/pages/gqzq/index' }, { @@ -278,19 +278,19 @@ export default { { value: '雨情', key: 1, - icon: '../../static/tabs/形状 1@2x.png', + icon: '../../static/tabs/xingzhuang.png', url:"/pages/rain/rain" }, { value: '水情', key: 2, - icon: '../../static/tabs/water (1) 拷贝@2x.png', + icon: '../../static/tabs/water.png', url:"/pages/water/water" }, { value: '工情灾情', key: 3, - icon: '../../static/tabs/工情——icon@2x.png', + icon: '../../static/tabs/gongqing.png', url:'/pages/gqzq/index' }, { diff --git a/pages/login/login.vue b/pages/login/login.vue index 9d87a63..e583ebc 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -96,7 +96,7 @@ console.log('-----avatar------',uni.getStorageSync('avatar')); }) } else { - uni.setStorageSync('avatar','../../static/tabs/头像_icon@2x.png') + uni.setStorageSync('avatar','../../static/tabs/touxing.png') } }) } diff --git a/pages/personInfo/personInfo.vue b/pages/personInfo/personInfo.vue index d8c0595..f25f5c4 100644 --- a/pages/personInfo/personInfo.vue +++ b/pages/personInfo/personInfo.vue @@ -101,7 +101,7 @@ } else if(res.tapIndex === 1) { //恢复默认头像 console.log('click'); this.reset = true - this.default_src = '../../static/tabs/头像_icon@2x.png' + this.default_src = '../../static/tabs/touxiang.png' } }, fail: (err) => { @@ -151,7 +151,7 @@ if (this.reset) { //重置头像 //调接口清空返回图片路径的data uni.$http.get('/gunshiApp/xfflood/my/info/recover').then(res=>{ - uni.setStorageSync('avatar','../../static/tabs/头像_icon@2x.png') + uni.setStorageSync('avatar','../../static/tabs/touxiang.png') }) console.log('重置头像'); } diff --git a/static/h5Player/1.0升级至2.0+注意事项.txt b/static/h5Player/1.0升级至2.0+注意事项.txt deleted file mode 100644 index 9bae493..0000000 --- a/static/h5Player/1.0升级至2.0+注意事项.txt +++ /dev/null @@ -1 +0,0 @@ -1ɾDecoder.jsⲿãDecoder.jsȫڱʼDZʱϾã׳ֻûʱȫֵ \ No newline at end of file diff --git a/static/h5Player/doc/H5playerV2.1.2开发指南.html b/static/h5Player/doc/H5playerV2.1.2开发指南.html deleted file mode 100644 index 0351a49..0000000 --- a/static/h5Player/doc/H5playerV2.1.2开发指南.html +++ /dev/null @@ -1,2008 +0,0 @@ - - - - - no title - - - - - - - -
-
-
-
- -

h5player

-
-
-
-
- -

接口说明

-
-
-
- -
-
- -
-
- -
-

h5player

-

描述

-

h5player是一个基于HTML5的流式网络视频播放器,无需安装浏览器插件即可通过websocket协议向媒体服务取流播放多种格式的音视频流。

-

版本

-

当前版本 2.0.0

-

媒体版本限制

-

媒体网关:mgc_V5.11.101003 或 mgc_V5.13.100版本及以上

-

使用注意事项

-

1、需要在web服务器返回的响应头增加跨域隔离字段:Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin 并在https环境下使用。否则高级模式无法使用
-2、在集成过程中new JSPlugin时候必填szBasePath: './dist', // 必填,引用H5player.min.js的js相对目录,否则会引起内部加载解码库异常

-

浏览器限制以及编解码支持情况

-

以下数据都是在pc chrome80+测试所得

- - - - - - - - - - - - - - - - - -
解码方式浏览器限制
高级模式当前支持 Chrome80+,ios safari,andriod browser
普通模式除 IE 和 IOS Safari 外,基本都支持
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
解码方式视频编码格式音频编码格式
H264H265AACAACLDADPCMG711G722_1G726MP2Opus
高级模式
普通模式
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
解码方式视频编码格式分辨率视频参数(bps*fps)解码路数(系统:Win7)
CPU:
I7_8700K
CPU:
I5-9400/F
CPU:
I3-8100
显卡:RTX2080显卡:GTX1050TI显卡:GT1030D5
高级模式H2651080P4M * 25643
720P2M * 2514106
H2641080P4M * 25 643
720P2M * 2514106
普通模式H265(采用高级模式解码)1080P4M * 25643
720P2M * 2514106
H2641080P4M * 2524209
720P2M * 25323216
-

接口调用流程图

-

其余控制接口调用都在JS_Play后调用

-
st=>start: 开始
-e=>end: 结束
-op1=>operation: 创建实例:new JSPlugin|past
-op2=>operation: 事件初始化:JS_SetWindowControlCallback|past
-op3=>operation: 调用预览/回放接口:JS_Play|current
-op4=>operation: 调用停止接口:JS_Stop|current
-op5=>operation: 抓图|current
-
-st->op1->op2->op3->op4
-op4->e
-

引入

-

直接用<script>标签引入

-
<!-- h5player -->
-<script src="h5player.min.js"></script>
-

创建实例

-
<body>
-  <div id="play_window"></div>
-  <script>
-    var curIndex = 0; // 当前窗口下标
-    var myPlugin = new JSPlugin({
-      szId: 'play_window', //需要英文字母开头,唯一性,必填
-      szBasePath: './dist', // 必填,与h5player.min.js的引用目录一致
-      bSupporDoubleClickFull: true,//是否支持双击全屏,默认true
-      // 当容器div#play_window有固定宽高时,可不传iWidth和iHeight,窗口大小将自适应容器宽高
-      // iWidth: 600,
-      // iHeight: 400,
-
-      // 分屏播放,默认最大分屏4*4
-      // iMaxSplit: 4,
-      // iCurrentSplit: 1,
-    })
-  </script>
-</body>
-

接口说明

-

事件初始化: JS_SetWindowControlCallback(events)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
eventsObject事件对应的处理函数集合
返回:Promise
-
JS_SetWindowControlCallback({
-  windowEventSelect: function (index) {  //插件选中窗口回调
-      curIndex = index;
-      console.log(index, iErrorCode, oError);
-  },
-  pluginErrorHandler: function (index, iErrorCode, oError) {  //插件错误回调
-      // do you want...
-      // 取流失败,流中断等错误都会触发该回调函数,请自行对照错误码表进行判断。
-      // 业务上层可在此做一些个性化操作,如:个性化错误信息展示,重新取流等。
-  },
-  windowEventOver: function (index) {  //鼠标移过回调
-      // do you want...
-  },
-  windowEventOut: function (index) {  //鼠标移出回调
-      // do you want...
-  },
-  windowEventUp: function (index) {  //鼠标mouseup事件回调
-      // do you want...
-  },
-  windowFullCcreenChange: function (bFull) {  //全屏切换回调
-      // do you want...
-  },
-  firstFrameDisplay: function (index, iWidth, iHeight) {  //首帧显示回调
-      // do you want...
-  },
-  performanceLack: function () {  //性能不足回调
-      // do you want...
-  },
-  StreamEnd: function (index) {  //回放结束回调,返回对应测窗口id
-    console.log('recv  windowsId: '+iWndIndex+' recv streamend');
-      // do you want...
-  },
-  InterruptStream: function (iWndIndex, interruptTime) {  //interruptTime为秒级别
-    console.log('recv InterruptStream windowsId: '+iWndIndex+' interrupt time:'+interruptTime+'s');
-  },
-  talkPluginErrorHandler: (iErrorCode, oError) => {  //对讲错误回调
-    console.log('recv talkPluginErrorHandler: '+iErrorCode);
-},
-});
-

播放: JS_Play(url, config, windowIndex, startTime, endTime)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
urlString流媒体URL
configObject播放配置必传,详情见示例
windowIndexNumber当前窗口下标
startTimeDateTime回放开始时间,统一格式,格式类型:2023-05-16T00:00:00Z或2023-05-16T07:47:36.000+08:00预览不能填,回放必填
endTimeDateTime回放结束时间,格式类型:统一格式,格式类型:2023-05-16T00:00:00Z或2023-05-16T07:47:36.000+08:00预览不能填,回放必填
返回:Promise
-
let url = document.getElementById('url').value;
-let startTime, endTime;
-myPlugin.JS_Play(
-  url,
-  {
-    playURL: url, // 流媒体播放时必传
-    mode: 0, // 解码类型:0=普通模式; 1=高级模式 默认为0
-    // ...
-  },
-  curIndex, //当前窗口下标
-
-  // 回放参数
-  startTime,
-  endTime,
-).then(
-  () => {
-    console.info('JS_Play success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Play failed:', err);
-    // do you want...
-  }
-);
-

停止播放: JS_Stop(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_Stop(curIndex).then(
-  () => {
-    console.info('JS_Stop success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Stop failed:', err);
-    // do you want...
-  }
-);
-

停止所有播放: JS_StopRealPlayAll()

-

参数:无
-返回:Promise

-
myPlugin.JS_StopRealPlayAll().then(
-  () => {
-    console.info('JS_StopRealPlayAll success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_StopRealPlayAll failed');
-    // do you want...
-  }
-);
-

开启声音: JS_OpenSound(windowIndex)

-

参数:
-说明:一个实例下只支持一路声音播放,开启下一路会默认关闭上一路声音。倍数不支持声音播放

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标否,不传时默认开启当前选中窗口的声音
返回:Promise
-
myPlugin.JS_OpenSound(curIndex).then(
-  () => {
-    console.info('JS_OpenSound success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_OpenSound failed');
-    // do you want...
-  }
-);
-

关闭声音: JS_CloseSound(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标否,不传时默认关闭当前选中窗口的声音
返回:Promise
-
myPlugin.JS_CloseSound(curIndex).then(
-  () => {
-    console.info('JS_CloseSound success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_CloseSound failed');
-    // do you want...
-  }
-);
-

设置音量: JS_SetVolume(windowIndex, volumn)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
volumnNumber音量大小是,范围1~100,默认50
返回:Promise
-
myPlugin.JS_SetVolume(curIndex, volumn).then(
-  () => {
-    console.info('JS_SetVolume success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SetVolume failed');
-    // do you want...
-  }
-);
-

获取当前音量: JS_GetVolume(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_GetVolume(curIndex).then(
-  (volumn) => { //在不设置音量的情况下默认50
-    console.info('JS_GetVolume success', volumn);
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_GetVolume failed');
-    // do you want...
-  }
-);
-

录像: JS_StartSaveEx(windowIndex, fileName, idstType)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
fileNameString文件名(保证全局唯一性)是,可不带后缀,默认为.mp4
idstTypeNumber录像文件类型是,2-ps 5-mp4 ,mp4录制音频限制,仅支持AAC、G711A、G711U
返回:Promise
-
let fileName = 'fileName.mp4';
-myPlugin.JS_StartSaveEx(curIndex, fileName, 2).then(
-  () => {
-    console.info('JS_StartSave success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_StartSave failed');
-    // do you want...
-  }
-);
-

停止录像并保存文件: JS_StopSave(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
let fileName = 'fileName.mp4';
-myPlugin.JS_StopSave(windowIndex).then(
-  () => {
-    console.info('JS_StopSave success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_StopSave failed');
-    // do you want...
-  }
-);
-

抓图: JS_CapturePicture(windowIndex, fileName, fileType, callback)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
fileNameString文件名
fileTypeString文件类型是,'JPEG'
callbackFuction回调函数
返回:Promise
-
let fileName = 'img';
-let fileType = 'JPEG';
-//下载到本地
-myPlugin.JS_CapturePicture(curIndex, fileName, fileType).then(
-  () => {
-    console.info('JS_CapturePicture success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_CapturePicture failed');
-    // do you want...
-  }
-);
-//不进行下载,数据回调,JS_CapturePicture接口在jsdecoder1.0解码方式下连续调用会存在失败的情况,如果既要回调又要下载,请自行对回调数据进行下载
-myPlugin.JS_CapturePicture(curIndex, fileName, fileType,imageData => {
-    console.info('JS_CapturePicture success', imageData); //2.1.0开始全是base64,之前的版本存在blob或者是base64
-    // do you want...
-})
-
-

回放:JS_Play()

-

停止回放:JS_Stop()

-

暂停回放: JS_Pause(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_Pause(curIndex).then(
-  () => {
-    console.info('JS_Pause success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Pause failed');
-    // do you want...
-  }
-);
-

恢复回放: JS_Resume(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_Resume(curIndex).then(
-  () => {
-    console.info('JS_Resume success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Resume failed');
-    // do you want...
-  }
-);
-

开始对讲: JS_StartTalk(szTalkUrl)

-

特殊声明:由于浏览器的安全限制,该功能只能在https域下使用,只支持一路对讲
-参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
szTalkUrlString对讲URL
返回:Promise
-
myPlugin.JS_StartTalk(szTalkUrl).then(
-  () => {
-    console.info('JS_StartTalk success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_StartTalk failed');
-    // do you want...
-  }
-);
-

停止对讲: JS_StopTalk()

-

返回:Promise

-
myPlugin.JS_StopTalk().then(
-  () => {
-    console.info('JS_StopTalk success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_StopTalk failed');
-    // do you want...
-  }
-);
-

设置对讲音量:JS_TalkSetVolume(nVolume)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
nVolumenumber音量大小(0-100)
返回:Promise
-
myPlugin.设置对讲音量:JS_TalkSetVolume(nVolume).then(
-  () => {
-    console.info('JS_TalkSetVolume success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_TalkSetVolume failed');
-    // do you want...
-  }
-);
-

获取对讲音量: JS_TalkGetVolume()

-

返回:Promise

-
myPlugin.JS_TalkGetVolume().then(
-  () => {
-    console.info('JS_TalkGetVolume success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_TalkGetVolume failed');
-    // do you want...
-  }
-);
-

录像、抓图功能同预览播放

-

回放快放: JS_Fast(windowIndex)

-

调节播放倍速为当前播放速度的2倍,最大为8倍。
-参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_Fast(curIndex).then(
-  () => {
-    console.info('JS_Fast success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Fast failed');
-    // do you want...
-  }
-);
-

回放慢放: JS_Slow(windowIndex)

-

调节播放倍速为当前播放速度的1/2倍,最小为1/8倍。
-参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_Slow(curIndex).then(
-  () => {
-    console.info('JS_Slow success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Slow failed');
-    // do you want...
-  }
-);
-

回放定位: JS_Seek(windowIndex, stratTime, endTime)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
stratTimeDateTime开始时间,格式类型:2021-06-29T00:00:00Z
endTimeDateTime结束时间,格式类型:2021-06-29T00:00:00Z
返回:Promise
-
myPlugin.JS_Seek(curIndex,zStartDate, szEndDate).then(
-  () => {
-    console.info('JS_Seek success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Seek failed');
-    // do you want...
-  }
-);
-

回放单帧进(高级模式功能): JS_FrameForward(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_FrameForward(curIndex).then(
-  () => {
-    console.info('JS_FrameForward success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_FrameForward failed');
-    // do you want...
-  }
-);
-

电子放大(高级模式功能): JS_EnableZoom(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标否,不传时默认开启当前选中窗口的电子放大功能
返回:Promise
-
myPlugin.JS_EnableZoom(curIndex).then(
-  () => {
-    console.info('JS_EnableZoom success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_EnableZoom failed');
-    // do you want...
-  }
-);
-

开启/关闭智能信息展示(高级模式功能): JS_RenderALLPrivateData(iWndNum, bOpenFlag)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
iWndNumNumber窗口下标
bOpenFlagBoolean开启/关闭
返回:Promise
-
myPlugin.JS_RenderALLPrivateData(iWndNum, true).then(
-  () => {
-    console.info('JS_RenderALLPrivateData success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_RenderALLPrivateData failed');
-    // do you want...
-  }
-);
-

分屏: JS_ArrangeWindow(splitNum)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
splitNumNumber分隔数是, 范围:1~4
返回:Promise
分隔数分屏效果
--------
11x1
22x2
33x3
44x4
-
myPlugin.JS_ArrangeWindow(splitNum).then(
-  () => {
-    console.info('JS_ArrangeWindow success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_ArrangeWindow failed');
-    // do you want...
-  }
-);
-

切换选中窗口: JS_SelectWnd(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_SelectWnd(windowIndex).then(
-  () => {
-    console.info('JS_SelectWnd success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SelectWnd failed');
-    // do you want...
-  }
-);
-

整体全屏: JS_FullScreenDisplay(isFull)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
isFullBoolean是否全屏
返回:Promise
-
myPlugin.JS_FullScreenDisplay(true).then(
-  () => {
-    console.info('JS_FullScreenDisplay success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_FullScreenDisplay failed');
-    // do you want...
-  }
-);
-

单窗口全屏: JS_FullScreenSingle(windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
-
myPlugin.JS_FullScreenSingle(curIndex).then(
-  () => {
-    console.info('JS_FullScreenSingle success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_FullScreenSingle failed');
-    // do you want...
-  }
-);
-

设置窗口大小:JS_Resize (iWidth, iHeight)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
iWidthNumber播放页面宽度否,不传时默认父窗口大小
iHeightNumber播放页面高度否,不传时默认父窗口大小
返回:Promise
-
myPlugin.JS_Resize().then(
-  () => {
-    console.info('JS_Resize success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_Resize failed');
-    // do you want...
-  }
-);
-

获取OSD时间:JS_GetOSDTime (windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
成功返回从1970-1-1 00:00:00 到该日期对象的毫秒数,但是获取的精度只到秒级别,毫秒都是0
-
myPlugin.JS_GetOSDTime(curIndex).then(
-  (time) => {
-    console.info("osdTime:", new Date(time));
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_GetOSDTime failed');
-    // do you want...
-  }
-);
-

获取音视频信息:JS_GetVideoInfo (windowIndex)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
返回:Promise
videoInfo = {
-
  VideType: 'h264',  //视频编码格式
-  audioType: 'without',//音频编码格式
-  width: 0,//视频分辨率的宽
-  height: 0,//视频分辨率的高
-  frameRate: 25,//视频帧率
-  bitRate: 2048,//视频码率,单位:Kb/s
-  systemFormt: "ps"//视频封装格式
-
-

};

-
myPlugin.JS_GetVideoInfo(curIndex).then(
-  (VideoInfo) => {
-    console.info("VideoInfo:", VideoInfo);
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_GetVideoInfo failed');
-    // do you want...
-  }
-);
-

设置取流连接超时时间:JS_SetConnectTimeOut (windowIndex, nTime)

-

参数:
-说明:该接口不调用时默认6s,在JS_Play之前调用

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
nTimeNumber超时时间是,不传时默认0秒,单位秒
返回:Promise
-
myPlugin.JS_SetConnectTimeOut(curIndex, nTime).then(
-  () => {
-    console.info('JS_SetConnectTimeOut success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SetConnectTimeOut failed');
-    // do you want...
-  }
-);
-

设置私有数据回调(高级模式功能):JS_SetAdditionDataCB(windowIndex, szType, cbCallback)

-

参数:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
szTypeNumber数据类型是,0x0101: 定制温度 0x0103: 基线温度裸数据 0x0006: 车载行车信息 0x0009: 车载调试信息 0x0007: POS 信息解析回调 0x0010: 汽车电子私有信息 0x0011: 无人机私有信息 0x0804: 数立体云防私有数据 0x000B: 设备扩展信息
cbCallbackfunction回调函数是,function(dataType, dataStrVersion, dataTimeStamp, additionDataBuffer)
-

返回:Promise

-
myPlugin.JS_SetAdditionDataCB(curIndex, 0x0804, function(dataType,dataStrVersion, dataTimeStamp, additionDataBuffer){
-  console.log(" JSPlayM4_AdditionDataCBFun dataType:"+dataType +",dataStrVersion:"+dataStrVersion+",dataTimeStamp:"+dataTimeStamp);
-  }).then(
-  () => {
-    console.info('JS_SetAdditionDataCB success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SetAdditionDataCB failed');
-    // do you want...
-  }
-);
-

设置traceId:JS_SetTraceId(windowIndex, bOpenFlag)

-

说明:traceId是查询调用链的唯一标识,H5player不做调用链埋点,只拼接traceId,traceId建议在传入url的时候自行拼接
-拼接规则:取流url中无?则拼接?traceId=uuid(随机生成的一个id编号);有?则拼接&traceId=uuid
-示例:wss://10.19.147.57:6014/proxy/10.19.147.57:559/EUrl/SiSnW6z?traceId=d9d0766e3b3f7a41
-参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
bOpenFlagNumber是否设置traceId是,该接口不调用默认false
-

返回:Promise

-
myPlugin.JS_SetTraceId(curIndex, bOpenFlag).then(
-  () => {
-    console.info('JS_SetTraceId success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SetTraceId failed');
-    // do you want...
-  }
-);
-

设置断流时间回调:JS_SetInterruptTime(iWndNum, InterruptTime)

-

说明:断流的事件统一从JS_SetWindowControlCallback的InterruptStream回调,InterruptTime为检测无码流的时间,每过InterruptTime回调一次断流事件,未设置默认每过5s无码流回调一次断流事件
-参数:

- - - - - - - - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
InterruptTimeNumber检测断流时间阈值,单位:秒,默认5秒
-

返回:Promise

-
let InterruptTime = 5;
-myPlugin.JS_SetInterruptTime(iWndNum, InterruptTime).then(
-  () => {
-    console.info('JS_SetInterruptTime success');
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_SetInterruptTime failed');
-    // do you want...
-  }
-);
-

获取traceId:JS_GetTraceId(windowIndex)

-

说明:traceId是查询调用链的唯一标识,H5player不做调用链埋点,只拼接traceId,traceId建议在传入url的时候自行拼接,更方便应用层管理,h5player内部会检测无traceId时会默认拼接上
-拼接规则:取流url中无?则拼接?traceId=uuid(随机生成的一个id编号);有?则拼接&traceId=uuid
-示例:wss://10.19.147.57:6014/proxy/10.19.147.57:559/EUrl/SiSnW6z?traceId=d9d0766e3b3f7a41
-参数:

- - - - - - - - - - - - - - - - - -
参数名类型说明必需
windowIndexNumber窗口下标
-

返回:Promise

-
myPlugin.JS_GetTraceId(curIndex).then(
-  (traceId) => {
-    console.info('JS_GetTraceId success', traceId);
-    // do you want...
-  },
-  (err) => {
-    console.info('JS_GetTraceId failed');
-    // do you want...
-  }
-);
-

错误码及其描述

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
错误码描述
0x12f900001接口调用参数错误
0x12f900002不在播放状态
0x12f900003仅回放支持该功能
0x12f900004普通模式不支持该功能
0x12f900005高级模式不支持该功能
0x12f900006高级模式的解码库加载失败
0x12f900008url格式错误
0x12f900009取流超时错误
0x12f900010设置或者是获取音量失败,因为没有开启音频的窗口
0x12f900011设置的音量不在1-100范围
0x12f910000websocket连接失败,请检查网络是否通畅,URL是否正确
0x12f910010取流失败
0x12f910011流中断,电脑配置过低,程序卡主线程都可能导致流中断
0x12f910014没有音频数据
0x12f910015未找到对应websocket,取流套接字被动关闭的报错
0x12f910016websocket不在连接状态
0x12f910017不支持智能信息展示
0x12f910018websocket长时间未收到message
0x12f910019wss连接失败,原因:端口尚未开通、证书未安装、证书不安全
0x12f910020单帧回放时不能暂停
0x12f910021已是最大倍速
0x12f910022已是最小倍速
0x12f910023ws/wss连接超时,默认6s超时时间,原因:网络异常,网络不通
0x12f910026jsdecoder1.0解码报错视频编码格式不支持
0x12f910027后端取流超时,主动关闭连接(设备突然离线或重启,网络传输超时20s)
0x12f910028设置的缓冲区大小无效,大小0-510241024,不在该范围的报错
0x12f910029普通模式的报错,码流异常导致黑屏,尝试重新取流
0x12f910031普通模式下播放卡主会出现
0x12f910032码流编码格式普通模式下不支持,可切换高级模式尝试播放
0x12f920015未调用停止录像,再次调用开始录像
0x12f920016未开启录像调用停止录像接口错误
0x12f920017紧急录像目标格式不支持,非ps/mp4
0x12f920018紧急录像文件名为null
0x12f930010内存不足
0x12f930011首帧显示之前无法抓图,请稍后重试
0x12f950000采集音频失败,可能是在非https域下使用对讲导致
0x12f950001对讲不支持这种音频编码格式
-

FAQ

-

1.Q: Uncaught Error: Site or Page Not Found : http://localhost/Decoder.data
-A: 把 decoder.data 文件放在根目录下
-2.Q: 实测性能和给的性能数据不符,使用了chrome92版本,没有加跨域隔离导致
-A: http头增加跨域隔离,Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin 并在https环境下使用。

-
-
- - diff --git a/static/h5Player/doc/H5播放器功能性能说明.xlsx b/static/h5Player/doc/H5播放器功能性能说明.xlsx deleted file mode 100644 index 01a6645..0000000 Binary files a/static/h5Player/doc/H5播放器功能性能说明.xlsx and /dev/null differ diff --git a/static/tabs/工情——icon@2x.png b/static/tabs/gongqing.png similarity index 100% rename from static/tabs/工情——icon@2x.png rename to static/tabs/gongqing.png diff --git a/static/tabs/首页@2x.png b/static/tabs/home.png similarity index 100% rename from static/tabs/首页@2x.png rename to static/tabs/home.png diff --git a/static/tabs/首页2@2x.png b/static/tabs/home1.png similarity index 100% rename from static/tabs/首页2@2x.png rename to static/tabs/home1.png diff --git a/static/tabs/铃铛@2x.png b/static/tabs/ld.png similarity index 100% rename from static/tabs/铃铛@2x.png rename to static/tabs/ld.png diff --git a/static/tabs/头像_icon@2x.png b/static/tabs/touxiang.png similarity index 100% rename from static/tabs/头像_icon@2x.png rename to static/tabs/touxiang.png diff --git a/static/tabs/water (1) 拷贝@2x.png b/static/tabs/water.png similarity index 100% rename from static/tabs/water (1) 拷贝@2x.png rename to static/tabs/water.png diff --git a/static/tabs/形状 1@2x.png b/static/tabs/xingzhuang.png similarity index 100% rename from static/tabs/形状 1@2x.png rename to static/tabs/xingzhuang.png diff --git a/unpackage/dist/dev/app-plus/assets/uniicons.b6d3756e.ttf b/unpackage/dist/dev/app-plus/assets/uniicons.b6d3756e.ttf deleted file mode 100644 index 835f33b..0000000 Binary files a/unpackage/dist/dev/app-plus/assets/uniicons.b6d3756e.ttf and /dev/null differ