@svta/common-media-library
Version:
A common library for media playback in JavaScript
49 lines • 1.11 kB
TypeScript
import type { ValueOf } from '../utils/ValueOf.js';
/**
* CMCD v2 player states for the 'sta' key.
*
* @group CMCD
*
* @enum
*
* @beta
*/
export declare const CmcdPlayerState: {
/**
* Starting: Initial startup of the player.
*/
readonly STARTING: "s";
/**
* Playing: The player is actively rendering content.
*/
readonly PLAYING: "p";
/**
* Seeking: The player is seeking to a new position.
*/
readonly SEEKING: "k";
/**
* Rebuffering: The player is buffering data during playback.
*/
readonly REBUFFERING: "r";
/**
* Paused: The player is paused.
*/
readonly PAUSED: "a";
/**
* Waiting: The player is waiting for a user action or another event.
*/
readonly WAITING: "w";
/**
* Ended: The media has finished playing.
*/
readonly ENDED: "e";
/**
* Fatal Error: The player has encountered a fatal error.
*/
readonly FATAL_ERROR: "f";
};
/**
* @beta
*/
export type CmcdPlayerState = ValueOf<typeof CmcdPlayerState>;
//# sourceMappingURL=CmcdPlayerState.d.ts.map