@remotion/player
Version:
React component for embedding a Remotion preview into your app
13 lines (12 loc) • 423 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { BufferingIndicator } from './BufferingIndicator.js';
import { PauseIcon, PlayIcon } from './icons.js';
export const DefaultPlayPauseButton = ({ playing, buffering }) => {
if (playing && buffering) {
return _jsx(BufferingIndicator, { type: "player" });
}
if (playing) {
return _jsx(PauseIcon, {});
}
return _jsx(PlayIcon, {});
};