|
@@ -1861,10 +1861,17 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
case "broadcast_1":
|
|
case "broadcast_1":
|
|
boolean isPlay = false;
|
|
boolean isPlay = false;
|
|
needReDownload = false;
|
|
needReDownload = false;
|
|
|
|
+
|
|
|
|
+ //增加调试信息
|
|
|
|
+ tvBroadcasting.setVisibility(View.VISIBLE);
|
|
|
|
+ tvBroadcasting.setText("======广播开始播放======");
|
|
handler.removeMessages(RESET_BROADCAST_VIEW);
|
|
handler.removeMessages(RESET_BROADCAST_VIEW);
|
|
|
|
+ handler.sendEmptyMessageDelayed(RESET_BROADCAST_VIEW, 30000);
|
|
|
|
+
|
|
if (isDownloadMp3) {
|
|
if (isDownloadMp3) {
|
|
tvBroadcasting.setVisibility(View.VISIBLE);
|
|
tvBroadcasting.setVisibility(View.VISIBLE);
|
|
tvBroadcasting.setText("======音频文件正在下载中,请等待======");
|
|
tvBroadcasting.setText("======音频文件正在下载中,请等待======");
|
|
|
|
+ handler.removeMessages(RESET_BROADCAST_VIEW);
|
|
handler.sendEmptyMessageDelayed(RESET_BROADCAST_VIEW, 30000);
|
|
handler.sendEmptyMessageDelayed(RESET_BROADCAST_VIEW, 30000);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1919,6 +1926,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
.playMusic(Constants.URL + Constants.URL_END + "/"
|
|
.playMusic(Constants.URL + Constants.URL_END + "/"
|
|
+ broadCastEntity.getPath(), this, MediaPlayerManger.PLAY);
|
|
+ broadCastEntity.getPath(), this, MediaPlayerManger.PLAY);
|
|
}
|
|
}
|
|
|
|
+ handler.removeMessages(RESET_BROADCAST_VIEW);
|
|
|
|
|
|
/*if (!SharedPreferencesUtil.getStringSp(this, "SetUpBroadcastVoice", "voice").equals("")) {
|
|
/*if (!SharedPreferencesUtil.getStringSp(this, "SetUpBroadcastVoice", "voice").equals("")) {
|
|
float voice = Float.parseFloat(SharedPreferencesUtil.getStringSp(this, "SetUpBroadcastVoice", "voice"));
|
|
float voice = Float.parseFloat(SharedPreferencesUtil.getStringSp(this, "SetUpBroadcastVoice", "voice"));
|