mirror of
https://github.com/LukeHagar/plex-sdk-docs.git
synced 2025-12-08 12:37:46 +00:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
## Get Transcode Sessions
|
||||
|
||||
Get Transcode Sessions
|
||||
@@ -0,0 +1,2 @@
|
||||
{/* Autogenerated DO NOT EDIT */}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{/* Autogenerated DO NOT EDIT */}
|
||||
import GetTranscodeSessionsResponse from "/content/types/models/operations/get_transcode_sessions_response/python.mdx"
|
||||
import Collapsible from "/src/components/Collapsible";
|
||||
import Labels from "/src/lib/labels";
|
||||
|
||||
##### *{`operations.GetTranscodeSessionsResponse`}*
|
||||
<Collapsible defaultOpen openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
|
||||
<GetTranscodeSessionsResponse/>
|
||||
</Collapsible>
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
<CH.Code>
|
||||
```python GetTranscodeSessions.py
|
||||
import sdk
|
||||
|
||||
s = sdk.SDK(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
|
||||
|
||||
res = s.sessions.get_transcode_sessions()
|
||||
|
||||
if res.object is not None:
|
||||
# handle response
|
||||
pass
|
||||
```
|
||||
---
|
||||
|
||||
```json Example Response
|
||||
{
|
||||
"MediaContainer": {
|
||||
"size": 1,
|
||||
"TranscodeSession": [
|
||||
{
|
||||
"key": "zz7llzqlx8w9vnrsbnwhbmep",
|
||||
"throttled": false,
|
||||
"complete": false,
|
||||
"progress": 0.4000000059604645,
|
||||
"size": -22,
|
||||
"speed": 22.399999618530273,
|
||||
"error": false,
|
||||
"duration": 2561768,
|
||||
"context": "streaming",
|
||||
"sourceVideoCodec": "h264",
|
||||
"sourceAudioCodec": "ac3",
|
||||
"videoDecision": "transcode",
|
||||
"audioDecision": "transcode",
|
||||
"protocol": "http",
|
||||
"container": "mkv",
|
||||
"videoCodec": "h264",
|
||||
"audioCodec": "opus",
|
||||
"audioChannels": 2,
|
||||
"transcodeHwRequested": false,
|
||||
"timeStamp": 1681869535.7764285,
|
||||
"maxOffsetAvailable": 861.778,
|
||||
"minOffsetAvailable": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
</CH.Code>
|
||||
@@ -0,0 +1,12 @@
|
||||
import CurlHeader from './_header.mdx';
|
||||
import SDKHeader from './_header.mdx';
|
||||
import OperationHeader from '/src/components/OperationHeader';
|
||||
|
||||
###### *Sessions*
|
||||
|
||||
<OperationHeader
|
||||
sdkHeader={<SDKHeader />}
|
||||
curlHeader={<CurlHeader />}
|
||||
/>
|
||||
|
||||
{/* render operation */}
|
||||
Reference in New Issue
Block a user