Files
plexjs/docs/sdk/models/operations/gettimelinerequest.md
2024-09-08 03:06:14 +00:00

4.1 KiB

GetTimelineRequest

Example Usage

import { GetTimelineRequest, State } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetTimelineRequest = {
    ratingKey: 23409,
    key: "/library/metadata/23409",
    state: State.Playing,
    hasMDE: 1,
    time: 2000,
    duration: 10000,
    context: "home:hub.continueWatching",
    playQueueItemID: 1,
    playBackTime: 2000,
    row: 1,
};

Fields

Field Type Required Description Example
ratingKey number ✔️ The rating key of the media item 23409
key string ✔️ The key of the media item to get the timeline for /library/metadata/23409
state operations.State ✔️ The state of the media item playing
hasMDE number ✔️ Whether the media item has MDE 1
time number ✔️ The time of the media item 2000
duration number ✔️ The duration of the media item 10000
context string ✔️ The context of the media item home:hub.continueWatching
playQueueItemID number ✔️ The play queue item ID of the media item 1
playBackTime number ✔️ The playback time of the media item 2000
row number ✔️ The row of the media item 1