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
李勇
2017-03-03 10:47:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34c00a392a820997bd0d7e57ad53f47ee08105eb
34c00a39
1 parent
38bf64e9
音频视频发送推流消息的时候需要加userId
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
src/apes/AudioApe.js
src/apes/VideoApe.js
src/apes/AudioApe.js
查看文件 @
34c00a3
...
...
@@ -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/VideoApe.js
查看文件 @
34c00a3
...
...
@@ -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
);
...
...
@@ -96,6 +96,7 @@ class VideoApe 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_VIDEO
;
this
.
sendTableUpdateHandler
(
channelInfo
);
return
{
"code"
:
ApeConsts
.
RETURN_SUCCESS
,
"data"
:
"推流成功!"
}
...
...
请
注册
或
登录
后发表评论