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

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

@@ -127,6 +127,16 @@ public class MogoStatusManager implements IMogoStatusManager {
return get_bool_val(StatusDescriptor.TOP_VIEW);
}
@Override
public boolean isMediaPlaying() {
return get_bool_val( StatusDescriptor.MEDIA_PLAYER_STATUS );
}
@Override
public void setMediaPlayStatus(String tag, boolean status) {
doSetStatus(tag, StatusDescriptor.MEDIA_PLAYER_STATUS, status);
}
private boolean get_bool_val(StatusDescriptor descriptor ) {
Boolean val = mStatus.get( descriptor );
return val == null ? false : val;