diff options
author | Laptander <dev-laptander@yandex.ru> | 2016-06-19 14:12:22 +0300 |
---|---|---|
committer | Laptander <dev-laptander@yandex.ru> | 2016-06-19 14:12:22 +0300 |
commit | de0237ca2e2e6c2fe46b5f89727c16c679b4df1e (patch) | |
tree | a0d278ec1aa29965874a16a5aa511419471350e6 | |
parent | b2e8dca73be9b59e3461455ffe3e586f43a620cb (diff) |
add AUDIO_CODEC variable
-rw-r--r-- | prepare-videochat.sh | 4 |
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 |