This commit is contained in:
legop3
2025-11-29 23:06:57 -05:00
parent 12ba219773
commit 305becec38
4 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ func UpdatePublisherEnv(media MediaConfig, audio AudioConfig) error {
fmt.Fprintf(&buf, "VIDEO_FPS=%d\n", media.VideoFPS)
fmt.Fprintf(&buf, "VIDEO_BITRATE=%d\n", media.VideoBitrate)
audioDevice := audio.CaptureDevice
if audioDevice == "" {
audioDevice = "rovermic"
if audioDevice == "" || audioDevice == "rovermic" {
audioDevice = "hw:0,0"
}
if audio.SampleRate <= 0 {
audio.SampleRate = 48000