Skip to content

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

ParameterType
propsReadonly<{ src: string; mediaType?: string; autoPlay?: boolean; loop?: boolean; className?: string; }> & RefAttributes<HTMLDivElement>

Returns

Block

Matterway Assistant SDK Documentation