Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
bf1f50c9
Commit
bf1f50c9
authored
Dec 05, 2019
by
何天远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制 离开 频道次数
parent
15b199b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+10
-5
No files found.
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
bf1f50c9
...
...
@@ -163,6 +163,8 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
//频道管理器
private
var
channelManager
:
ChannelManager
?
=
null
private
var
isLeavelChannel
:
Boolean
=
false
/**
* 声网事件回调 (SDK 通过指定的事件通知应用程序 SDK 的运行事件,如: 加入或离开频道,新用户加入频道等)
*/
...
...
@@ -932,11 +934,14 @@ class AudioHomeActivity : BaseMvpActivity<IAudioHomeActivityContract.View, IAudi
* 声网离开频道
*/
private
fun
leaveChannel
()
{
//刷新h5页面
EventBus
.
getDefault
().
post
(
RefreshWebEvent
(
false
))
stopPlaying
()
//播放结束音频
playFinishMusic
()
if
(!
isLeavelChannel
)
{
isLeavelChannel
=
true
//刷新h5页面
EventBus
.
getDefault
().
post
(
RefreshWebEvent
(
false
))
stopPlaying
()
//播放结束音频
playFinishMusic
()
}
}
override
fun
onResume
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment