Appearance
Function: AudioPlayer()
ts
function AudioPlayer(props: Readonly<{
src: string;
mediaType?: string;
autoPlay?: boolean;
loop?: boolean;
className?: string;
}> & RefAttributes<HTMLDivElement>): Block;Defined in: src/renderer/blocks/index.ts:2756
Experimental
AudioPlayer — HTML5 audio with media-chrome controls (play/pause, scrubber, volume). Uses the media-chrome web components (MIT).
Parameters
| Parameter | Type |
|---|---|
props | Readonly<{ src: string; mediaType?: string; autoPlay?: boolean; loop?: boolean; className?: string; }> & RefAttributes<HTMLDivElement> |