UniversalMediaServer / UniversalMediaServer/UniversalMediaServer

MIMETYPE_AUTO set into the DIDL-Lite string !

Open
#1,377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug:confirmed
Dominant language
Java
Stars
2.7k
Forks
528
Avg merge
2d 22h
Merged PRs (30d)
23

Description

While no MIME type is specified in the renderer's configuration line used for the transcoding, it just set http-get:*:MIMETYPE_AUTO into the DIDL-Lite string with the result that you can expect...

"Automatic" is a big word, as that seem only use the existing MIME type parameter already existing into the configuration file, but do not automatically select the correct one from HTTPResource depending on the transcoded format used by the renderer.

It's look as a flaw in the code to me.

EDIT:
https://github.com/UniversalMediaServer/UniversalMediaServer/blob/master/src/main/java/net/pms/remote/RemotePlayHandler.java#L124-L128
And in the case of a supported file:
https://github.com/UniversalMediaServer/UniversalMediaServer/blob/master/src/main/java/net/pms/dlna/DLNAResource.java#L997-L1014

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/main/java/net/pms/remote/RemotePlayHandler.java at lines 124-128 and compare it with the supported-file path in src/main/java/net/pms/dlna/DLNAResource.java at lines 997-1014. Verify how an unspecified MIME type is placed in the DIDL-Lite string, then confirm that the result uses the correct MIME type for the transcoded format rather than MIMETYPE_AUTO.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.