0.2.57 - Traliers bug fixes
This commit is contained in:
@@ -11,6 +11,14 @@ package emby
|
||||
|
||||
import "strconv"
|
||||
|
||||
// deviceProfileName is what Emby records against a playback session, and it appears in
|
||||
// the dashboard's device and playback lists. It is the client identity on the wire, not
|
||||
// the product name — it read as "Memby Android TV" there, which is exactly the name that
|
||||
// has no business travelling to somebody else's logs — and it must match the literal the
|
||||
// television sends on the direct path (DeviceProfile.embyAndroidTv), or one set playing
|
||||
// both ways appears twice.
|
||||
const deviceProfileName = "MbyATV"
|
||||
|
||||
var alwaysDecodableAudioCodecs = []string{
|
||||
"aac", "mp3", "flac", "opus", "vorbis", "pcm_s16le", "pcm_s24le",
|
||||
}
|
||||
@@ -44,7 +52,7 @@ func androidTVDeviceProfile(capabilities PlaybackCapabilities) map[string]any {
|
||||
audioCodecs := directPlayAudioCodecs(capabilities)
|
||||
transcodeAudio := transcodeAudioCodecs(capabilities)
|
||||
return map[string]any{
|
||||
"Name": "Memby Android TV", "SupportedMediaTypes": "Video",
|
||||
"Name": deviceProfileName, "SupportedMediaTypes": "Video",
|
||||
"DirectPlayProfiles": []map[string]string{
|
||||
{
|
||||
"Container": "mkv,mp4,m4v,mov,ts,mpegts", "VideoCodec": videoCodecs,
|
||||
|
||||
Reference in New Issue
Block a user