matrix-react-sdk
Version:
SDK for matrix.org using React
22 lines (21 loc) • 543 B
TypeScript
import React from "react";
import { Playback, PlaybackState } from "../../../audio/Playback";
interface IProps {
playback: Playback;
defaultDisplaySeconds?: number;
}
interface IState {
seconds: number;
durationSeconds: number;
playbackPhase: PlaybackState;
}
/**
* A clock for a playback of a recording.
*/
export default class PlaybackClock extends React.PureComponent<IProps, IState> {
constructor(props: IProps);
private onPlaybackUpdate;
private onTimeUpdate;
render(): React.ReactNode;
}
export {};