commit 21/05/2025
This commit is contained in:
@@ -899,14 +899,11 @@ public class CaptureView {
|
|||||||
TextAreaSetText(medicalRecordID,""+medrecid);
|
TextAreaSetText(medicalRecordID,""+medrecid);
|
||||||
TextAreaSetText(PatientName, pr.name);
|
TextAreaSetText(PatientName, pr.name);
|
||||||
|
|
||||||
if (audioTimeline!=null) audioTimeline.play();
|
// harusnya ganti ke Timeline, tapi belum tested
|
||||||
|
//if (audioTimeline!=null) audioTimeline.play();
|
||||||
|
|
||||||
if (audioPlayer!=null && audioPlayer.isInited()){
|
if (anti_bawel.get()) return;
|
||||||
if (!Objects.equals(audioPlayer.getCurrentFile(),audio_posisikan_muka)) {
|
PlayFileWithEvent(audio_posisikan_muka, new PlaybackStatus() {
|
||||||
if (!anti_bawel.get()){
|
|
||||||
audioPlayer.StopCurrentPlayback();
|
|
||||||
Wait(500);
|
|
||||||
audioPlayer.PlayFile(audio_posisikan_muka, new PlaybackStatus() {
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlaybackStarted(String filename) {
|
public void onPlaybackStarted(String filename) {
|
||||||
anti_bawel.set(true);
|
anti_bawel.set(true);
|
||||||
@@ -914,7 +911,6 @@ public class CaptureView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlaybackFinished(String filename) {
|
public void onPlaybackFinished(String filename) {
|
||||||
anti_bawel.set(false);
|
|
||||||
Thread antibawel = new Thread(()->{
|
Thread antibawel = new Thread(()->{
|
||||||
try {
|
try {
|
||||||
Thread.sleep(15*1000);
|
Thread.sleep(15*1000);
|
||||||
@@ -932,10 +928,6 @@ public class CaptureView {
|
|||||||
anti_bawel.set(false);
|
anti_bawel.set(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user