import * as Hex from "../../common/hex" import { type Track, decodeTrack } from "./track" export interface Video { track: Track codec: string description?: Uint8Array bitrate?: number frame_rate?: number resolution: Dimensions } export interface Dimensions { width: number height: number } export function decodeVideo(o: unknown): o is Video { if (typeof o !== "object" || o === null) return false const obj = o as Partial