Aufzeichnung ohne Audio
This commit is contained in:
parent
f56973547b
commit
f1f90952d2
@ -65,17 +65,17 @@ public class AlarmRecorder {
|
|||||||
setVideoPath(videoPath);
|
setVideoPath(videoPath);
|
||||||
setVideoRecorderPreviewHolder(previewHolder);
|
setVideoRecorderPreviewHolder(previewHolder);
|
||||||
|
|
||||||
audioThread = new Thread(audioRecorderRunnable);
|
//audioThread = new Thread(audioRecorderRunnable);
|
||||||
videoThread = new Thread(videoRecorderRunnable);
|
videoThread = new Thread(videoRecorderRunnable);
|
||||||
|
|
||||||
//Threads starten
|
//Threads starten
|
||||||
videoThread.start();
|
videoThread.start();
|
||||||
audioThread.start();
|
//audioThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stopRecording(Context context) {
|
public void stopRecording(Context context) {
|
||||||
try {
|
try {
|
||||||
stopAudioRecording();
|
//stopAudioRecording();
|
||||||
stopVideoRecording();
|
stopVideoRecording();
|
||||||
|
|
||||||
Toast.makeText(context, "Video- und Audioaufzeichnung beendet", Toast.LENGTH_SHORT).show();
|
Toast.makeText(context, "Video- und Audioaufzeichnung beendet", Toast.LENGTH_SHORT).show();
|
||||||
@ -86,7 +86,7 @@ public class AlarmRecorder {
|
|||||||
|
|
||||||
if (videoFile.exists() && audioFile.exists()) {
|
if (videoFile.exists() && audioFile.exists()) {
|
||||||
//Wenn Video- und Audioaufzeichnung gestoppt und abgespeichert sind, beginne mit dem Mergeprozess der beiden
|
//Wenn Video- und Audioaufzeichnung gestoppt und abgespeichert sind, beginne mit dem Mergeprozess der beiden
|
||||||
mergeVideoWithAudio();
|
// mergeVideoWithAudio();
|
||||||
Toast.makeText(context, "Video und Audio erfolgreich zusammengeführt", Toast.LENGTH_SHORT).show();
|
Toast.makeText(context, "Video und Audio erfolgreich zusammengeführt", Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(context, "Dateien wurden nicht gefunden!", Toast.LENGTH_SHORT).show();
|
Toast.makeText(context, "Dateien wurden nicht gefunden!", Toast.LENGTH_SHORT).show();
|
||||||
|
@ -10,9 +10,10 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public class AudioRecorder implements Runnable {
|
public class AudioRecorder implements Runnable {
|
||||||
|
|
||||||
private MediaRecorder audioRecorder = null;
|
private MediaRecorder audioRecorder;
|
||||||
private String audioPath;
|
private String audioPath;
|
||||||
public AudioRecorder() {
|
public AudioRecorder() {
|
||||||
|
audioRecorder = new MediaRecorder();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAudioPath(String audioPath) {
|
public void setAudioPath(String audioPath) {
|
||||||
|
@ -55,7 +55,7 @@ public class WiFiCommunication {
|
|||||||
}
|
}
|
||||||
public void setRecievedSting(String rxString) {
|
public void setRecievedSting(String rxString) {
|
||||||
this.rxString = rxString;
|
this.rxString = rxString;
|
||||||
mDeviceRepository.getNewReceivedMessage(this.rxString);
|
//mDeviceRepository.getNewReceivedMessage(this.rxString);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNewMessage(String newMessage, boolean isNewMessage){
|
public void setNewMessage(String newMessage, boolean isNewMessage){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user