We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 434b808 commit bd2203aCopy full SHA for bd2203a
src/video/domain.ts
@@ -217,8 +217,8 @@ export interface CreatePlaybackIdParams {
217
218
export interface CreateTrackParams {
219
url: string;
220
- type: 'text';
221
- text_type: 'subtitles';
+ type: 'text' | 'audio';
+ text_type?: 'subtitles';
222
language_code: string;
223
name?: string;
224
closed_captions?: boolean;
src/video/resources/assets.ts
@@ -265,7 +265,7 @@ export class Assets extends Base {
265
}
266
267
if (!params) {
268
- return Promise.reject(new Error('Text track params are required'));
+ return Promise.reject(new Error('Track params are required'));
269
270
return this.http.post(`${buildBasePath(assetId)}/tracks`, params);
271
0 commit comments