Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

1.6 KB
Raw Blame
interface MediaContainer {
  Video?: Session[];
  Track?: Session[];
}

interface Stream {
  $: {
    streamType: string;
    codec?: string;
    language?: string;
    selected?: string;
    width?: string;
    height?: string;
    frameRate?: string;
    channels?: string;
  };
}

interface Part {
  Stream?: Stream[];
  $: {
    container?: string;
  };
}

interface Media {
  Part?: Part[];
  $: {
    videoResolution?: string;
    videoCodec?: string;
    audioCodec?: string;
    bitrate?: string;
    container?: string;
  };
}

interface TranscodeSession {
  $: {
    throttled?: string;
    progress?: string;
    speed?: string;
    videoDecision?: string;
    audioDecision?: string;
    sourceVideoCodec?: string;
    sourceAudioCodec?: string;
    videoCodec?: string;
    audioCodec?: string;
    container?: string;
    width?: string;
    height?: string;
  };
}

interface Session {
  User?: {
    $: {
      id: string;
      title: string;
      thumb?: string;
    };
  }[];
  Player?: {
    $: {
      product: string;
      title: string;
      address?: string;
      state?: string;
      local?: string;
    };
  }[];
  Session?: {
    $: {
      id: string;
      bandwidth?: string;
      location?: string;
    };
  }[];
  TranscodeSession?: TranscodeSession[];
  Media?: Media[];
  $: {
    grandparentTitle?: string;
    parentTitle?: string;
    parentIndex?: string;
    title?: string;
    index?: string;
    type: string;
    live?: string;
    viewOffset?: string;
    duration?: string;
  };
}

export interface PlexResponse {
  MediaContainer: MediaContainer;
}