mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
Video
(Video)
Overview
API Calls that perform operations with Plex Media Server Videos
Available Operations
- StartUniversalTranscode - Start Universal Transcode
- GetTimeline - Get the timeline for a media item
StartUniversalTranscode
Begin a Universal Transcode Session
Example Usage
using PlexAPI;
using PlexAPI.Models.Components;
using PlexAPI.Models.Requests;
var sdk = new PlexAPISDK(security: new Models.Components.Security() {
AccessToken = "<YOUR_API_KEY_HERE>",
});
StartUniversalTranscodeRequest req = new StartUniversalTranscodeRequest() {
HasMDE = 8924.99D,
Path = "/etc/mail",
MediaIndex = 9962.95D,
PartIndex = 1232.82D,
Protocol = "string",
};
var res = await sdk.Video.StartUniversalTranscodeAsync(req);
// handle response
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request |
StartUniversalTranscodeRequest | ✔️ | The request object to use for the request. |
Response
StartUniversalTranscodeResponse
GetTimeline
Get the timeline for a media item
Example Usage
using PlexAPI;
using PlexAPI.Models.Components;
using PlexAPI.Models.Requests;
var sdk = new PlexAPISDK(security: new Models.Components.Security() {
AccessToken = "<YOUR_API_KEY_HERE>",
});
GetTimelineRequest req = new GetTimelineRequest() {
RatingKey = 716.56D,
Key = "<key>",
State = State.Paused,
HasMDE = 7574.33D,
Time = 3327.51D,
Duration = 7585.39D,
Context = "string",
PlayQueueItemID = 1406.21D,
PlayBackTime = 2699.34D,
Row = 3536.42D,
};
var res = await sdk.Video.GetTimelineAsync(req);
// handle response
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request |
GetTimelineRequest | ✔️ | The request object to use for the request. |