Initial Commit

This commit is contained in:
Luke Hagar
2024-01-01 15:47:37 -06:00
parent 203c48ae7c
commit f91c1e6f54
4519 changed files with 88021 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
## Get Transcode Sessions
Get Transcode Sessions

View File

@@ -0,0 +1,2 @@
{/* Autogenerated DO NOT EDIT */}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 */}