add app url and device information to device profile

This commit is contained in:
Charles Ewert 2023-09-03 19:45:00 -04:00
parent 4c303daedf
commit 2d9dcd26b4

View File

@ -13,7 +13,10 @@ function getDeviceCapabilities() as object
"SupportedCommands": [], "SupportedCommands": [],
"SupportsPersistentIdentifier": false, "SupportsPersistentIdentifier": false,
"SupportsMediaControl": false, "SupportsMediaControl": false,
"DeviceProfile": getDeviceProfile() "SupportsContentUploading": false,
"SupportsSync": false,
"DeviceProfile": getDeviceProfile(),
"AppStoreUrl": "https://channelstore.roku.com/details/cc5e559d08d9ec87c5f30dcebdeebc12/jellyfin"
} }
end function end function
@ -278,6 +281,22 @@ function getDeviceProfile() as object
DirectPlayProfile = GetDirectPlayProfiles() DirectPlayProfile = GetDirectPlayProfiles()
deviceProfile = { deviceProfile = {
"Name": "Official Roku Client",
"Id": m.global.device.id,
"Identification": {
"FriendlyName": m.global.device.friendlyName,
"ModelNumber": m.global.device.model,
"SerialNumber": "string",
"ModelName": m.global.device.name,
"ModelDescription": "Type: " + m.global.device.modelType,
"Manufacturer": m.global.device.modelDetails.VendorName
},
"FriendlyName": m.global.device.friendlyName,
"Manufacturer": m.global.device.modelDetails.VendorName,
"ModelName": m.global.device.name,
"ModelDescription": "Type: " + m.global.device.modelType,
"ModelNumber": m.global.device.model,
"SerialNumber": m.global.device.serial,
"MaxStreamingBitrate": 120000000, "MaxStreamingBitrate": 120000000,
"MaxStaticBitrate": 100000000, "MaxStaticBitrate": 100000000,
"MusicStreamingTranscodingBitrate": 192000, "MusicStreamingTranscodingBitrate": 192000,
@ -285,18 +304,17 @@ function getDeviceProfile() as object
"TranscodingProfiles": [], "TranscodingProfiles": [],
"ContainerProfiles": [], "ContainerProfiles": [],
"CodecProfiles": [ "CodecProfiles": [
' { {
' "Type": "VideoAudio", "Type": "VideoAudio",
' "Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list "Conditions": [
' "Conditions": [ {
' { "Condition": "LessThanEqual",
' "Condition": "LessThanEqual", "Property": "AudioChannels",
' "Property": "AudioChannels", "Value": maxAudioChannels,
' "Value": maxAudioChannels, "IsRequired": false
' "IsRequired": false }
' } ]
' ] }
' }
], ],
"SubtitleProfiles": [ "SubtitleProfiles": [
{ {
@ -364,7 +382,7 @@ function getDeviceProfile() as object
"AudioCodec": "mp3", "AudioCodec": "mp3",
"Context": "Streaming", "Context": "Streaming",
"Protocol": "http", "Protocol": "http",
"MaxAudioChannels": "2" "MaxAudioChannels": maxAudioChannels
}) })
deviceProfile.TranscodingProfiles.push({ deviceProfile.TranscodingProfiles.push({
"Container": "mp3", "Container": "mp3",
@ -372,9 +390,10 @@ function getDeviceProfile() as object
"AudioCodec": "mp3", "AudioCodec": "mp3",
"Context": "Static", "Context": "Static",
"Protocol": "http", "Protocol": "http",
"MaxAudioChannels": "2" "MaxAudioChannels": maxAudioChannels
}) })
' add aac to TranscodingProfile for stereo audio ' add aac to TranscodingProfile for stereo audio
' NOTE: multichannel aac is not supported. only decode to stereo on some devices
deviceProfile.TranscodingProfiles.push({ deviceProfile.TranscodingProfiles.push({
"Container": "ts", "Container": "ts",
"Type": "Audio", "Type": "Audio",