@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
58 lines (57 loc) • 3.1 kB
TypeScript
import { BaseAPI } from '../../../../../../../../common/BaseAPI';
import Configuration from '../../../../../../../../common/Configuration';
import ContentprotectionApi from './contentprotection/ContentprotectionApi';
import BitmovinResponse from '../../../../../../../../models/BitmovinResponse';
import DashFmp4DrmRepresentation from '../../../../../../../../models/DashFmp4DrmRepresentation';
import PaginationResponse from '../../../../../../../../models/PaginationResponse';
import { DashFmp4DrmRepresentationListQueryParams, DashFmp4DrmRepresentationListQueryParamsBuilder } from './DashFmp4DrmRepresentationListQueryParams';
/**
* DrmApi - object-oriented interface
* @export
* @class DrmApi
* @extends {BaseAPI}
*/
export default class DrmApi extends BaseAPI {
contentprotection: ContentprotectionApi;
constructor(configuration: Configuration);
/**
* @summary Add DRM fMP4 Representation
* @param {string} manifestId Id of the manifest
* @param {string} periodId Id of the period
* @param {string} adaptationsetId Id of the adaptation set
* @param {DashFmp4DrmRepresentation} dashFmp4DrmRepresentation The DRM fMP4 representation to be added to the adaptation set
* @throws {BitmovinError}
* @memberof DrmApi
*/
create(manifestId: string, periodId: string, adaptationsetId: string, dashFmp4DrmRepresentation?: DashFmp4DrmRepresentation): Promise<DashFmp4DrmRepresentation>;
/**
* @summary Delete DRM fMP4 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 DRM fMP4 representation to be deleted
* @throws {BitmovinError}
* @memberof DrmApi
*/
delete(manifestId: string, periodId: string, adaptationsetId: string, representationId: string): Promise<BitmovinResponse>;
/**
* @summary DRM fMP4 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 DrmApi
*/
get(manifestId: string, periodId: string, adaptationsetId: string, representationId: string): Promise<DashFmp4DrmRepresentation>;
/**
* @summary List all DRM fMP4 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 DrmApi
*/
list(manifestId: string, periodId: string, adaptationsetId: string, queryParameters?: DashFmp4DrmRepresentationListQueryParams | ((q: DashFmp4DrmRepresentationListQueryParamsBuilder) => DashFmp4DrmRepresentationListQueryParamsBuilder)): Promise<PaginationResponse<DashFmp4DrmRepresentation>>;
}