Closed groupmsl closed 11 months ago
(Tested (and used for the past 9 months) on a number of Yamaha hifi devices)
I could have used the "MimeType" of the resource in the *.dms.json, but I decided not do, as "Resources" is an array/list, so I would need to parse all items to check for the type of all of them. If you think this would be better, let me know. If so, I assume we would export as video unless all resources in a given file were audio?
I think you made a good call here. It would be ambiguous and fickle to try to determine it from the Resources or from Title. If dynamic streams were built from a single input file it would make sense, but this is not the case (this is the first thing I verified).
Great work, thank you!
I wanted to use DMS to transcode a radio stream that isn't compatible with my older internet radio. Previously all dynamic streams were treated as video content, regardless of the content.
This adds a new parameter to the *.dms.json format. "Type", which specifies whether it should be exported over DLNA as video or audio. If omitted it defaults to video, to remain backward compatible.
I could have used the "MimeType" of the resource in the *.dms.json, but I decided not do, as "Resources" is an array/list, so I would need to parse all items to check for the type of all of them. If you think this would be better, let me know. If so, I assume we would export as video unless all resources in a given file were audio?