Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
李勇
/
McuClient
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李勇
8 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d7d0e75e6db46027b081d3298575afa6348037c9
d7d0e75e
1 parent
c76efa0c
1.文档修改获取图片序列页码的问题,页码从1开始
2.视频和音频同步推流消息的时候缺少userID,添加这个字段
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
6 行增加
和
3 行删除
src/apes/AudioApe.js
src/apes/DocApe.js
src/apes/VideoApe.js
src/apes/AudioApe.js
查看文件 @
d7d0e75
...
...
@@ -58,7 +58,7 @@ class AudioApe extends Ape {
}
if
(
_param
==
null
||
_param
.
channelId
==
null
||
_param
.
classId
==
null
||
_param
.
userId
==
null
||
_param
.
classId
==
null
||
_param
.
userId
==
null
||
_param
.
userId
==
""
||
_param
.
siteId
==
null
||
_param
.
timestamp
==
null
)
{
loger
.
warn
(
'publishAudio,参数错误'
,
_param
);
...
...
@@ -93,6 +93,7 @@ class AudioApe extends Ape {
channelInfo
.
classId
=
_param
.
classId
;
//GlobalConfig.classId;
channelInfo
.
siteId
=
_param
.
siteId
;
//GlobalConfig.siteId;
channelInfo
.
toNodeId
=
0
;
channelInfo
.
userId
=
_param
.
userId
;
channelInfo
.
mediaType
=
ApeConsts
.
MEDIA_TYPE_AUDIO
;
this
.
sendTableUpdateHandler
(
channelInfo
);
return
{
"code"
:
ApeConsts
.
RETURN_SUCCESS
,
"data"
:
"推流成功!"
}
...
...
src/apes/DocApe.js
查看文件 @
d7d0e75
...
...
@@ -171,7 +171,7 @@ class DocApe extends Ape {
if
(
lastIndex
>
0
){
let
newPath
=
fullPath
.
substr
(
0
,
lastIndex
);
let
pathArr
=
[];
for
(
let
i
=
1
;
i
<
_param
.
pageNum
;
i
++
){
for
(
let
i
=
1
;
i
<
=
_param
.
pageNum
;
i
++
){
pathArr
.
push
(
newPath
+
"/"
+
i
+
"."
+
fileType
);
}
return
pathArr
;
...
...
src/apes/VideoApe.js
查看文件 @
d7d0e75
...
...
@@ -59,7 +59,7 @@ class VideoApe extends Ape {
}
if
(
_param
==
null
||
_param
.
channelId
==
null
||
_param
.
classId
==
null
||
_param
.
userId
==
null
||
_param
.
classId
==
null
||
_param
.
userId
==
null
||
_param
.
userId
==
""
||
_param
.
siteId
==
null
||
_param
.
timestamp
==
null
)
{
loger
.
warn
(
'publishVideo,参数错误'
,
_param
);
...
...
@@ -97,6 +97,8 @@ class VideoApe extends Ape {
channelInfo
.
siteId
=
_param
.
siteId
;
//GlobalConfig.siteId;
channelInfo
.
toNodeId
=
0
;
channelInfo
.
mediaType
=
ApeConsts
.
MEDIA_TYPE_VIDEO
;
channelInfo
.
userId
=
_param
.
userId
;
this
.
sendTableUpdateHandler
(
channelInfo
);
return
{
"code"
:
ApeConsts
.
RETURN_SUCCESS
,
"data"
:
"推流成功!"
}
}
...
...
请
注册
或
登录
后发表评论