summaryrefslogtreecommitdiff
path: root/prepare-videochat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prepare-videochat.sh')
-rw-r--r--prepare-videochat.sh4
1 files changed, 3 insertions, 1 deletions
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