DeveloperAPI ReferenceAdapterJellyfinItemsItemidPlaybackinfo
Negotiate playback for an item
Returns the item's available MediaSources[] with embedded MediaStreams[]. v1 advertises direct-play and direct-stream only — TranscodingUrl is always null. Clients that cannot direct-play the codecs Aviato has on disk will refuse to start playback until transcoding support lands.
Path Parameters
itemId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/adapter/jellyfin/Items/string/PlaybackInfo" \ -H "Content-Type: application/json" \ -d '{ "property1": null, "property2": null }'{
"MediaSources": [
{
"Id": "string",
"Name": "string",
"Path": "string",
"Protocol": "File",
"Type": "Default",
"Container": "string",
"Size": 0,
"Bitrate": 0,
"RunTimeTicks": 0,
"MediaStreams": [
{
"Type": "Audio",
"Index": 0,
"Codec": "string",
"CodecTag": "string",
"Profile": "string",
"Language": "string",
"DisplayTitle": "string",
"Title": "string",
"IsDefault": true,
"IsForced": true,
"IsExternal": true,
"Width": 0,
"Height": 0,
"AspectRatio": "string",
"AverageFrameRate": 0,
"RealFrameRate": 0,
"PixelFormat": "string",
"ColorSpace": "string",
"ColorTransfer": "string",
"ColorPrimaries": "string",
"Level": 0,
"Channels": 0,
"ChannelLayout": "string",
"SampleRate": 0,
"BitRate": 0,
"DeliveryUrl": "string",
"DeliveryMethod": "string",
"property1": null,
"property2": null
}
],
"DefaultAudioStreamIndex": 0,
"DefaultSubtitleStreamIndex": 0,
"DirectStreamUrl": "string",
"TranscodingUrl": "string",
"TranscodingSubProtocol": "string",
"TranscodingContainer": "string",
"IsRemote": true,
"ETag": "string",
"ReadAtNativeFramerate": true,
"IgnoreDts": true,
"IgnoreIndex": true,
"GenPtsInput": true,
"SupportsTranscoding": true,
"SupportsDirectStream": true,
"SupportsDirectPlay": true,
"IsInfiniteStream": true,
"RequiresOpening": true,
"RequiresClosing": true,
"RequiresLooping": true,
"SupportsProbing": true,
"MediaAttachments": [
null
],
"Formats": [
"string"
],
"VideoType": "string",
"property1": null,
"property2": null
}
],
"PlaySessionId": "string",
"ErrorCode": "string"
}{
"error": "string"
}