Skip to content

Commit 79fbc0a

Browse files
junsumidalukasIO
andauthored
Expose StartMediaButton for External Use (#978)
Co-authored-by: lukasIO <[email protected]>
1 parent d6c5eef commit 79fbc0a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changeset/modern-tips-eat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/components-react": patch
3+
---
4+
5+
Add StartMediaButton to public API

packages/react/etc/components-react.api.md

+9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ export interface AllowAudioPlaybackProps extends React_2.ButtonHTMLAttributes<HT
4343
label: string;
4444
}
4545

46+
// @public (undocumented)
47+
export interface AllowMediaPlaybackProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
48+
// (undocumented)
49+
label?: string;
50+
}
51+
4652
// @public
4753
export function AudioConference({ ...props }: AudioConferenceProps): React_2.JSX.Element;
4854

@@ -641,6 +647,9 @@ export const SpinnerIcon: (props: SVGProps<SVGSVGElement>) => React_2.JSX.Elemen
641647
// @public
642648
export const StartAudio: (props: AllowAudioPlaybackProps & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactNode;
643649

650+
// @public
651+
export const StartMediaButton: (props: AllowMediaPlaybackProps & React_2.RefAttributes<HTMLButtonElement>) => React_2.ReactNode;
652+
644653
// @public
645654
export function Toast(props: React_2.HTMLAttributes<HTMLDivElement>): React_2.JSX.Element;
646655

packages/react/src/components/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export * from './controls/DisconnectButton';
55
export * from './controls/FocusToggle';
66
export * from './controls/MediaDeviceSelect';
77
export * from './controls/StartAudio';
8+
export * from './controls/StartMediaButton';
89
export * from './controls/TrackToggle';
910
export * from './layout';
1011
export * from './layout/LayoutContextProvider';

0 commit comments

Comments
 (0)