@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
58 lines (57 loc) • 3.03 kB
TypeScript
import { BaseAPI } from '../../../../../../../common/BaseAPI';
import Configuration from '../../../../../../../common/Configuration';
import ContentprotectionApi from './contentprotection/ContentprotectionApi';
import BitmovinResponse from '../../../../../../../models/BitmovinResponse';
import DashWebmRepresentation from '../../../../../../../models/DashWebmRepresentation';
import PaginationResponse from '../../../../../../../models/PaginationResponse';
import { DashWebmRepresentationListQueryParams, DashWebmRepresentationListQueryParamsBuilder } from './DashWebmRepresentationListQueryParams';
/**
* WebmApi - object-oriented interface
* @export
* @class WebmApi
* @extends {BaseAPI}
*/
export default class WebmApi extends BaseAPI {
contentprotection: ContentprotectionApi;
constructor(configuration: Configuration);
/**
* @summary Add WebM Representation
* @param {string} manifestId Id of the manifest
* @param {string} periodId Id of the period
* @param {string} adaptationsetId Id of the adaptation set
* @param {DashWebmRepresentation} dashWebmRepresentation The WebM representation to be added to the adaptation set
* @throws {BitmovinError}
* @memberof WebmApi
*/
create(manifestId: string, periodId: string, adaptationsetId: string, dashWebmRepresentation?: DashWebmRepresentation): Promise<DashWebmRepresentation>;
/**
* @summary Delete WebM Representation
* @param {string} manifestId Id of the manifest
* @param {string} periodId Id of the period
* @param {string} adaptationsetId Id of the adaptation set
* @param {string} representationId Id of the WebM representation to be deleted
* @throws {BitmovinError}
* @memberof WebmApi
*/
delete(manifestId: string, periodId: string, adaptationsetId: string, representationId: string): Promise<BitmovinResponse>;
/**
* @summary WebM Representation Details
* @param {string} manifestId Id of the manifest
* @param {string} periodId Id of the period
* @param {string} adaptationsetId Id of the adaptation set
* @param {string} representationId Id of the representation
* @throws {BitmovinError}
* @memberof WebmApi
*/
get(manifestId: string, periodId: string, adaptationsetId: string, representationId: string): Promise<DashWebmRepresentation>;
/**
* @summary List all WebM Representations
* @param {string} manifestId Id of the manifest
* @param {string} periodId Id of the period
* @param {string} adaptationsetId Id of the adaptation set
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
* @throws {BitmovinError}
* @memberof WebmApi
*/
list(manifestId: string, periodId: string, adaptationsetId: string, queryParameters?: DashWebmRepresentationListQueryParams | ((q: DashWebmRepresentationListQueryParamsBuilder) => DashWebmRepresentationListQueryParamsBuilder)): Promise<PaginationResponse<DashWebmRepresentation>>;
}