@livekit/components-js-docs 0.0.0-20251021151641
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +10 -0
- package/generated-docs/core/activespeakerobserver.md +16 -0
- package/generated-docs/core/addmediatimestamptotranscription.md +22 -0
- package/generated-docs/core/allparticipantevents.md +16 -0
- package/generated-docs/core/allparticipantroomevents.md +16 -0
- package/generated-docs/core/allremoteparticipantevents.md +16 -0
- package/generated-docs/core/allremoteparticipantroomevents.md +16 -0
- package/generated-docs/core/attachifsubscribed.md +16 -0
- package/generated-docs/core/audiosource.md +16 -0
- package/generated-docs/core/basedatamessage.md +23 -0
- package/generated-docs/core/basedatamessage.payload.md +13 -0
- package/generated-docs/core/basedatamessage.topic.md +13 -0
- package/generated-docs/core/captureoptionsbysource.md +24 -0
- package/generated-docs/core/chatoptions.md +23 -0
- package/generated-docs/core/computemenuposition.md +20 -0
- package/generated-docs/core/connectedparticipantobserver.md +20 -0
- package/generated-docs/core/connectedparticipantobserveroptions.md +18 -0
- package/generated-docs/core/connectedparticipantsobserver.md +19 -0
- package/generated-docs/core/connectionstateobserver.md +18 -0
- package/generated-docs/core/createactivedeviceobservable.md +19 -0
- package/generated-docs/core/createchatobserver.md +23 -0
- package/generated-docs/core/createconnectionqualityobserver.md +18 -0
- package/generated-docs/core/createdataobserver.md +25 -0
- package/generated-docs/core/createdefaultgrammar.md +19 -0
- package/generated-docs/core/createemailregexp.md +16 -0
- package/generated-docs/core/createisspeakingobserver.md +16 -0
- package/generated-docs/core/createmediadeviceobserver.md +20 -0
- package/generated-docs/core/createtrackobserver.md +21 -0
- package/generated-docs/core/createurlregexp.md +16 -0
- package/generated-docs/core/cssprefix.md +16 -0
- package/generated-docs/core/datatopic.md +18 -0
- package/generated-docs/core/dedupesegments.md +20 -0
- package/generated-docs/core/defaultuserchoices.md +16 -0
- package/generated-docs/core/didactivesegmentschange.md +19 -0
- package/generated-docs/core/encryptionstatusobservable.md +19 -0
- package/generated-docs/core/getactivetranscriptionsegments.md +23 -0
- package/generated-docs/core/gettrackbyidentifier.md +18 -0
- package/generated-docs/core/gettrackreferenceid.md +24 -0
- package/generated-docs/core/gettrackreferencesource.md +20 -0
- package/generated-docs/core/grid_layouts.md +16 -0
- package/generated-docs/core/gridlayoutdefinition.md +22 -0
- package/generated-docs/core/gridlayoutinfo.md +24 -0
- package/generated-docs/core/index.md +151 -0
- package/generated-docs/core/isequaltrackref.md +19 -0
- package/generated-docs/core/islocal.md +16 -0
- package/generated-docs/core/ismobilebrowser.md +22 -0
- package/generated-docs/core/isparticipanttrackreferencepinned.md +21 -0
- package/generated-docs/core/isremote.md +16 -0
- package/generated-docs/core/issourceswithoptions.md +18 -0
- package/generated-docs/core/issourcewitoptions.md +18 -0
- package/generated-docs/core/istrackreferencepinned.md +21 -0
- package/generated-docs/core/istrackreferenceplaceholder.md +18 -0
- package/generated-docs/core/legacychatmessage.ignorelegacy.md +13 -0
- package/generated-docs/core/legacychatmessage.md +24 -0
- package/generated-docs/core/legacydatatopic.md +22 -0
- package/generated-docs/core/legacyreceivedchatmessage.ignorelegacy.md +13 -0
- package/generated-docs/core/legacyreceivedchatmessage.md +24 -0
- package/generated-docs/core/loaduserchoices.md +31 -0
- package/generated-docs/core/localuserchoices.md +24 -0
- package/generated-docs/core/log.md +16 -0
- package/generated-docs/core/mediatoggletype.md +26 -0
- package/generated-docs/core/messagedecoder.md +24 -0
- package/generated-docs/core/messageencoder.md +24 -0
- package/generated-docs/core/mutedobserver.md +16 -0
- package/generated-docs/core/observeparticipantevents.md +19 -0
- package/generated-docs/core/observeparticipantmedia.md +18 -0
- package/generated-docs/core/observeroomevents.md +16 -0
- package/generated-docs/core/observetrackevents.md +19 -0
- package/generated-docs/core/participantattributesobserver.md +19 -0
- package/generated-docs/core/participantbyidentifierobserver.md +20 -0
- package/generated-docs/core/participanteventselector.md +19 -0
- package/generated-docs/core/participantfilter.md +16 -0
- package/generated-docs/core/participantidentifier.md +28 -0
- package/generated-docs/core/participantinfoobserver.md +29 -0
- package/generated-docs/core/participantmedia.cameratrack.md +13 -0
- package/generated-docs/core/participantmedia.iscameraenabled.md +13 -0
- package/generated-docs/core/participantmedia.ismicrophoneenabled.md +13 -0
- package/generated-docs/core/participantmedia.isscreenshareenabled.md +13 -0
- package/generated-docs/core/participantmedia.md +27 -0
- package/generated-docs/core/participantmedia.microphonetrack.md +13 -0
- package/generated-docs/core/participantmedia.participant.md +13 -0
- package/generated-docs/core/participantpermissionobserver.md +18 -0
- package/generated-docs/core/participanttrackevents.md +16 -0
- package/generated-docs/core/participanttrackidentifier.md +23 -0
- package/generated-docs/core/participanttracksobservable.md +19 -0
- package/generated-docs/core/pin_default_state.md +16 -0
- package/generated-docs/core/pinstate.md +18 -0
- package/generated-docs/core/receivedchatmessage.from.md +13 -0
- package/generated-docs/core/receivedchatmessage.md +24 -0
- package/generated-docs/core/receiveddatamessage.from.md +13 -0
- package/generated-docs/core/receiveddatamessage.md +24 -0
- package/generated-docs/core/receivedtranscriptionsegment.md +19 -0
- package/generated-docs/core/recordingstatusobservable.md +16 -0
- package/generated-docs/core/requireonlyone.md +19 -0
- package/generated-docs/core/roomaudioplaybackallowedobservable.md +18 -0
- package/generated-docs/core/roomeventselector.md +19 -0
- package/generated-docs/core/roominfoobserver.md +19 -0
- package/generated-docs/core/roomobserver.md +16 -0
- package/generated-docs/core/roomvideoplaybackallowedobservable.md +18 -0
- package/generated-docs/core/saveuserchoices.md +24 -0
- package/generated-docs/core/screenshareobserver.md +16 -0
- package/generated-docs/core/screensharetrackmap.md +19 -0
- package/generated-docs/core/selectgridlayout.md +21 -0
- package/generated-docs/core/sendmessage.md +22 -0
- package/generated-docs/core/setdifference.md +16 -0
- package/generated-docs/core/setlogextension.md +21 -0
- package/generated-docs/core/setloglevel.md +18 -0
- package/generated-docs/core/setmediadeviceoptions.md +18 -0
- package/generated-docs/core/setupchat.md +23 -0
- package/generated-docs/core/setupchatmessagehandler.md +34 -0
- package/generated-docs/core/setupchattoggle.md +18 -0
- package/generated-docs/core/setupclearpinbutton.md +18 -0
- package/generated-docs/core/setupconnectionqualityindicator.md +19 -0
- package/generated-docs/core/setupdatamessagehandler.md +28 -0
- package/generated-docs/core/setupdeviceselector.md +24 -0
- package/generated-docs/core/setupdisconnectbutton.md +19 -0
- package/generated-docs/core/setupfocustoggle.md +18 -0
- package/generated-docs/core/setuplivekitroom.md +18 -0
- package/generated-docs/core/setupmanualtoggle.md +21 -0
- package/generated-docs/core/setupmediatoggle.md +22 -0
- package/generated-docs/core/setupmediatrack.md +19 -0
- package/generated-docs/core/setupparticipantname.md +32 -0
- package/generated-docs/core/setupparticipanttile.md +18 -0
- package/generated-docs/core/setupstartaudio.md +20 -0
- package/generated-docs/core/setupstartvideo.md +20 -0
- package/generated-docs/core/setuptextstream.md +16 -0
- package/generated-docs/core/setuptrackmutedindicator.md +19 -0
- package/generated-docs/core/sortparticipants.md +18 -0
- package/generated-docs/core/sorttrackreferences.md +20 -0
- package/generated-docs/core/sourcesarray.md +18 -0
- package/generated-docs/core/supportsscreensharing.md +18 -0
- package/generated-docs/core/textstreamdata.md +24 -0
- package/generated-docs/core/textstreamdata.participantinfo.md +15 -0
- package/generated-docs/core/textstreamdata.streaminfo.md +13 -0
- package/generated-docs/core/textstreamdata.text.md +13 -0
- package/generated-docs/core/togglesource.md +19 -0
- package/generated-docs/core/tokenize.md +25 -0
- package/generated-docs/core/tokenizegrammar.md +18 -0
- package/generated-docs/core/trackeventselector.md +19 -0
- package/generated-docs/core/trackobservable.md +16 -0
- package/generated-docs/core/trackreference.md +20 -0
- package/generated-docs/core/trackreferencefilter.md +18 -0
- package/generated-docs/core/trackreferenceid.md +16 -0
- package/generated-docs/core/trackreferenceorplaceholder.md +18 -0
- package/generated-docs/core/trackreferenceplaceholder.md +20 -0
- package/generated-docs/core/trackreferencesobservable.md +23 -0
- package/generated-docs/core/tracksource.md +23 -0
- package/generated-docs/core/tracksourcewithoptions.md +19 -0
- package/generated-docs/core/tracksynctimeobserver.md +16 -0
- package/generated-docs/core/tracktranscriptionobserver.md +18 -0
- package/generated-docs/core/updatepages.md +22 -0
- package/generated-docs/core/videosource.md +16 -0
- package/generated-docs/core/wasclickoutside.md +16 -0
- package/generated-docs/core/widget_default_state.md +16 -0
- package/generated-docs/core/widgetstate.md +20 -0
- package/generated-docs/index.md +14 -0
- package/generated-docs/react/agentstate.md +28 -0
- package/generated-docs/react/allowaudioplaybackprops.label.md +13 -0
- package/generated-docs/react/allowaudioplaybackprops.md +24 -0
- package/generated-docs/react/allowmediaplaybackprops.label.md +13 -0
- package/generated-docs/react/allowmediaplaybackprops.md +24 -0
- package/generated-docs/react/audioconferenceprops.md +18 -0
- package/generated-docs/react/audiotrackprops.md +27 -0
- package/generated-docs/react/audiotrackprops.muted.md +25 -0
- package/generated-docs/react/audiotrackprops.onsubscriptionstatuschanged.md +13 -0
- package/generated-docs/react/audiotrackprops.trackref.md +15 -0
- package/generated-docs/react/audiotrackprops.volume.md +15 -0
- package/generated-docs/react/audiovisualizerprops.md +30 -0
- package/generated-docs/react/audiovisualizerprops.trackref.md +13 -0
- package/generated-docs/react/audiowaveformoptions.barcount.md +19 -0
- package/generated-docs/react/audiowaveformoptions.md +30 -0
- package/generated-docs/react/audiowaveformoptions.updateinterval.md +19 -0
- package/generated-docs/react/audiowaveformoptions.volmultiplier.md +19 -0
- package/generated-docs/react/barvisualizeroptions.md +25 -0
- package/generated-docs/react/barvisualizerprops.barcount.md +21 -0
- package/generated-docs/react/barvisualizerprops.children.md +21 -0
- package/generated-docs/react/barvisualizerprops.md +34 -0
- package/generated-docs/react/barvisualizerprops.options.md +19 -0
- package/generated-docs/react/barvisualizerprops.state.md +21 -0
- package/generated-docs/react/barvisualizerprops.trackref.md +19 -0
- package/generated-docs/react/carousellayoutprops.children.md +13 -0
- package/generated-docs/react/carousellayoutprops.md +26 -0
- package/generated-docs/react/carousellayoutprops.orientation.md +15 -0
- package/generated-docs/react/carousellayoutprops.tracks.md +13 -0
- package/generated-docs/react/chatentryprops.entry.md +15 -0
- package/generated-docs/react/chatentryprops.hidename.md +15 -0
- package/generated-docs/react/chatentryprops.hidetimestamp.md +15 -0
- package/generated-docs/react/chatentryprops.md +29 -0
- package/generated-docs/react/chatentryprops.messageformatter.md +15 -0
- package/generated-docs/react/chatprops.md +24 -0
- package/generated-docs/react/chatprops.messageformatter.md +13 -0
- package/generated-docs/react/chattoggleprops.md +18 -0
- package/generated-docs/react/clearpinbuttonprops.md +18 -0
- package/generated-docs/react/component/audioconference.md +30 -0
- package/generated-docs/react/component/audiotrack.md +48 -0
- package/generated-docs/react/component/audiovisualizer.md +41 -0
- package/generated-docs/react/component/barvisualizer.md +67 -0
- package/generated-docs/react/component/carousellayout.md +44 -0
- package/generated-docs/react/component/chat.md +45 -0
- package/generated-docs/react/component/chatentry.md +48 -0
- package/generated-docs/react/component/chattoggle.md +30 -0
- package/generated-docs/react/component/clearpinbutton.md +30 -0
- package/generated-docs/react/component/connectionqualityindicator.md +24 -0
- package/generated-docs/react/component/connectionstate.md +33 -0
- package/generated-docs/react/component/connectionstatetoast.md +25 -0
- package/generated-docs/react/component/controlbar.md +55 -0
- package/generated-docs/react/component/disconnectbutton.md +33 -0
- package/generated-docs/react/component/focuslayout.md +30 -0
- package/generated-docs/react/component/focuslayoutcontainer.md +18 -0
- package/generated-docs/react/component/focustoggle.md +37 -0
- package/generated-docs/react/component/gridlayout.md +40 -0
- package/generated-docs/react/component/layoutcontext.md +16 -0
- package/generated-docs/react/component/layoutcontextprovider.md +39 -0
- package/generated-docs/react/component/livekitroom.md +103 -0
- package/generated-docs/react/component/mediadevicemenu.md +57 -0
- package/generated-docs/react/component/mediadeviceselect.md +71 -0
- package/generated-docs/react/component/participantaudiotile.md +41 -0
- package/generated-docs/react/component/participantcontext.md +16 -0
- package/generated-docs/react/component/participantcontextifneeded.md +26 -0
- package/generated-docs/react/component/participantloop.md +43 -0
- package/generated-docs/react/component/participantname.md +24 -0
- package/generated-docs/react/component/participanttile.md +55 -0
- package/generated-docs/react/component/prejoin.md +85 -0
- package/generated-docs/react/component/roomaudiorenderer.md +38 -0
- package/generated-docs/react/component/roomcontext.md +16 -0
- package/generated-docs/react/component/roomname.md +26 -0
- package/generated-docs/react/component/startaudio.md +31 -0
- package/generated-docs/react/component/startmediabutton.md +33 -0
- package/generated-docs/react/component/toast.md +24 -0
- package/generated-docs/react/component/trackloop.md +41 -0
- package/generated-docs/react/component/trackmutedindicator.md +34 -0
- package/generated-docs/react/component/trackrefcontext.md +18 -0
- package/generated-docs/react/component/tracktoggle.md +62 -0
- package/generated-docs/react/component/videoconference.md +52 -0
- package/generated-docs/react/component/videotrack.md +46 -0
- package/generated-docs/react/component/voiceassistantcontrolbar.md +50 -0
- package/generated-docs/react/connectionqualityindicatoroptions.md +22 -0
- package/generated-docs/react/connectionqualityindicatoroptions.participant.md +13 -0
- package/generated-docs/react/connectionqualityindicatorprops.md +18 -0
- package/generated-docs/react/connectionstatetoastprops.md +24 -0
- package/generated-docs/react/connectionstatetoastprops.room.md +13 -0
- package/generated-docs/react/connectionstatusprops.md +24 -0
- package/generated-docs/react/connectionstatusprops.room.md +15 -0
- package/generated-docs/react/controlbarcontrols.md +23 -0
- package/generated-docs/react/controlbarprops.controls.md +13 -0
- package/generated-docs/react/controlbarprops.md +27 -0
- package/generated-docs/react/controlbarprops.ondeviceerror.md +16 -0
- package/generated-docs/react/controlbarprops.saveuserchoices.md +21 -0
- package/generated-docs/react/controlbarprops.variation.md +13 -0
- package/generated-docs/react/disconnectbuttonprops.md +24 -0
- package/generated-docs/react/disconnectbuttonprops.stoptracks.md +13 -0
- package/generated-docs/react/focuslayoutcontainerprops.md +18 -0
- package/generated-docs/react/focuslayoutprops.md +25 -0
- package/generated-docs/react/focuslayoutprops.onparticipantclick.md +13 -0
- package/generated-docs/react/focuslayoutprops.trackref.md +15 -0
- package/generated-docs/react/focustoggleprops.md +24 -0
- package/generated-docs/react/focustoggleprops.trackref.md +13 -0
- package/generated-docs/react/formatchatmessagelinks.md +16 -0
- package/generated-docs/react/gridlayoutprops.children.md +13 -0
- package/generated-docs/react/gridlayoutprops.md +25 -0
- package/generated-docs/react/gridlayoutprops.tracks.md +13 -0
- package/generated-docs/react/hook/useaudioplayback.md +38 -0
- package/generated-docs/react/hook/useaudiowaveform.md +44 -0
- package/generated-docs/react/hook/usechat.md +55 -0
- package/generated-docs/react/hook/usechattoggle.md +40 -0
- package/generated-docs/react/hook/useclearpinbutton.md +30 -0
- package/generated-docs/react/hook/useconnectionqualityindicator.md +40 -0
- package/generated-docs/react/hook/useconnectionstate.md +35 -0
- package/generated-docs/react/hook/usecreatelayoutcontext.md +22 -0
- package/generated-docs/react/hook/usedatachannel.md +45 -0
- package/generated-docs/react/hook/usedisconnectbutton.md +42 -0
- package/generated-docs/react/hook/useensurecreatelayoutcontext.md +27 -0
- package/generated-docs/react/hook/useensurelayoutcontext.md +29 -0
- package/generated-docs/react/hook/useensureparticipant.md +29 -0
- package/generated-docs/react/hook/useensureroom.md +29 -0
- package/generated-docs/react/hook/useensuretrackref.md +29 -0
- package/generated-docs/react/hook/usefacingmode.md +39 -0
- package/generated-docs/react/hook/usefocustoggle.md +45 -0
- package/generated-docs/react/hook/usegridlayout.md +47 -0
- package/generated-docs/react/hook/useisencrypted.md +36 -0
- package/generated-docs/react/hook/useismuted.md +45 -0
- package/generated-docs/react/hook/useisrecording.md +35 -0
- package/generated-docs/react/hook/useisspeaking.md +35 -0
- package/generated-docs/react/hook/usekrispnoisefilter.md +64 -0
- package/generated-docs/react/hook/uselayoutcontext.md +24 -0
- package/generated-docs/react/hook/uselivekitroom.md +99 -0
- package/generated-docs/react/hook/uselocalparticipant.md +46 -0
- package/generated-docs/react/hook/uselocalparticipantpermissions.md +30 -0
- package/generated-docs/react/hook/usemaybelayoutcontext.md +24 -0
- package/generated-docs/react/hook/usemaybeparticipantcontext.md +24 -0
- package/generated-docs/react/hook/usemayberoomcontext.md +24 -0
- package/generated-docs/react/hook/usemaybetrackrefcontext.md +24 -0
- package/generated-docs/react/hook/usemediadevices.md +39 -0
- package/generated-docs/react/hook/usemediadeviceselect.md +58 -0
- package/generated-docs/react/hook/usemultibandtrackvolume.md +56 -0
- package/generated-docs/react/hook/usepagination.md +56 -0
- package/generated-docs/react/hook/useparticipantattribute.md +38 -0
- package/generated-docs/react/hook/useparticipantattributes.md +29 -0
- package/generated-docs/react/hook/useparticipantcontext.md +24 -0
- package/generated-docs/react/hook/useparticipantinfo.md +31 -0
- package/generated-docs/react/hook/useparticipantpermissions.md +27 -0
- package/generated-docs/react/hook/useparticipants.md +49 -0
- package/generated-docs/react/hook/useparticipanttile.md +46 -0
- package/generated-docs/react/hook/useparticipanttracks.md +32 -0
- package/generated-docs/react/hook/usepersistentuserchoices.md +54 -0
- package/generated-docs/react/hook/usepinnedtracks.md +39 -0
- package/generated-docs/react/hook/usepreviewdevice.md +43 -0
- package/generated-docs/react/hook/usepreviewtracks.md +27 -0
- package/generated-docs/react/hook/useremoteparticipant.md +44 -0
- package/generated-docs/react/hook/useremoteparticipants.md +49 -0
- package/generated-docs/react/hook/useroomcontext.md +24 -0
- package/generated-docs/react/hook/useroominfo.md +30 -0
- package/generated-docs/react/hook/usesortedparticipants.md +29 -0
- package/generated-docs/react/hook/usespeakingparticipants.md +30 -0
- package/generated-docs/react/hook/usestartaudio.md +47 -0
- package/generated-docs/react/hook/usestartvideo.md +47 -0
- package/generated-docs/react/hook/useswipe.md +45 -0
- package/generated-docs/react/hook/usetextstream.md +46 -0
- package/generated-docs/react/hook/usetoken.md +41 -0
- package/generated-docs/react/hook/usetrackbyname.md +32 -0
- package/generated-docs/react/hook/usetrackmutedindicator.md +35 -0
- package/generated-docs/react/hook/usetrackrefcontext.md +24 -0
- package/generated-docs/react/hook/usetracks.md +48 -0
- package/generated-docs/react/hook/usetracktoggle.md +43 -0
- package/generated-docs/react/hook/usetracktranscription.md +47 -0
- package/generated-docs/react/hook/usetrackvolume.md +35 -0
- package/generated-docs/react/hook/usevisualstableupdate.md +48 -0
- package/generated-docs/react/hook/usevoiceassistant.md +40 -0
- package/generated-docs/react/index.md +212 -0
- package/generated-docs/react/layoutcontextproviderprops.md +30 -0
- package/generated-docs/react/layoutcontextproviderprops.onpinchange.md +19 -0
- package/generated-docs/react/layoutcontextproviderprops.onwidgetchange.md +19 -0
- package/generated-docs/react/layoutcontextproviderprops.value.md +19 -0
- package/generated-docs/react/layoutcontexttype.md +19 -0
- package/generated-docs/react/livekitroomprops.audio.md +15 -0
- package/generated-docs/react/livekitroomprops.connect.md +15 -0
- package/generated-docs/react/livekitroomprops.connectoptions.md +15 -0
- package/generated-docs/react/livekitroomprops.md +38 -0
- package/generated-docs/react/livekitroomprops.onconnected.md +13 -0
- package/generated-docs/react/livekitroomprops.ondisconnected.md +13 -0
- package/generated-docs/react/livekitroomprops.onencryptionerror.md +13 -0
- package/generated-docs/react/livekitroomprops.onerror.md +13 -0
- package/generated-docs/react/livekitroomprops.onmediadevicefailure.md +13 -0
- package/generated-docs/react/livekitroomprops.options.md +15 -0
- package/generated-docs/react/livekitroomprops.room.md +15 -0
- package/generated-docs/react/livekitroomprops.screen.md +15 -0
- package/generated-docs/react/livekitroomprops.serverurl.md +15 -0
- package/generated-docs/react/livekitroomprops.simulateparticipants.md +13 -0
- package/generated-docs/react/livekitroomprops.token.md +15 -0
- package/generated-docs/react/livekitroomprops.video.md +15 -0
- package/generated-docs/react/mediadevicemenuprops.initialselection.md +13 -0
- package/generated-docs/react/mediadevicemenuprops.kind.md +13 -0
- package/generated-docs/react/mediadevicemenuprops.md +28 -0
- package/generated-docs/react/mediadevicemenuprops.onactivedevicechange.md +13 -0
- package/generated-docs/react/mediadevicemenuprops.requestpermissions.md +15 -0
- package/generated-docs/react/mediadevicemenuprops.tracks.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.exactmatch.md +15 -0
- package/generated-docs/react/mediadeviceselectprops.initialselection.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.kind.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.md +32 -0
- package/generated-docs/react/mediadeviceselectprops.onactivedevicechange.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.ondevicelistchange.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.ondeviceselecterror.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.onerror.md +13 -0
- package/generated-docs/react/mediadeviceselectprops.requestpermissions.md +15 -0
- package/generated-docs/react/mediadeviceselectprops.track.md +13 -0
- package/generated-docs/react/messageformatter.md +16 -0
- package/generated-docs/react/meta-data.json +1 -0
- package/generated-docs/react/multibandtrackvolumeoptions.analyseroptions.md +19 -0
- package/generated-docs/react/multibandtrackvolumeoptions.bands.md +19 -0
- package/generated-docs/react/multibandtrackvolumeoptions.hipass.md +21 -0
- package/generated-docs/react/multibandtrackvolumeoptions.lopass.md +21 -0
- package/generated-docs/react/multibandtrackvolumeoptions.md +34 -0
- package/generated-docs/react/multibandtrackvolumeoptions.updateinterval.md +21 -0
- package/generated-docs/react/participantloopprops.children.md +15 -0
- package/generated-docs/react/participantloopprops.md +23 -0
- package/generated-docs/react/participantloopprops.participants.md +15 -0
- package/generated-docs/react/participantnameprops.md +18 -0
- package/generated-docs/react/participanttileprops.disablespeakingindicator.md +13 -0
- package/generated-docs/react/participanttileprops.md +26 -0
- package/generated-docs/react/participanttileprops.onparticipantclick.md +13 -0
- package/generated-docs/react/participanttileprops.trackref.md +15 -0
- package/generated-docs/react/prejoinprops.camlabel.md +13 -0
- package/generated-docs/react/prejoinprops.debug.md +15 -0
- package/generated-docs/react/prejoinprops.defaults.md +15 -0
- package/generated-docs/react/prejoinprops.joinlabel.md +13 -0
- package/generated-docs/react/prejoinprops.md +36 -0
- package/generated-docs/react/prejoinprops.miclabel.md +13 -0
- package/generated-docs/react/prejoinprops.onerror.md +13 -0
- package/generated-docs/react/prejoinprops.onsubmit.md +15 -0
- package/generated-docs/react/prejoinprops.onvalidate.md +15 -0
- package/generated-docs/react/prejoinprops.persistuserchoices.md +21 -0
- package/generated-docs/react/prejoinprops.userlabel.md +13 -0
- package/generated-docs/react/prejoinprops.videoprocessor.md +13 -0
- package/generated-docs/react/roomaudiorendererprops.md +23 -0
- package/generated-docs/react/roomaudiorendererprops.muted.md +25 -0
- package/generated-docs/react/roomaudiorendererprops.volume.md +15 -0
- package/generated-docs/react/roomnameprops.childrenposition.md +13 -0
- package/generated-docs/react/roomnameprops.md +24 -0
- package/generated-docs/react/trackloopprops.children.md +15 -0
- package/generated-docs/react/trackloopprops.md +23 -0
- package/generated-docs/react/trackloopprops.tracks.md +15 -0
- package/generated-docs/react/trackmutedindicatorprops.md +25 -0
- package/generated-docs/react/trackmutedindicatorprops.show.md +13 -0
- package/generated-docs/react/trackmutedindicatorprops.trackref.md +13 -0
- package/generated-docs/react/tracktoggleprops.captureoptions.md +13 -0
- package/generated-docs/react/tracktoggleprops.initialstate.md +13 -0
- package/generated-docs/react/tracktoggleprops.md +30 -0
- package/generated-docs/react/tracktoggleprops.onchange.md +15 -0
- package/generated-docs/react/tracktoggleprops.ondeviceerror.md +13 -0
- package/generated-docs/react/tracktoggleprops.publishoptions.md +13 -0
- package/generated-docs/react/tracktoggleprops.showicon.md +13 -0
- package/generated-docs/react/tracktoggleprops.source.md +13 -0
- package/generated-docs/react/tracktranscriptionoptions.buffersize.md +21 -0
- package/generated-docs/react/tracktranscriptionoptions.md +29 -0
- package/generated-docs/react/tracktranscriptionoptions.ontranscription.md +21 -0
- package/generated-docs/react/usechattoggleprops.md +22 -0
- package/generated-docs/react/usechattoggleprops.props.md +13 -0
- package/generated-docs/react/usefocustoggleprops.md +23 -0
- package/generated-docs/react/usefocustoggleprops.props.md +13 -0
- package/generated-docs/react/usefocustoggleprops.trackref.md +13 -0
- package/generated-docs/react/useisencryptedoptions.md +28 -0
- package/generated-docs/react/useisencryptedoptions.room.md +19 -0
- package/generated-docs/react/useismutedoptions.md +22 -0
- package/generated-docs/react/useismutedoptions.participant.md +13 -0
- package/generated-docs/react/usekrispnoisefilteroptions.md +28 -0
- package/generated-docs/react/usekrispnoisefilteroptions.trackref.md +21 -0
- package/generated-docs/react/uselocalparticipantoptions.md +22 -0
- package/generated-docs/react/uselocalparticipantoptions.room.md +15 -0
- package/generated-docs/react/usemediadeviceselectprops.kind.md +13 -0
- package/generated-docs/react/usemediadeviceselectprops.md +26 -0
- package/generated-docs/react/usemediadeviceselectprops.onerror.md +15 -0
- package/generated-docs/react/usemediadeviceselectprops.requestpermissions.md +15 -0
- package/generated-docs/react/usemediadeviceselectprops.room.md +13 -0
- package/generated-docs/react/usemediadeviceselectprops.track.md +13 -0
- package/generated-docs/react/useparticipantattributesoptions.md +30 -0
- package/generated-docs/react/useparticipantattributesoptions.participant.md +13 -0
- package/generated-docs/react/useparticipantinfooptions.md +30 -0
- package/generated-docs/react/useparticipantinfooptions.participant.md +13 -0
- package/generated-docs/react/useparticipantpermissionsoptions.md +30 -0
- package/generated-docs/react/useparticipantpermissionsoptions.participant.md +13 -0
- package/generated-docs/react/useparticipantsoptions.md +23 -0
- package/generated-docs/react/useparticipantsoptions.room.md +15 -0
- package/generated-docs/react/useparticipantsoptions.updateonlyon.md +15 -0
- package/generated-docs/react/useparticipanttileprops.disablespeakingindicator.md +13 -0
- package/generated-docs/react/useparticipanttileprops.htmlprops.md +13 -0
- package/generated-docs/react/useparticipanttileprops.md +27 -0
- package/generated-docs/react/useparticipanttileprops.onparticipantclick.md +13 -0
- package/generated-docs/react/useparticipanttileprops.trackref.md +15 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.defaults.md +21 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.md +32 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventload.md +21 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventsave.md +21 -0
- package/generated-docs/react/useremoteparticipantoptions.md +22 -0
- package/generated-docs/react/useremoteparticipantoptions.updateonlyon.md +15 -0
- package/generated-docs/react/useremoteparticipantsoptions.md +23 -0
- package/generated-docs/react/useremoteparticipantsoptions.room.md +15 -0
- package/generated-docs/react/useremoteparticipantsoptions.updateonlyon.md +15 -0
- package/generated-docs/react/userinfo.identity.md +13 -0
- package/generated-docs/react/userinfo.md +24 -0
- package/generated-docs/react/userinfo.metadata.md +13 -0
- package/generated-docs/react/userinfo.name.md +13 -0
- package/generated-docs/react/useroominfooptions.md +34 -0
- package/generated-docs/react/useroominfooptions.room.md +13 -0
- package/generated-docs/react/usestartaudioprops.md +29 -0
- package/generated-docs/react/usestartaudioprops.props.md +19 -0
- package/generated-docs/react/usestartaudioprops.room.md +19 -0
- package/generated-docs/react/usestartvideoprops.md +29 -0
- package/generated-docs/react/usestartvideoprops.props.md +19 -0
- package/generated-docs/react/usestartvideoprops.room.md +19 -0
- package/generated-docs/react/useswipeoptions.md +26 -0
- package/generated-docs/react/usetokenoptions.md +22 -0
- package/generated-docs/react/usetokenoptions.userinfo.md +13 -0
- package/generated-docs/react/usetrackshookreturntype.md +20 -0
- package/generated-docs/react/usetracksoptions.md +20 -0
- package/generated-docs/react/usetracktoggleprops.md +18 -0
- package/generated-docs/react/usevisualstableupdateoptions.customsortfunction.md +15 -0
- package/generated-docs/react/usevisualstableupdateoptions.md +22 -0
- package/generated-docs/react/videoconferenceprops.chatmessagedecoder.md +13 -0
- package/generated-docs/react/videoconferenceprops.chatmessageencoder.md +13 -0
- package/generated-docs/react/videoconferenceprops.chatmessageformatter.md +13 -0
- package/generated-docs/react/videoconferenceprops.md +27 -0
- package/generated-docs/react/videoconferenceprops.settingscomponent.md +19 -0
- package/generated-docs/react/videotrackprops.managesubscription.md +13 -0
- package/generated-docs/react/videotrackprops.md +27 -0
- package/generated-docs/react/videotrackprops.onsubscriptionstatuschanged.md +13 -0
- package/generated-docs/react/videotrackprops.ontrackclick.md +13 -0
- package/generated-docs/react/videotrackprops.trackref.md +15 -0
- package/generated-docs/react/voiceassistant.agent.md +21 -0
- package/generated-docs/react/voiceassistant.agentattributes.md +21 -0
- package/generated-docs/react/voiceassistant.agenttranscriptions.md +21 -0
- package/generated-docs/react/voiceassistant.audiotrack.md +21 -0
- package/generated-docs/react/voiceassistant.md +33 -0
- package/generated-docs/react/voiceassistant.state.md +21 -0
- package/generated-docs/react/voiceassistant.videotrack.md +21 -0
- package/generated-docs/react/voiceassistantcontrolbarcontrols.md +25 -0
- package/generated-docs/react/voiceassistantcontrolbarprops.controls.md +19 -0
- package/generated-docs/react/voiceassistantcontrolbarprops.md +32 -0
- package/generated-docs/react/voiceassistantcontrolbarprops.ondeviceerror.md +22 -0
- package/generated-docs/react/voiceassistantcontrolbarprops.saveuserchoices.md +21 -0
- package/package.json +23 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "components-react package" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# components-react package
|
|
8
|
+
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
| Component | Description |
|
|
12
|
+
| ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
+
| [AudioTrack(props)](./react/component/audiotrack.md) | The AudioTrack component is responsible for rendering participant audio tracks. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
|
|
14
|
+
| [AudioVisualizer(props)](./react/component/audiovisualizer.md) | The AudioVisualizer component is used to visualize the audio volume of a given audio track. |
|
|
15
|
+
| [BarVisualizer](./react/component/barvisualizer.md) | **_(BETA)_** Visualizes audio signals from a TrackReference as bars. If the <code>state</code> prop is set, it automatically transitions between VoiceAssistant states. |
|
|
16
|
+
| [CarouselLayout({ tracks, orientation, ...props })](./react/component/carousellayout.md) | The <code>CarouselLayout</code> component displays a list of tracks in a scroll container. It will display as many tiles as possible and overflow the rest. |
|
|
17
|
+
| [ChatEntry(props)](./react/component/chatentry.md) | The <code>ChatEntry</code> component holds and displays one chat message. |
|
|
18
|
+
| [ChatToggle(props)](./react/component/chattoggle.md) | The <code>ChatToggle</code> component is a button that toggles the visibility of the <code>Chat</code> component. |
|
|
19
|
+
| [ClearPinButton(props)](./react/component/clearpinbutton.md) | The <code>ClearPinButton</code> is a basic html button with the added ability to signal the <code>LayoutContext</code> that it should display the grid view again. |
|
|
20
|
+
| [ConnectionQualityIndicator(props)](./react/component/connectionqualityindicator.md) | The <code>ConnectionQualityIndicator</code> shows the individual connection quality of a participant. |
|
|
21
|
+
| [ConnectionState(props)](./react/component/connectionstate.md) | The <code>ConnectionState</code> component displays the connection status of the room as strings (<code>"connected" | "connecting" | "disconnected" | "reconnecting"</code>). |
|
|
22
|
+
| [ConnectionStateToast(props)](./react/component/connectionstatetoast.md) | The <code>ConnectionStateToast</code> component displays a toast notification indicating the current connection state of the room. |
|
|
23
|
+
| [DisconnectButton(props)](./react/component/disconnectbutton.md) | The <code>DisconnectButton</code> is a basic html button with the added ability to disconnect from a LiveKit room. Normally this is the big red button that allows end users to leave the video or audio call. |
|
|
24
|
+
| [FocusLayout({ trackRef, ...htmlProps })](./react/component/focuslayout.md) | The <code>FocusLayout</code> component is just a light wrapper around the <code>ParticipantTile</code> to display a single participant. |
|
|
25
|
+
| [FocusLayoutContainer(props)](./react/component/focuslayoutcontainer.md) | The <code>FocusLayoutContainer</code> is a layout component that expects two children: A small side component: In a video conference, this is usually a carousel of participants who are not in focus. And a larger main component to display the focused participant. For example, with the <code>FocusLayout</code> component. |
|
|
26
|
+
| [FocusToggle(props)](./react/component/focustoggle.md) | The <code>FocusToggle</code> puts the <code>ParticipantTile</code> in focus or removes it from focus. |
|
|
27
|
+
| [GridLayout({ tracks, ...props })](./react/component/gridlayout.md) | The <code>GridLayout</code> component displays the nested participants in a grid where every participants has the same size. It also supports pagination if there are more participants than the grid can display. |
|
|
28
|
+
| [LayoutContext](./react/component/layoutcontext.md) | |
|
|
29
|
+
| [LayoutContextProvider({ value, onPinChange, onWidgetChange, children, })](./react/component/layoutcontextprovider.md) | |
|
|
30
|
+
| [LiveKitRoom(props)](./react/component/livekitroom.md) | The <code>LiveKitRoom</code> component provides the room context to all its child components. It is generally the starting point of your LiveKit app and the root of the LiveKit component tree. It provides the room state as a React context to all child components, so you don't have to pass it yourself. |
|
|
31
|
+
| [MediaDeviceSelect(props)](./react/component/mediadeviceselect.md) | The <code>MediaDeviceSelect</code> list all media devices of one kind. Clicking on one of the listed devices make it the active media device. |
|
|
32
|
+
| [ParticipantAudioTile(props)](./react/component/participantaudiotile.md) | The <code>ParticipantAudioTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TileLoop</code> or independently if a participant is passed as a property. |
|
|
33
|
+
| [ParticipantContext](./react/component/participantcontext.md) | |
|
|
34
|
+
| [ParticipantContextIfNeeded(props)](./react/component/participantcontextifneeded.md) | The <code>ParticipantContextIfNeeded</code> component only creates a <code>ParticipantContext</code> if there is no <code>ParticipantContext</code> already. |
|
|
35
|
+
| [ParticipantLoop({ participants, ...props })](./react/component/participantloop.md) | The <code>ParticipantLoop</code> component loops over an array of participants to create a context for every participant. This component takes exactly one child component as a template. By providing your own template as a child you have full control over the look and feel of your participant representations. |
|
|
36
|
+
| [ParticipantName(props)](./react/component/participantname.md) | The <code>ParticipantName</code> component displays the name of the participant as a string within an HTML span element. If no participant name is undefined the participant identity string is displayed. |
|
|
37
|
+
| [ParticipantTile(props)](./react/component/participanttile.md) | The <code>ParticipantTile</code> component is the base utility wrapper for displaying a visual representation of a participant. This component can be used as a child of the <code>TrackLoop</code> component or by passing a track reference as property. |
|
|
38
|
+
| [RoomAudioRenderer({ volume, muted })](./react/component/roomaudiorenderer.md) | The <code>RoomAudioRenderer</code> component is a drop-in solution for adding audio to your LiveKit app. It takes care of handling remote participants’ audio tracks and makes sure that microphones and screen share are audible. |
|
|
39
|
+
| [RoomContext](./react/component/roomcontext.md) | |
|
|
40
|
+
| [RoomName](./react/component/roomname.md) | The <code>RoomName</code> component renders the name of the connected LiveKit room inside a span tag. |
|
|
41
|
+
| [StartAudio(props)](./react/component/startaudio.md) | The <code>StartAudio</code> component is only visible when the browser blocks audio playback. This is due to some browser implemented autoplay policies. To start audio playback, the user must perform a user-initiated event such as clicking this button. As soon as audio playback starts, the button hides itself again. |
|
|
42
|
+
| [StartMediaButton(props)](./react/component/startmediabutton.md) | The <code>StartMediaButton</code> component is only visible when the browser blocks media playback. This is due to some browser implemented autoplay policies. To start media playback, the user must perform a user-initiated event such as clicking this button. As soon as media playback starts, the button hides itself again. |
|
|
43
|
+
| [Toast(props)](./react/component/toast.md) | The <code>Toast</code> component is a rudimentary way to display a message to the user. This message should be short lived and not require user interaction. For example, displaying the current connection state like <code>ConnectionStateToast</code> does. |
|
|
44
|
+
| [TrackLoop({ tracks, ...props })](./react/component/trackloop.md) | The <code>TrackLoop</code> component loops over tracks. It is for example a easy way to loop over all participant camera and screen share tracks. <code>TrackLoop</code> creates a <code>TrackRefContext</code> for each track that you can use to e.g. render the track. |
|
|
45
|
+
| [TrackMutedIndicator(props)](./react/component/trackmutedindicator.md) | The <code>TrackMutedIndicator</code> shows whether the participant's camera or microphone is muted or not. By default, a muted/unmuted icon is displayed for a camera, microphone, and screen sharing track. |
|
|
46
|
+
| [TrackRefContext](./react/component/trackrefcontext.md) | This context provides a <code>TrackReferenceOrPlaceholder</code> to all child components. |
|
|
47
|
+
| [TrackToggle(props)](./react/component/tracktoggle.md) | With the <code>TrackToggle</code> component it is possible to mute and unmute your camera and microphone. The component uses an html button element under the hood so you can treat it like a button. |
|
|
48
|
+
| [VideoTrack(props)](./react/component/videotrack.md) | The <code>VideoTrack</code> component is responsible for rendering participant video tracks like <code>camera</code> and <code>screen_share</code>. This component must have access to the participant's context, or alternatively pass it a <code>Participant</code> as a property. |
|
|
49
|
+
|
|
50
|
+
## Prefabs
|
|
51
|
+
|
|
52
|
+
| Prefab | Description |
|
|
53
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
54
|
+
| [AudioConference({ ...props })](./react/component/audioconference.md) | This component is the default setup of a classic LiveKit audio conferencing app. It provides functionality like switching between participant grid view and focus view. |
|
|
55
|
+
| [Chat({ messageFormatter, messageDecoder, messageEncoder, channelTopic, ...props })](./react/component/chat.md) | The Chat component provides ready-to-use chat functionality in a LiveKit room. Messages are distributed to all participants in the room in real-time. |
|
|
56
|
+
| [ControlBar({ variation, controls, saveUserChoices, onDeviceError, ...props })](./react/component/controlbar.md) | The <code>ControlBar</code> prefab gives the user the basic user interface to control their media devices (camera, microphone and screen share), open the <code>Chat</code> and leave the room. |
|
|
57
|
+
| [MediaDeviceMenu({ kind, initialSelection, onActiveDeviceChange, tracks, requestPermissions, ...props })](./react/component/mediadevicemenu.md) | The <code>MediaDeviceMenu</code> component is a button that opens a menu that lists all media devices and allows the user to select them. |
|
|
58
|
+
| [PreJoin({ defaults, onValidate, onSubmit, onError, debug, joinLabel, micLabel, camLabel, userLabel, persistUserChoices, videoProcessor, ...htmlProps })](./react/component/prejoin.md) | The <code>PreJoin</code> prefab component is normally presented to the user before he enters a room. This component allows the user to check and select the preferred media device (camera und microphone). On submit the user decisions are returned, which can then be passed on to the <code>LiveKitRoom</code> so that the user enters the room with the correct media devices. |
|
|
59
|
+
| [VideoConference({ chatMessageFormatter, chatMessageDecoder, chatMessageEncoder, SettingsComponent, ...props })](./react/component/videoconference.md) | The <code>VideoConference</code> ready-made component is your drop-in solution for a classic video conferencing application. It provides functionality such as focusing on one participant, grid view with pagination to handle large numbers of participants, basic non-persistent chat, screen sharing, and more. |
|
|
60
|
+
| [VoiceAssistantControlBar({ controls, saveUserChoices, onDeviceError, ...props })](./react/component/voiceassistantcontrolbar.md) | **_(BETA)_** |
|
|
61
|
+
|
|
62
|
+
## Hooks
|
|
63
|
+
|
|
64
|
+
| Hook | Description |
|
|
65
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
66
|
+
| [useAudioPlayback(room)](./react/hook/useaudioplayback.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useAudioPlayback</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
|
|
67
|
+
| [useAudioWaveform(trackOrTrackReference, options)](./react/hook/useaudiowaveform.md) | |
|
|
68
|
+
| [useChat(options)](./react/hook/usechat.md) | The <code>useChat</code> hook provides chat functionality for a LiveKit room. |
|
|
69
|
+
| [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window. |
|
|
70
|
+
| [useClearPinButton(props)](./react/hook/useclearpinbutton.md) | The <code>useClearPinButton</code> hook provides props for the [ClearPinButton()](./react/component/clearpinbutton.md) or your custom implementation of it component. It adds the <code>onClick</code> handler to signal the <code>LayoutContext</code> that the tile in focus should be cleared. |
|
|
71
|
+
| [useConnectionQualityIndicator(options)](./react/hook/useconnectionqualityindicator.md) | The <code>useConnectionQualityIndicator</code> hook provides props for the <code>ConnectionQualityIndicator</code> or your custom implementation of it component. |
|
|
72
|
+
| [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component. |
|
|
73
|
+
| [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) | |
|
|
74
|
+
| [useDataChannel(topic, onMessage)](./react/hook/usedatachannel.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. By optionally passing a <code>topic</code>, you can narrow down which messages are returned in the messages array. |
|
|
75
|
+
| [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. |
|
|
76
|
+
| [useDisconnectButton(props)](./react/hook/usedisconnectbutton.md) | The <code>useDisconnectButton</code> hook is used to implement the <code>DisconnectButton</code> or your custom implementation of it. It adds onClick handler to the button to disconnect from the room. |
|
|
77
|
+
| [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) | |
|
|
78
|
+
| [useEnsureLayoutContext(layoutContext)](./react/hook/useensurelayoutcontext.md) | Ensures that a layout context is provided, either via context or explicitly as a parameter. If not inside a <code>LayoutContext</code> and no layout context is provided, an error is thrown. |
|
|
79
|
+
| [useEnsureParticipant(participant)](./react/hook/useensureparticipant.md) | Ensures that a participant is provided, either via context or explicitly as a parameter. If not inside a <code>ParticipantContext</code> and no participant is provided, an error is thrown. |
|
|
80
|
+
| [useEnsureRoom(room)](./react/hook/useensureroom.md) | Ensures that a room is provided, either via context or explicitly as a parameter. If no room is provided, an error is thrown. |
|
|
81
|
+
| [useEnsureTrackRef(trackRef)](./react/hook/useensuretrackref.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackRefContext</code> and no track reference is provided, an error is thrown. |
|
|
82
|
+
| [useFacingMode(trackReference)](./react/hook/usefacingmode.md) | Try to determine the <code>facingMode</code> of a local participant video track. |
|
|
83
|
+
| [useFocusToggle({ trackRef, props })](./react/hook/usefocustoggle.md) | The <code>useFocusToggle</code> hook is used to implement the <code>FocusToggle</code> or your custom implementation of it. The <code>TrackReferenceOrPlaceholder</code> is used to register a onClick handler and to identify the track to focus on. |
|
|
84
|
+
| [useGridLayout(gridElement, trackCount, options)](./react/hook/usegridlayout.md) | The <code>useGridLayout</code> hook tries to select the best layout to fit all tiles. If the available screen space is not enough, it will reduce the number of maximum visible tiles and select a layout that still works visually within the given limitations. As the order of tiles changes over time, the hook tries to keep visual updates to a minimum while trying to display important tiles such as speaking participants or screen shares. |
|
|
85
|
+
| [useIsEncrypted(participant, options)](./react/hook/useisencrypted.md) | |
|
|
86
|
+
| [useIsMuted(trackRef)](./react/hook/useismuted.md) | The <code>useIsMuted</code> hook is used to implement the <code>TrackMutedIndicator</code> or your custom implementation of it. It returns a <code>boolean</code> that indicates if the track is muted or not. |
|
|
87
|
+
| [useIsRecording(room)](./react/hook/useisrecording.md) | The <code>useIsRecording</code> hook returns a <code>boolean</code> that indicates if the room is currently being recorded. |
|
|
88
|
+
| [useIsSpeaking(participant)](./react/hook/useisspeaking.md) | The <code>useIsSpeaking</code> hook returns a <code>boolean</code> that indicates if the participant is speaking or not. |
|
|
89
|
+
| [useKrispNoiseFilter(options)](./react/hook/usekrispnoisefilter.md) | <p>**_(BETA)_** Enable the Krisp enhanced noise cancellation feature for local audio tracks.</p><p>Defaults to the localParticipant's microphone track publication, but you can override this behavior by passing in a different track reference.</p> |
|
|
90
|
+
| [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown. |
|
|
91
|
+
| [useLiveKitRoom(props)](./react/hook/uselivekitroom.md) | The <code>useLiveKitRoom</code> hook is used to implement the <code>LiveKitRoom</code> or your custom implementation of it. It returns a <code>Room</code> instance and HTML props that should be applied to the root element of the component. |
|
|
92
|
+
| [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant. |
|
|
93
|
+
| [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions. |
|
|
94
|
+
| [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
95
|
+
| [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
96
|
+
| [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined. |
|
|
97
|
+
| [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
98
|
+
| [useMediaDevices({ kind, onError, })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind. |
|
|
99
|
+
| [useMediaDeviceSelect({ kind, room, track, requestPermissions, onError, })](./react/hook/usemediadeviceselect.md) | The <code>useMediaDeviceSelect</code> hook is used to implement the <code>MediaDeviceSelect</code> component and returns o.a. the list of devices of a given kind (audioinput or videoinput), the currently active device and a function to set the the active device. |
|
|
100
|
+
| [useMultibandTrackVolume(trackOrTrackReference, options)](./react/hook/usemultibandtrackvolume.md) | Hook for tracking the volume of an audio track across multiple frequency bands using the Web Audio API. |
|
|
101
|
+
| [usePagination(itemPerPage, trackReferences)](./react/hook/usepagination.md) | The <code>usePagination</code> hook implements simple pagination logic for use with arrays. |
|
|
102
|
+
| [useParticipantAttribute(attributeKey, options)](./react/hook/useparticipantattribute.md) | The <code>useParticipantAttribute</code> hook returns the latest value of a given attribute key of a participant. It requires a <code>Participant</code> object passed as property in the <code>UseParticipantAttributesOptions</code> or via the <code>ParticipantContext</code>. |
|
|
103
|
+
| [useParticipantAttributes(props)](./react/hook/useparticipantattributes.md) | |
|
|
104
|
+
| [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown. |
|
|
105
|
+
| [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) | |
|
|
106
|
+
| [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) | |
|
|
107
|
+
| [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room. |
|
|
108
|
+
| [useParticipantTile({ trackRef, onParticipantClick, disableSpeakingIndicator, htmlProps, })](./react/hook/useparticipanttile.md) | The <code>useParticipantTile</code> hook is used to implement the <code>ParticipantTile</code> and returns the props needed to render the tile. |
|
|
109
|
+
| [useParticipantTracks(sources, participantIdentity)](./react/hook/useparticipanttracks.md) | <code>useParticipantTracks</code> is a custom React that allows you to get tracks of a specific participant only, by specifiying the participant's identity. If the participant identity is not passed the hook will try to get the participant from a participant context. |
|
|
110
|
+
| [usePersistentUserChoices(options)](./react/hook/usepersistentuserchoices.md) | A hook that provides access to user choices stored in local storage, such as selected media devices and their current state (on or off), as well as the user name. |
|
|
111
|
+
| [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room. |
|
|
112
|
+
| [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) | |
|
|
113
|
+
| [usePreviewTracks(options, onError)](./react/hook/usepreviewtracks.md) | |
|
|
114
|
+
| [useRemoteParticipant(identifier, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the first RemoteParticipant by either identity and/or based on the participant kind. |
|
|
115
|
+
| [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant_1.md) | The <code>useRemoteParticipant</code> hook returns the first RemoteParticipant by either identity or based on the participant kind. |
|
|
116
|
+
| [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room. |
|
|
117
|
+
| [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown. |
|
|
118
|
+
| [useRoomInfo(options)](./react/hook/useroominfo.md) | |
|
|
119
|
+
| [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance. |
|
|
120
|
+
| [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns only the active speakers of all participants. |
|
|
121
|
+
| [useStartAudio({ room, props })](./react/hook/usestartaudio.md) | In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The <code>useStatAudio</code> hook returns an object with a boolean <code>canPlayAudio</code> flag that indicates whether audio playback is allowed in the current context, as well as a <code>startAudio</code> function that can be called in a button <code>onClick</code> callback to start audio playback in the current context. |
|
|
122
|
+
| [useStartVideo({ room, props })](./react/hook/usestartvideo.md) | In some browsers to start video playback in low power mode, the user must perform a user-initiated event such as clicking a button. The <code>useStartVideo</code> hook returns an object with a boolean <code>canPlayVideo</code> flag that indicates whether video playback is allowed in the current context, as well as a <code>startVideo</code> function that can be called in a button <code>onClick</code> callback to start video playback in the current context. |
|
|
123
|
+
| [useSwipe(element, options)](./react/hook/useswipe.md) | Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes. |
|
|
124
|
+
| [useTextStream(topic)](./react/hook/usetextstream.md) | **_(BETA)_** |
|
|
125
|
+
| [useToken(tokenEndpoint, roomName, options)](./react/hook/usetoken.md) | The <code>useToken</code> hook fetches a token from the given token endpoint with the given user info. |
|
|
126
|
+
| [useTrackByName(name, participant)](./react/hook/usetrackbyname.md) | This function <code>useTrackByName</code> allows you to access a track by referencing its track name. Inside the function, it ensures that the a valid <code>participant</code> reference is available by checking for both a passed participant argument and, if not available, a valid participant context. |
|
|
127
|
+
| [useTrackMutedIndicator(trackRef)](./react/hook/usetrackmutedindicator.md) | The <code>useTrackMutedIndicator</code> hook is used to implement the <code>TrackMutedIndicator</code> component and returns the muted state of the given track. |
|
|
128
|
+
| [useTrackRefContext()](./react/hook/usetrackrefcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
|
|
129
|
+
| [useTracks(sources, options)](./react/hook/usetracks.md) | The <code>useTracks</code> hook returns an array of <code>TrackReference</code> or <code>TrackReferenceOrPlaceholder</code> depending on the provided <code>sources</code> property. If only subscribed tracks are desired, set the <code>onlySubscribed</code> property to <code>true</code>. |
|
|
130
|
+
| [useTrackToggle({ source, onChange, initialState, captureOptions, publishOptions, onDeviceError, ...rest })](./react/hook/usetracktoggle.md) | The <code>useTrackToggle</code> hook is used to implement the <code>TrackToggle</code> component and returns state and functionality of the given track. |
|
|
131
|
+
| [useTrackTranscription(trackRef, options)](./react/hook/usetracktranscription.md) | |
|
|
132
|
+
| [useTrackVolume(trackOrTrackReference, options)](./react/hook/usetrackvolume.md) | Hook for tracking the volume of an audio track using the Web Audio API. |
|
|
133
|
+
| [useVisualStableUpdate(trackReferences, maxItemsOnPage, options)](./react/hook/usevisualstableupdate.md) | The <code>useVisualStableUpdate</code> hook is used to prevent visually jarring jumps and shifts of elements in an array. The algorithm only starts to update when there are more items than visually fit on a page. If this is the case, it will make sure that speaking participants move to the first page and are always visible. |
|
|
134
|
+
| [useVoiceAssistant()](./react/hook/usevoiceassistant.md) | **_(BETA)_** This hook looks for the first agent-participant in the room. |
|
|
135
|
+
|
|
136
|
+
## Others
|
|
137
|
+
|
|
138
|
+
| Other | Description |
|
|
139
|
+
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| [AgentState](./react/agentstate.md) | **_(BETA)_** |
|
|
141
|
+
| [AllowAudioPlaybackProps](./react/allowaudioplaybackprops.md) | |
|
|
142
|
+
| [AllowMediaPlaybackProps](./react/allowmediaplaybackprops.md) | |
|
|
143
|
+
| [AudioConferenceProps](./react/audioconferenceprops.md) | |
|
|
144
|
+
| [AudioTrackProps](./react/audiotrackprops.md) | |
|
|
145
|
+
| [AudioVisualizerProps](./react/audiovisualizerprops.md) | |
|
|
146
|
+
| [AudioWaveformOptions](./react/audiowaveformoptions.md) | |
|
|
147
|
+
| [BarVisualizerOptions](./react/barvisualizeroptions.md) | **_(BETA)_** |
|
|
148
|
+
| [BarVisualizerProps](./react/barvisualizerprops.md) | **_(BETA)_** |
|
|
149
|
+
| [CarouselLayoutProps](./react/carousellayoutprops.md) | |
|
|
150
|
+
| [ChatEntryProps](./react/chatentryprops.md) | ChatEntry composes the HTML div element under the hood, so you can pass all its props. These are the props specific to the ChatEntry component: |
|
|
151
|
+
| [ChatProps](./react/chatprops.md) | |
|
|
152
|
+
| [ChatToggleProps](./react/chattoggleprops.md) | |
|
|
153
|
+
| [ClearPinButtonProps](./react/clearpinbuttonprops.md) | |
|
|
154
|
+
| [ConnectionQualityIndicatorOptions](./react/connectionqualityindicatoroptions.md) | |
|
|
155
|
+
| [ConnectionQualityIndicatorProps](./react/connectionqualityindicatorprops.md) | |
|
|
156
|
+
| [ConnectionStateToastProps](./react/connectionstatetoastprops.md) | |
|
|
157
|
+
| [ConnectionStatusProps](./react/connectionstatusprops.md) | |
|
|
158
|
+
| [ControlBarControls](./react/controlbarcontrols.md) | |
|
|
159
|
+
| [ControlBarProps](./react/controlbarprops.md) | |
|
|
160
|
+
| [DisconnectButtonProps](./react/disconnectbuttonprops.md) | |
|
|
161
|
+
| [FocusLayoutContainerProps](./react/focuslayoutcontainerprops.md) | |
|
|
162
|
+
| [FocusLayoutProps](./react/focuslayoutprops.md) | |
|
|
163
|
+
| [FocusToggleProps](./react/focustoggleprops.md) | |
|
|
164
|
+
| [formatChatMessageLinks(message)](./react/formatchatmessagelinks.md) | |
|
|
165
|
+
| [GridLayoutProps](./react/gridlayoutprops.md) | |
|
|
166
|
+
| [LayoutContextProviderProps](./react/layoutcontextproviderprops.md) | |
|
|
167
|
+
| [LayoutContextType](./react/layoutcontexttype.md) | |
|
|
168
|
+
| [LiveKitRoomProps](./react/livekitroomprops.md) | |
|
|
169
|
+
| [MediaDeviceMenuProps](./react/mediadevicemenuprops.md) | |
|
|
170
|
+
| [MediaDeviceSelectProps](./react/mediadeviceselectprops.md) | |
|
|
171
|
+
| [MessageFormatter](./react/messageformatter.md) | |
|
|
172
|
+
| [MultiBandTrackVolumeOptions](./react/multibandtrackvolumeoptions.md) | Interface for configuring options for the useMultibandTrackVolume hook. |
|
|
173
|
+
| [ParticipantLoopProps](./react/participantloopprops.md) | |
|
|
174
|
+
| [ParticipantNameProps](./react/participantnameprops.md) | |
|
|
175
|
+
| [ParticipantTileProps](./react/participanttileprops.md) | |
|
|
176
|
+
| [PreJoinProps](./react/prejoinprops.md) | Props for the PreJoin component. |
|
|
177
|
+
| [RoomAudioRendererProps](./react/roomaudiorendererprops.md) | |
|
|
178
|
+
| [RoomNameProps](./react/roomnameprops.md) | |
|
|
179
|
+
| [TrackLoopProps](./react/trackloopprops.md) | |
|
|
180
|
+
| [TrackMutedIndicatorProps](./react/trackmutedindicatorprops.md) | |
|
|
181
|
+
| [TrackToggleProps](./react/tracktoggleprops.md) | |
|
|
182
|
+
| [TrackTranscriptionOptions](./react/tracktranscriptionoptions.md) | |
|
|
183
|
+
| [UseChatToggleProps](./react/usechattoggleprops.md) | |
|
|
184
|
+
| [UseFocusToggleProps](./react/usefocustoggleprops.md) | |
|
|
185
|
+
| [UseIsEncryptedOptions](./react/useisencryptedoptions.md) | |
|
|
186
|
+
| [UseIsMutedOptions](./react/useismutedoptions.md) | |
|
|
187
|
+
| [useKrispNoiseFilterOptions](./react/usekrispnoisefilteroptions.md) | **_(BETA)_** |
|
|
188
|
+
| [UseLocalParticipantOptions](./react/uselocalparticipantoptions.md) | |
|
|
189
|
+
| [UseMediaDeviceSelectProps](./react/usemediadeviceselectprops.md) | |
|
|
190
|
+
| [UseParticipantAttributesOptions](./react/useparticipantattributesoptions.md) | The <code>useParticipantAttributes</code> hook returns the attributes of a given participant and allows to set them. It requires a <code>Participant</code> object passed as property or via the <code>ParticipantContext</code>. |
|
|
191
|
+
| [UseParticipantInfoOptions](./react/useparticipantinfooptions.md) | The <code>useParticipantInfo</code> hook returns the identity, name, and metadata of a given participant. It requires a <code>Participant</code> object passed as property or via the <code>ParticipantContext</code>. |
|
|
192
|
+
| [UseParticipantPermissionsOptions](./react/useparticipantpermissionsoptions.md) | The <code>useParticipantPermissions</code> hook returns the permissions of a given participant. |
|
|
193
|
+
| [UseParticipantsOptions](./react/useparticipantsoptions.md) | |
|
|
194
|
+
| [UseParticipantTileProps](./react/useparticipanttileprops.md) | |
|
|
195
|
+
| [UsePersistentUserChoicesOptions](./react/usepersistentuserchoicesoptions.md) | Options for the <code>usePersistentDeviceSettings</code> hook. |
|
|
196
|
+
| [UseRemoteParticipantOptions](./react/useremoteparticipantoptions.md) | |
|
|
197
|
+
| [UseRemoteParticipantsOptions](./react/useremoteparticipantsoptions.md) | |
|
|
198
|
+
| [UserInfo](./react/userinfo.md) | |
|
|
199
|
+
| [UseRoomInfoOptions](./react/useroominfooptions.md) | The <code>useRoomInfo</code> hook returns the name and metadata of the given <code>Room</code>. |
|
|
200
|
+
| [UseStartAudioProps](./react/usestartaudioprops.md) | |
|
|
201
|
+
| [UseStartVideoProps](./react/usestartvideoprops.md) | |
|
|
202
|
+
| [UseSwipeOptions](./react/useswipeoptions.md) | |
|
|
203
|
+
| [UseTokenOptions](./react/usetokenoptions.md) | |
|
|
204
|
+
| [UseTracksHookReturnType](./react/usetrackshookreturntype.md) | |
|
|
205
|
+
| [UseTracksOptions](./react/usetracksoptions.md) | |
|
|
206
|
+
| [UseTrackToggleProps](./react/usetracktoggleprops.md) | |
|
|
207
|
+
| [UseVisualStableUpdateOptions](./react/usevisualstableupdateoptions.md) | |
|
|
208
|
+
| [VideoConferenceProps](./react/videoconferenceprops.md) | |
|
|
209
|
+
| [VideoTrackProps](./react/videotrackprops.md) | |
|
|
210
|
+
| [VoiceAssistant](./react/voiceassistant.md) | **_(BETA)_** |
|
|
211
|
+
| [VoiceAssistantControlBarControls](./react/voiceassistantcontrolbarcontrols.md) | **_(BETA)_** |
|
|
212
|
+
| [VoiceAssistantControlBarProps](./react/voiceassistantcontrolbarprops.md) | **_(BETA)_** |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LayoutContextProviderProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/layout/LayoutContextProvider.tsx"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# LayoutContextProviderProps interface
|
|
11
|
+
|
|
12
|
+
{% callout type="note" variation="normal" %}
|
|
13
|
+
|
|
14
|
+
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
|
|
15
|
+
|
|
16
|
+
{% /callout %}
|
|
17
|
+
|
|
18
|
+
**Signature:**
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
export interface LayoutContextProviderProps
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Properties
|
|
25
|
+
|
|
26
|
+
| Property | Type | Description |
|
|
27
|
+
| ----------------------------------------------------------------------- | ------------------------------------------------- | ------------ |
|
|
28
|
+
| [onPinChange?](./react/layoutcontextproviderprops.onpinchange.md) | (state: PinState) => void | _(Optional)_ |
|
|
29
|
+
| [onWidgetChange?](./react/layoutcontextproviderprops.onwidgetchange.md) | (state: WidgetState) => void | _(Optional)_ |
|
|
30
|
+
| [value?](./react/layoutcontextproviderprops.value.md) | [LayoutContextType](./react/layoutcontexttype.md) | _(Optional)_ |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LayoutContextProviderProps.onPinChange property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LayoutContextProviderProps.onPinChange property
|
|
8
|
+
|
|
9
|
+
{% callout type="note" variation="normal" %}
|
|
10
|
+
|
|
11
|
+
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
|
|
12
|
+
|
|
13
|
+
{% /callout %}
|
|
14
|
+
|
|
15
|
+
**Signature:**
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
onPinChange?: (state: PinState) => void;
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LayoutContextProviderProps.onWidgetChange property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LayoutContextProviderProps.onWidgetChange property
|
|
8
|
+
|
|
9
|
+
{% callout type="note" variation="normal" %}
|
|
10
|
+
|
|
11
|
+
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
|
|
12
|
+
|
|
13
|
+
{% /callout %}
|
|
14
|
+
|
|
15
|
+
**Signature:**
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
onWidgetChange?: (state: WidgetState) => void;
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LayoutContextProviderProps.value property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LayoutContextProviderProps.value property
|
|
8
|
+
|
|
9
|
+
{% callout type="note" variation="normal" %}
|
|
10
|
+
|
|
11
|
+
This feature is experimental and may change or be removed based on developer feedback and real-world usage.
|
|
12
|
+
|
|
13
|
+
{% /callout %}
|
|
14
|
+
|
|
15
|
+
**Signature:**
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
value?: LayoutContextType;
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LayoutContextType type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/layout-context.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# LayoutContextType type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type LayoutContextType = {
|
|
16
|
+
pin: PinContextType;
|
|
17
|
+
widget: WidgetContextType;
|
|
18
|
+
};
|
|
19
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.audio property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.audio property
|
|
8
|
+
|
|
9
|
+
Publish audio immediately after connecting to your LiveKit room.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
audio?: AudioCaptureOptions | boolean;
|
|
15
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.connect property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.connect property
|
|
8
|
+
|
|
9
|
+
If set to true a connection to LiveKit room is initiated.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
connect?: boolean;
|
|
15
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.connectOptions property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.connectOptions property
|
|
8
|
+
|
|
9
|
+
Define options how to connect to the LiveKit server.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
connectOptions?: RoomConnectOptions;
|
|
15
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LiveKitRoomProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/LiveKitRoom.tsx"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# LiveKitRoomProps interface
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface LiveKitRoomProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onError'>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Extends:** Omit<React.HTMLAttributes<HTMLDivElement>, 'onError'>
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ------------------------------------------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| [audio?](./react/livekitroomprops.audio.md) | AudioCaptureOptions \| boolean | _(Optional)_ Publish audio immediately after connecting to your LiveKit room. |
|
|
25
|
+
| [connect?](./react/livekitroomprops.connect.md) | boolean | _(Optional)_ If set to true a connection to LiveKit room is initiated. |
|
|
26
|
+
| [connectOptions?](./react/livekitroomprops.connectoptions.md) | RoomConnectOptions | _(Optional)_ Define options how to connect to the LiveKit server. |
|
|
27
|
+
| [onConnected?](./react/livekitroomprops.onconnected.md) | () => void | _(Optional)_ |
|
|
28
|
+
| [onDisconnected?](./react/livekitroomprops.ondisconnected.md) | (reason?: DisconnectReason) => void | _(Optional)_ |
|
|
29
|
+
| [onEncryptionError?](./react/livekitroomprops.onencryptionerror.md) | (error: Error) => void | _(Optional)_ |
|
|
30
|
+
| [onError?](./react/livekitroomprops.onerror.md) | (error: Error) => void | _(Optional)_ |
|
|
31
|
+
| [onMediaDeviceFailure?](./react/livekitroomprops.onmediadevicefailure.md) | (failure?: MediaDeviceFailure) => void | _(Optional)_ |
|
|
32
|
+
| [options?](./react/livekitroomprops.options.md) | RoomOptions | _(Optional)_ Options for when creating a new room. When you pass your own room instance to this component, these options have no effect. Instead, set the options directly in the room instance. |
|
|
33
|
+
| [room?](./react/livekitroomprops.room.md) | Room | _(Optional)_ Optional room instance. By passing your own room instance you overwrite the <code>options</code> parameter, make sure to set the options directly on the room instance itself. |
|
|
34
|
+
| [screen?](./react/livekitroomprops.screen.md) | ScreenShareCaptureOptions \| boolean | _(Optional)_ Publish screen share immediately after connecting to your LiveKit room. |
|
|
35
|
+
| [serverUrl](./react/livekitroomprops.serverurl.md) | string \| undefined | URL to the LiveKit server. For example: <code>wss://<domain>.livekit.cloud</code> To simplify the implementation, <code>undefined</code> is also accepted as an intermediate value, but only with a valid string url can the connection be established. |
|
|
36
|
+
| [simulateParticipants?](./react/livekitroomprops.simulateparticipants.md) | number \| undefined | _(Optional)_ |
|
|
37
|
+
| [token](./react/livekitroomprops.token.md) | string \| undefined | A user specific access token for a client to authenticate to the room. This token is necessary to establish a connection to the room. To simplify the implementation, <code>undefined</code> is also accepted as an intermediate value, but only with a valid string token can the connection be established. |
|
|
38
|
+
| [video?](./react/livekitroomprops.video.md) | VideoCaptureOptions \| boolean | _(Optional)_ Publish video immediately after connecting to your LiveKit room. |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.onConnected property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.onConnected property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
onConnected?: () => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.onDisconnected property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# LiveKitRoomProps.onDisconnected property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
onDisconnected?: (reason?: DisconnectReason) => void;
|
|
13
|
+
```
|