From de0237ca2e2e6c2fe46b5f89727c16c679b4df1e Mon Sep 17 00:00:00 2001 From: Laptander Date: Sun, 19 Jun 2016 14:12:22 +0300 Subject: add AUDIO_CODEC variable --- prepare-videochat.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 51013d4..e19e94d 100644 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -137,6 +137,8 @@ HEIGHT=480 # Frame rate of video GST_FPS=5 +# Choose audio codec from wav, aac or opus +AUDIO_CODEC=opus ### FUNCTIONS @@ -337,7 +339,7 @@ fi # Remind the user to open up IP Webcam and start the server BASE_URL=http://$IP:$PORT VIDEO_URL=$BASE_URL/videofeed -AUDIO_URL=$BASE_URL/audio.wav +AUDIO_URL=$BASE_URL/audio.$AUDIO_CODEC if phone_plugged && ! iw_server_is_started; then # If the phone is plugged to USB and we have ADB, we can start the server by sending an intent start_iw_server -- cgit v1.2.3