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 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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user