Components
Detailed documentation for OrgaAudio, OrgaVideo.
OrgaAIProvider
Provides Orga context to your web application.
Import
import { OrgaAIProvider } from '@orga-ai/react';
Usage
<OrgaAIProvider>
{/* ...your app... */}
</OrgaAIProvider>
OrgaAudio
Wrapper for playing audio streams (AI responses)
Import
import { OrgaAudio } from '@orga-ai/react';
Props
type OrgaAudioProps = React.AudioHTMLAttributes<HTMLAudioElement> & {
stream: MediaStream | null;
};
Usage
<OrgaAudio stream={aiAudioStream} />
OrgaVideo
Wrapper for displaying video streams (camera preview).
Import
import { OrgaVideo } from '@orga-ai/react';
Props
type OrgaVideoProps = React.VideoHTMLAttributes<HTMLVideoElement> & {
stream: MediaStream | null;
};
Usage
<OrgaVideo stream={userVideoStream} className="camera-preview" />