@dolbyio/dolbyio-rest-apis-client
Version:
Node.JS wrapper for the Dolby OptiView REST APIs
27 lines (26 loc) • 1.1 kB
TypeScript
import { JwtToken } from './types/jwtToken';
import { TranscodeJob } from './types/transcode';
/**
* Starts Transcoding.
*
* Start transcoding to modify the size, bitrates, and formats for your media.
*
* @param accessToken Access token to use for authentication.
* @param jobContent Content of the job description as a JSON payload.
*
* @returns The job identifier through a {@link Promise}.
*/
export declare const start: (accessToken: JwtToken, jobContent: string) => Promise<string | null>;
/**
* Gets Transcode Results.
*
* For a given `jobId`, this method will check if the processing task has completed and return the transcode results.
*
* When the {@link TranscodeJob.status} is Success you'll be able to retrieve your result from the output location you provided in the original POST.
*
* @param accessToken Access token to use for authentication.
* @param jobId Identifier of the job to retrieve.
*
* @returns The {@link TranscodeJob} object through a {@link Promise}.
*/
export declare const getResults: (accessToken: JwtToken, jobId: string) => Promise<TranscodeJob>;