feat(media): forward the audio copy format to CarrierNode
The stream proxy passes format=mp3 through, so an audio file browsers cannot play (WMA) can be served as an MP3 copy that CarrierNode makes once and keeps. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5745995a34
commit
cf19a057c5
2 files changed
+4
-2
No files matched your search
@@ -136,6 +136,7 @@ func TestStreamUpstreamPathForwardsOnlyLiveTranscodeOptions(t *testing.T) {
|
||||
{"blank options are dropped", url.Values{"quality": {" "}, "start": {""}}, "/media/Videos/clip.mp4"},
|
||||
{"quality and start are forwarded", url.Values{"mediaKey": {"abc"}, "quality": {"1080"}, "start": {" 12.5 "}}, "/media/Videos/clip.mp4?quality=1080&start=12.5"},
|
||||
{"quality alone", url.Values{"quality": {"720"}}, "/media/Videos/clip.mp4?quality=720"},
|
||||
{"format is forwarded for audio copies", url.Values{"mediaKey": {"abc"}, "format": {"mp3"}}, "/media/Videos/clip.mp4?format=mp3"},
|
||||
} {
|
||||
if got := streamUpstreamPath("Videos/clip.mp4", tc.query); got != tc.want {
|
||||
t.Errorf("%s: streamUpstreamPath() = %q, want %q", tc.name, got, tc.want)
|
||||
|
||||
Reference in new issue
Block a user