Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com>
  • Loading branch information
littlespex committed Jan 22, 2025
1 parent 7a13626 commit dfe16d2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lib/src/isobmff/parsers/vttC.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { IsoView } from '../IsoView.js';

/**
* ISO/IEC 14496-30:2014 - WebVTT Configuration Box
*
* @group ISOBMFF
*
* @beta
*/
export type WebVTTConfigurationBox = {
config: string;
};

/**
* Parse a WebVTTConfigurationBox from an IsoView
*
* @param view - The IsoView to read data from
*
* @returns A parsed WebVTTConfigurationBox
*
* @group ISOBMFF
*
* @beta
*/
export function vttC(view: IsoView): WebVTTConfigurationBox {
return {
config: view.readUtf8(),
};
};

0 comments on commit dfe16d2

Please sign in to comment.