添加媒体播放状态改变监听

This commit is contained in:
tongchenfei
2020-11-17 10:08:58 +08:00
parent eafd78f107
commit 199976c153
4 changed files with 34 additions and 2 deletions

View File

@@ -116,6 +116,19 @@ public interface IMogoStatusManager extends IProvider {
*/
boolean isMainPageLaunched();
/**
* 媒体是否正在播放
* @return true - 正在播放 false - 没有播放
*/
boolean isMediaPlaying();
/**
* 设置媒体播放状态
* @param tag 业务类型
* @param status true - 正在播放 false - 未在播放
*/
void setMediaPlayStatus(String tag, boolean status);
/**
* 设置topView展示状态
* @param tag 业务类型

View File

@@ -82,5 +82,9 @@ public enum StatusDescriptor {
/**
* topView展示状态
*/
TOP_VIEW
TOP_VIEW,
/**
* 媒体播放状态
*/
MEDIA_PLAYER_STATUS
}