advertise the correct MediaType when transcoding
Some checks failed
Build for Android / build (push) Has been cancelled
Build for ARMv6 (32-bit) / build (push) Has been cancelled
Build for ARMv8 (64-bit) / build (push) Has been cancelled
Build for Linux / build (push) Has been cancelled
Build for MacOS Intel / build (push) Has been cancelled
Build for MacOS Apple Silicon / build (push) Has been cancelled
Build for Windows / build (push) Has been cancelled
Tests / build (push) Has been cancelled

some TVs fail if you send a Content-Type of the source file (matroska) follow by a transcoded body (mpeg ts)
This commit is contained in:
2025-03-14 09:39:44 +00:00
parent 9afa10dd2e
commit 3bbb98318d
3 changed files with 12 additions and 0 deletions

View File

@@ -137,6 +137,10 @@ func run() error {
absMediaFile = *urlArg
}
if *transcodePtr && strings.Contains(mediaType, "video") {
mediaType = "video/vnd.dlna.mpeg-tts"
}
absSubtitlesFile, err := filepath.Abs(*subsArg)
if err != nil {
return err

View File

@@ -136,6 +136,10 @@ func run() error {
absMediaFile = *urlArg
}
if *transcodePtr && strings.Contains(mediaType, "video") {
mediaType = "video/vnd.dlna.mpeg-tts"
}
absSubtitlesFile, err := filepath.Abs(*subsArg)
if err != nil {
return err

View File

@@ -339,6 +339,10 @@ func playAction(screen *FyneScreen) {
}
}
if screen.Transcode && strings.Contains(mediaType, "video") {
mediaType = "video/vnd.dlna.mpeg-tts"
}
if screen.SelectInternalSubs.Selected != "" {
for n, opt := range screen.SelectInternalSubs.Options {
if opt == screen.SelectInternalSubs.Selected {