@livekit/components-js-docs 0.1.0 → 0.1.2
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/generated-docs/core/activespeakerobserver.md +7 -0
- package/generated-docs/core/allparticipantevents.md +8 -1
- package/generated-docs/core/allparticipantroomevents.md +8 -1
- package/generated-docs/core/allremoteparticipantevents.md +8 -1
- package/generated-docs/core/allremoteparticipantroomevents.md +8 -1
- package/generated-docs/core/attachifsubscribed.md +8 -1
- package/generated-docs/core/audiosource.md +8 -1
- package/generated-docs/core/basedatamessage.md +8 -1
- package/generated-docs/core/basedatamessage.payload.md +5 -1
- package/generated-docs/core/basedatamessage.topic.md +5 -1
- package/generated-docs/core/captureoptionsbysource.md +8 -1
- package/generated-docs/core/chatmessage.md +8 -1
- package/generated-docs/core/chatmessage.message.md +5 -1
- package/generated-docs/core/chatmessage.timestamp.md +5 -1
- package/generated-docs/core/computemenuposition.md +8 -1
- package/generated-docs/core/connectedparticipantobserver.md +8 -1
- package/generated-docs/core/connectedparticipantobserveroptions.md +8 -1
- package/generated-docs/core/connectedparticipantsobserver.md +8 -1
- package/generated-docs/core/connectionstateobserver.md +9 -2
- package/generated-docs/core/createactivedeviceobservable.md +8 -1
- package/generated-docs/core/createconnectionqualityobserver.md +9 -2
- package/generated-docs/core/createdataobserver.md +11 -4
- package/generated-docs/core/createdefaultgrammar.md +8 -1
- package/generated-docs/core/createisspeakingobserver.md +7 -0
- package/generated-docs/core/createmediadeviceobserver.md +8 -1
- package/generated-docs/core/createtrackobserver.md +8 -1
- package/generated-docs/core/createurlregexp.md +9 -2
- package/generated-docs/core/cssprefix.md +9 -2
- package/generated-docs/core/datasendoptions.md +8 -1
- package/generated-docs/core/datatopic.md +8 -1
- package/generated-docs/core/encryptionstatusobservable.md +8 -1
- package/generated-docs/core/gettrackbyidentifier.md +9 -2
- package/generated-docs/core/gettrackreferenceid.md +8 -1
- package/generated-docs/core/gettrackreferencesource.md +8 -1
- package/generated-docs/core/grid_layouts.md +8 -1
- package/generated-docs/core/gridlayoutdefinition.md +8 -1
- package/generated-docs/core/index.md +9 -2
- package/generated-docs/core/isequaltrackref.md +8 -1
- package/generated-docs/core/islocal.md +7 -0
- package/generated-docs/core/ismobilebrowser.md +7 -0
- package/generated-docs/core/isparticipantsourcepinned.md +15 -4
- package/generated-docs/core/isparticipanttrackreferencepinned.md +8 -1
- package/generated-docs/core/isremote.md +7 -0
- package/generated-docs/core/issourceswithoptions.md +8 -1
- package/generated-docs/core/issourcewitoptions.md +8 -1
- package/generated-docs/core/istrackreference.md +7 -0
- package/generated-docs/core/istrackreferencepinned.md +8 -1
- package/generated-docs/core/istrackreferenceplaceholder.md +8 -1
- package/generated-docs/core/loaduserchoices.md +27 -0
- package/generated-docs/{react → core}/localuserchoices.md +11 -2
- package/generated-docs/core/log.md +8 -1
- package/generated-docs/core/mediatoggletype.md +8 -1
- package/generated-docs/core/messagedecoder.md +8 -1
- package/generated-docs/core/messageencoder.md +8 -1
- package/generated-docs/core/mutedobserver.md +7 -0
- package/generated-docs/core/observeparticipantevents.md +7 -0
- package/generated-docs/core/observeparticipantmedia.md +8 -1
- package/generated-docs/core/observeroomevents.md +7 -0
- package/generated-docs/core/observetrackevents.md +7 -0
- package/generated-docs/core/participantclickevent.md +8 -1
- package/generated-docs/core/participantclickevent.participant.md +5 -1
- package/generated-docs/core/participantclickevent.track.md +5 -1
- package/generated-docs/core/participanteventselector.md +8 -1
- package/generated-docs/core/participantfilter.md +9 -2
- package/generated-docs/core/participantinfoobserver.md +7 -0
- package/generated-docs/core/participantmedia.cameratrack.md +5 -1
- package/generated-docs/core/participantmedia.iscameraenabled.md +5 -1
- package/generated-docs/core/participantmedia.ismicrophoneenabled.md +5 -1
- package/generated-docs/core/participantmedia.isscreenshareenabled.md +5 -1
- package/generated-docs/core/participantmedia.md +8 -1
- package/generated-docs/core/participantmedia.microphonetrack.md +5 -1
- package/generated-docs/core/participantmedia.participant.md +5 -1
- package/generated-docs/core/participantpermissionobserver.md +9 -2
- package/generated-docs/core/pin_default_state.md +8 -1
- package/generated-docs/core/pinstate.md +8 -1
- package/generated-docs/core/receivedchatmessage.from.md +5 -1
- package/generated-docs/core/receivedchatmessage.md +8 -1
- package/generated-docs/core/receiveddatamessage.from.md +5 -1
- package/generated-docs/core/receiveddatamessage.md +8 -1
- package/generated-docs/core/requireonlyone.md +8 -1
- package/generated-docs/core/roomaudioplaybackallowedobservable.md +7 -0
- package/generated-docs/core/roomeventselector.md +8 -1
- package/generated-docs/core/roominfoobserver.md +7 -0
- package/generated-docs/core/roomobserver.md +7 -0
- package/generated-docs/core/saveuserchoices.md +20 -0
- package/generated-docs/core/screenshareobserver.md +7 -0
- package/generated-docs/core/screensharetrackmap.md +8 -1
- package/generated-docs/core/selectgridlayout.md +8 -1
- package/generated-docs/core/sendmessage.md +8 -1
- package/generated-docs/core/setdifference.md +7 -0
- package/generated-docs/core/setloglevel.md +7 -0
- package/generated-docs/core/setmediadeviceoptions.md +8 -1
- package/generated-docs/core/setupchat.md +9 -2
- package/generated-docs/core/setupchattoggle.md +7 -0
- package/generated-docs/core/setupclearpinbutton.md +7 -0
- package/generated-docs/core/setupconnectionqualityindicator.md +9 -2
- package/generated-docs/core/setupdatamessagehandler.md +9 -2
- package/generated-docs/core/setupdeviceselector.md +9 -2
- package/generated-docs/core/setupdisconnectbutton.md +7 -0
- package/generated-docs/core/setupfocustoggle.md +7 -0
- package/generated-docs/core/setuplivekitroom.md +7 -0
- package/generated-docs/core/setupmanualtoggle.md +7 -0
- package/generated-docs/core/setupmediatoggle.md +8 -1
- package/generated-docs/core/setupmediatrack.md +8 -1
- package/generated-docs/core/setupparticipantname.md +8 -1
- package/generated-docs/core/setupparticipanttile.md +7 -0
- package/generated-docs/core/setupstartaudio.md +7 -0
- package/generated-docs/core/setuptrackmutedindicator.md +8 -1
- package/generated-docs/core/sortparticipants.md +7 -0
- package/generated-docs/core/sorttrackreferences.md +8 -1
- package/generated-docs/core/sourcesarray.md +8 -1
- package/generated-docs/core/supportsscreensharing.md +7 -0
- package/generated-docs/core/togglesource.md +8 -1
- package/generated-docs/core/tokenize.md +8 -1
- package/generated-docs/core/tokenizegrammar.md +8 -1
- package/generated-docs/core/trackidentifier.md +8 -1
- package/generated-docs/core/trackobservable.md +7 -0
- package/generated-docs/core/trackreference.md +8 -1
- package/generated-docs/core/trackreferencefilter.md +9 -2
- package/generated-docs/core/trackreferenceid.md +8 -1
- package/generated-docs/core/trackreferenceorplaceholder.md +8 -1
- package/generated-docs/core/trackreferenceplaceholder.md +8 -1
- package/generated-docs/core/trackreferencesobservable.md +8 -1
- package/generated-docs/core/tracksource.md +9 -2
- package/generated-docs/core/tracksourcewithoptions.md +8 -1
- package/generated-docs/core/updatepages.md +8 -1
- package/generated-docs/core/videosource.md +8 -1
- package/generated-docs/core/wasclickoutside.md +7 -0
- package/generated-docs/core/widget_default_state.md +8 -1
- package/generated-docs/core/widgetstate.md +8 -1
- package/generated-docs/index.md +5 -1
- package/generated-docs/react/allowaudioplaybackprops.label.md +5 -1
- package/generated-docs/react/allowaudioplaybackprops.md +8 -1
- package/generated-docs/react/audioconferenceprops.md +8 -1
- package/generated-docs/react/audiotrackprops.md +20 -12
- package/generated-docs/react/audiotrackprops.muted.md +21 -0
- package/generated-docs/react/audiotrackprops.name.md +12 -4
- package/generated-docs/react/audiotrackprops.onsubscriptionstatuschanged.md +5 -1
- package/generated-docs/react/audiotrackprops.participant.md +12 -4
- package/generated-docs/react/audiotrackprops.publication.md +12 -4
- package/generated-docs/react/audiotrackprops.source.md +12 -4
- package/generated-docs/react/audiotrackprops.trackref.md +5 -1
- package/generated-docs/react/audiotrackprops.volume.md +6 -2
- package/generated-docs/react/audiovisualizerprops.md +8 -1
- package/generated-docs/react/audiovisualizerprops.participant.md +12 -4
- package/generated-docs/react/audiovisualizerprops.trackref.md +5 -1
- package/generated-docs/react/carousellayoutprops.children.md +5 -1
- package/generated-docs/react/carousellayoutprops.md +8 -1
- package/generated-docs/react/carousellayoutprops.orientation.md +5 -1
- package/generated-docs/react/carousellayoutprops.tracks.md +5 -1
- package/generated-docs/react/carouselview.md +15 -4
- package/generated-docs/react/chatentryprops.entry.md +5 -1
- package/generated-docs/react/chatentryprops.hidename.md +5 -1
- package/generated-docs/react/chatentryprops.hidetimestamp.md +5 -1
- package/generated-docs/react/chatentryprops.md +8 -1
- package/generated-docs/react/chatentryprops.messageformatter.md +5 -1
- package/generated-docs/react/chatprops.md +8 -1
- package/generated-docs/react/chatprops.messagedecoder.md +5 -1
- package/generated-docs/react/chatprops.messageencoder.md +5 -1
- package/generated-docs/react/chatprops.messageformatter.md +5 -1
- package/generated-docs/react/chattoggleprops.md +8 -1
- package/generated-docs/react/clearpinbuttonprops.md +8 -1
- package/generated-docs/react/component/audioconference.md +8 -1
- package/generated-docs/react/component/audiotrack.md +39 -11
- package/generated-docs/react/component/audiovisualizer.md +14 -3
- package/generated-docs/react/component/carousellayout.md +8 -1
- package/generated-docs/react/component/chat.md +8 -1
- package/generated-docs/react/component/chatentry.md +8 -1
- package/generated-docs/react/component/chattoggle.md +8 -1
- package/generated-docs/react/component/clearpinbutton.md +8 -1
- package/generated-docs/react/component/connectionqualityindicator.md +8 -1
- package/generated-docs/react/component/connectionstate.md +8 -1
- package/generated-docs/react/component/connectionstatetoast.md +8 -1
- package/generated-docs/react/component/controlbar.md +13 -1
- package/generated-docs/react/component/disconnectbutton.md +8 -1
- package/generated-docs/react/component/focuslayout.md +16 -5
- package/generated-docs/react/component/focuslayoutcontainer.md +18 -3
- package/generated-docs/react/component/focustoggle.md +19 -4
- package/generated-docs/react/component/gridlayout.md +8 -1
- package/generated-docs/react/component/layoutcontextprovider.md +35 -0
- package/generated-docs/react/component/livekitroom.md +8 -1
- package/generated-docs/react/component/mediadevicemenu.md +8 -1
- package/generated-docs/react/component/mediadeviceselect.md +8 -1
- package/generated-docs/react/component/participantaudiotile.md +26 -7
- package/generated-docs/react/component/participantcontextifneeded.md +8 -1
- package/generated-docs/react/component/participantloop.md +8 -1
- package/generated-docs/react/component/participantname.md +8 -1
- package/generated-docs/react/component/participanttile.md +26 -7
- package/generated-docs/react/component/prejoin.md +20 -4
- package/generated-docs/react/component/roomaudiorenderer.md +20 -1
- package/generated-docs/react/component/roomname.md +8 -1
- package/generated-docs/react/component/startaudio.md +8 -1
- package/generated-docs/react/component/toast.md +8 -1
- package/generated-docs/react/component/trackloop.md +8 -1
- package/generated-docs/react/component/trackmutedindicator.md +20 -5
- package/generated-docs/react/component/tracktoggle.md +8 -1
- package/generated-docs/react/component/videoconference.md +8 -1
- package/generated-docs/react/component/videotrack.md +33 -10
- package/generated-docs/react/connectionqualityindicatoroptions.md +8 -1
- package/generated-docs/react/connectionqualityindicatoroptions.participant.md +5 -1
- package/generated-docs/react/connectionqualityindicatorprops.md +8 -1
- package/generated-docs/react/connectionstatetoastprops.md +8 -1
- package/generated-docs/react/connectionstatetoastprops.room.md +5 -1
- package/generated-docs/react/connectionstatusprops.md +8 -1
- package/generated-docs/react/connectionstatusprops.room.md +5 -1
- package/generated-docs/react/controlbarcontrols.md +8 -1
- package/generated-docs/react/controlbarprops.controls.md +5 -1
- package/generated-docs/react/controlbarprops.md +13 -5
- package/generated-docs/react/controlbarprops.saveuserchoices.md +17 -0
- package/generated-docs/react/controlbarprops.variation.md +5 -1
- package/generated-docs/react/disconnectbuttonprops.md +8 -1
- package/generated-docs/react/disconnectbuttonprops.stoptracks.md +5 -1
- package/generated-docs/react/focuslayoutcontainerprops.focustrack.md +12 -4
- package/generated-docs/react/focuslayoutcontainerprops.md +8 -1
- package/generated-docs/react/focuslayoutcontainerprops.participants.md +12 -4
- package/generated-docs/react/focuslayoutprops.md +8 -1
- package/generated-docs/react/focuslayoutprops.onparticipantclick.md +5 -1
- package/generated-docs/react/focuslayoutprops.track.md +12 -4
- package/generated-docs/react/focuslayoutprops.trackref.md +5 -1
- package/generated-docs/react/focustoggleprops.md +8 -1
- package/generated-docs/react/focustoggleprops.participant.md +12 -4
- package/generated-docs/react/focustoggleprops.trackref.md +5 -1
- package/generated-docs/react/focustoggleprops.tracksource.md +12 -4
- package/generated-docs/react/formatchatmessagelinks.md +7 -0
- package/generated-docs/react/gridlayoutprops.children.md +5 -1
- package/generated-docs/react/gridlayoutprops.md +8 -1
- package/generated-docs/react/gridlayoutprops.tracks.md +5 -1
- package/generated-docs/react/hook/useaudioplayback.md +34 -0
- package/generated-docs/react/hook/usechat.md +13 -6
- package/generated-docs/react/hook/usechattoggle.md +10 -3
- package/generated-docs/react/hook/useclearpinbutton.md +8 -6
- package/generated-docs/react/hook/useconnectionqualityindicator.md +10 -3
- package/generated-docs/react/hook/useconnectionstate.md +10 -3
- package/generated-docs/react/hook/usecreatelayoutcontext.md +8 -1
- package/generated-docs/react/hook/usedatachannel.md +10 -3
- package/generated-docs/react/hook/usedatachannel_1.md +9 -2
- package/generated-docs/react/hook/usedisconnectbutton.md +10 -3
- package/generated-docs/react/hook/useensurecreatelayoutcontext.md +9 -2
- package/generated-docs/react/hook/useensurelayoutcontext.md +9 -2
- package/generated-docs/react/hook/useensureparticipant.md +9 -2
- package/generated-docs/react/hook/useensureroom.md +9 -2
- package/generated-docs/react/hook/useensuretrackref.md +9 -2
- package/generated-docs/react/hook/useensuretrackreference.md +16 -5
- package/generated-docs/react/hook/usefacingmode.md +35 -0
- package/generated-docs/react/hook/usefocustoggle.md +28 -4
- package/generated-docs/react/hook/usegridlayout.md +9 -2
- package/generated-docs/react/hook/useismuted.md +9 -2
- package/generated-docs/react/hook/useismuted_1.md +16 -5
- package/generated-docs/react/hook/useisspeaking.md +9 -2
- package/generated-docs/react/hook/uselayoutcontext.md +8 -1
- package/generated-docs/react/hook/uselivekitroom.md +67 -3
- package/generated-docs/react/hook/uselocalparticipant.md +9 -2
- package/generated-docs/react/hook/uselocalparticipantpermissions.md +9 -2
- package/generated-docs/react/hook/usemaybelayoutcontext.md +8 -1
- package/generated-docs/react/hook/usemaybeparticipantcontext.md +8 -1
- package/generated-docs/react/hook/usemayberoomcontext.md +8 -1
- package/generated-docs/react/hook/usemaybetrackcontext.md +15 -4
- package/generated-docs/react/hook/usemaybetrackrefcontext.md +8 -1
- package/generated-docs/react/hook/usemediadevices.md +13 -6
- package/generated-docs/react/hook/usemediadeviceselect.md +22 -4
- package/generated-docs/react/hook/usemediatrack.md +18 -7
- package/generated-docs/react/hook/usemediatrackbyname.md +19 -8
- package/generated-docs/react/hook/usepagination.md +52 -0
- package/generated-docs/react/hook/useparticipantcontext.md +8 -1
- package/generated-docs/react/hook/useparticipantinfo.md +9 -2
- package/generated-docs/react/hook/useparticipantpermissions.md +10 -3
- package/generated-docs/react/hook/useparticipants.md +9 -2
- package/generated-docs/react/hook/useparticipanttile.md +42 -3
- package/generated-docs/react/hook/usepersistentuserchoices.md +38 -0
- package/generated-docs/react/hook/usepinnedtracks.md +9 -2
- package/generated-docs/react/hook/usepreviewdevice.md +9 -2
- package/generated-docs/react/hook/usepreviewtracks.md +32 -0
- package/generated-docs/react/hook/useremoteparticipant.md +10 -3
- package/generated-docs/react/hook/useremoteparticipants.md +9 -2
- package/generated-docs/react/hook/useroomcontext.md +8 -1
- package/generated-docs/react/hook/useroominfo.md +9 -2
- package/generated-docs/react/hook/usesortedparticipants.md +9 -2
- package/generated-docs/react/hook/usespeakingparticipants.md +8 -1
- package/generated-docs/react/hook/usestartaudio.md +43 -0
- package/generated-docs/react/hook/useswipe.md +44 -0
- package/generated-docs/react/hook/usetoken.md +9 -2
- package/generated-docs/react/hook/usetrack.md +11 -4
- package/generated-docs/react/hook/usetrackbyname.md +12 -5
- package/generated-docs/react/hook/usetrackcontext.md +15 -4
- package/generated-docs/react/hook/usetrackmutedindicator.md +9 -2
- package/generated-docs/react/hook/usetrackmutedindicator_1.md +16 -5
- package/generated-docs/react/hook/usetrackrefcontext.md +8 -1
- package/generated-docs/react/hook/usetracks.md +10 -3
- package/generated-docs/react/hook/usetracktoggle.md +9 -7
- package/generated-docs/react/hook/usevisualstableupdate.md +11 -4
- package/generated-docs/react/index.md +86 -70
- package/generated-docs/react/layoutcontext.md +8 -1
- package/generated-docs/react/layoutcontextproviderprops.md +26 -0
- package/generated-docs/react/layoutcontextproviderprops.onpinchange.md +13 -0
- package/generated-docs/react/layoutcontextproviderprops.onwidgetchange.md +13 -0
- package/generated-docs/react/layoutcontextproviderprops.value.md +13 -0
- package/generated-docs/react/layoutcontexttype.md +8 -1
- package/generated-docs/react/livekitroomprops.audio.md +5 -1
- package/generated-docs/react/livekitroomprops.connect.md +5 -1
- package/generated-docs/react/livekitroomprops.connectoptions.md +5 -1
- package/generated-docs/react/livekitroomprops.md +8 -1
- package/generated-docs/react/livekitroomprops.onconnected.md +5 -1
- package/generated-docs/react/livekitroomprops.ondisconnected.md +5 -1
- package/generated-docs/react/livekitroomprops.onerror.md +5 -1
- package/generated-docs/react/livekitroomprops.onmediadevicefailure.md +5 -1
- package/generated-docs/react/livekitroomprops.options.md +5 -1
- package/generated-docs/react/livekitroomprops.room.md +5 -1
- package/generated-docs/react/livekitroomprops.screen.md +5 -1
- package/generated-docs/react/livekitroomprops.serverurl.md +5 -1
- package/generated-docs/react/livekitroomprops.simulateparticipants.md +5 -1
- package/generated-docs/react/livekitroomprops.token.md +5 -1
- package/generated-docs/react/livekitroomprops.video.md +5 -1
- package/generated-docs/react/mediadevicemenuprops.initialselection.md +5 -1
- package/generated-docs/react/mediadevicemenuprops.kind.md +5 -1
- package/generated-docs/react/mediadevicemenuprops.md +8 -1
- package/generated-docs/react/mediadevicemenuprops.onactivedevicechange.md +5 -1
- package/generated-docs/react/mediadevicemenuprops.requestpermissions.md +5 -1
- package/generated-docs/react/mediadevicemenuprops.tracks.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.exactmatch.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.initialselection.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.kind.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.md +8 -1
- package/generated-docs/react/mediadeviceselectprops.onactivedevicechange.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.ondevicelistchange.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.ondeviceselecterror.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.requestpermissions.md +5 -1
- package/generated-docs/react/mediadeviceselectprops.track.md +5 -1
- package/generated-docs/react/messageformatter.md +8 -1
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participantcontext.md +8 -1
- package/generated-docs/react/participantloopprops.children.md +5 -1
- package/generated-docs/react/participantloopprops.md +8 -1
- package/generated-docs/react/participantloopprops.participants.md +5 -1
- package/generated-docs/react/participantnameprops.md +8 -1
- package/generated-docs/react/participanttileprops.disablespeakingindicator.md +5 -1
- package/generated-docs/react/participanttileprops.md +8 -1
- package/generated-docs/react/participanttileprops.onparticipantclick.md +5 -1
- package/generated-docs/react/participanttileprops.participant.md +12 -4
- package/generated-docs/react/participanttileprops.publication.md +12 -4
- package/generated-docs/react/participanttileprops.source.md +12 -4
- package/generated-docs/react/participanttileprops.trackref.md +5 -1
- package/generated-docs/react/prejoinprops.camlabel.md +5 -1
- package/generated-docs/react/prejoinprops.debug.md +5 -1
- package/generated-docs/react/prejoinprops.defaults.md +5 -1
- package/generated-docs/react/prejoinprops.joinlabel.md +5 -1
- package/generated-docs/react/prejoinprops.md +23 -13
- package/generated-docs/react/prejoinprops.miclabel.md +5 -1
- package/generated-docs/react/prejoinprops.onerror.md +5 -1
- package/generated-docs/react/prejoinprops.onsubmit.md +5 -1
- package/generated-docs/react/prejoinprops.onvalidate.md +5 -1
- package/generated-docs/react/prejoinprops.persistuserchoices.md +17 -0
- package/generated-docs/react/prejoinprops.showe2eeoptions.md +15 -1
- package/generated-docs/react/prejoinprops.userlabel.md +5 -1
- package/generated-docs/react/roomaudiorendererprops.md +25 -0
- package/generated-docs/react/roomaudiorendererprops.muted.md +21 -0
- package/generated-docs/react/roomaudiorendererprops.volume.md +17 -0
- package/generated-docs/react/roomcontext.md +8 -1
- package/generated-docs/react/roomnameprops.childrenposition.md +5 -1
- package/generated-docs/react/roomnameprops.md +8 -1
- package/generated-docs/react/trackcontext.md +15 -4
- package/generated-docs/react/trackloopprops.children.md +5 -1
- package/generated-docs/react/trackloopprops.md +8 -1
- package/generated-docs/react/trackloopprops.tracks.md +5 -1
- package/generated-docs/react/trackmutedindicatorprops.md +8 -1
- package/generated-docs/react/trackmutedindicatorprops.participant.md +12 -4
- package/generated-docs/react/trackmutedindicatorprops.show.md +5 -1
- package/generated-docs/react/trackmutedindicatorprops.source.md +12 -4
- package/generated-docs/react/trackmutedindicatorprops.trackref.md +5 -1
- package/generated-docs/react/trackrefcontext.md +8 -1
- package/generated-docs/react/tracktoggleprops.captureoptions.md +5 -1
- package/generated-docs/react/tracktoggleprops.initialstate.md +5 -1
- package/generated-docs/react/tracktoggleprops.md +8 -1
- package/generated-docs/react/tracktoggleprops.onchange.md +5 -1
- package/generated-docs/react/tracktoggleprops.showicon.md +5 -1
- package/generated-docs/react/tracktoggleprops.source.md +5 -1
- package/generated-docs/react/usechattoggleprops.md +8 -1
- package/generated-docs/react/usechattoggleprops.props.md +5 -1
- package/generated-docs/react/usefocustoggleprops.md +8 -1
- package/generated-docs/react/usefocustoggleprops.participant.md +12 -4
- package/generated-docs/react/usefocustoggleprops.props.md +5 -1
- package/generated-docs/react/usefocustoggleprops.trackref.md +5 -1
- package/generated-docs/react/usefocustoggleprops.tracksource.md +12 -4
- package/generated-docs/react/useismutedoptions.md +8 -1
- package/generated-docs/react/useismutedoptions.participant.md +5 -1
- package/generated-docs/react/uselocalparticipantoptions.md +8 -1
- package/generated-docs/react/uselocalparticipantoptions.room.md +5 -1
- package/generated-docs/react/usemediadeviceselectprops.kind.md +5 -1
- package/generated-docs/react/usemediadeviceselectprops.md +8 -1
- package/generated-docs/react/usemediadeviceselectprops.requestpermissions.md +5 -1
- package/generated-docs/react/usemediadeviceselectprops.room.md +5 -1
- package/generated-docs/react/usemediadeviceselectprops.track.md +5 -1
- package/generated-docs/react/usemediatrackoptions.element.md +5 -1
- package/generated-docs/react/usemediatrackoptions.md +8 -1
- package/generated-docs/react/usemediatrackoptions.props.md +5 -1
- package/generated-docs/react/useparticipantinfooptions.md +8 -1
- package/generated-docs/react/useparticipantinfooptions.participant.md +5 -1
- package/generated-docs/react/useparticipantpermissionsoptions.md +8 -1
- package/generated-docs/react/useparticipantpermissionsoptions.participant.md +5 -1
- package/generated-docs/react/useparticipantsoptions.md +8 -1
- package/generated-docs/react/useparticipantsoptions.room.md +5 -1
- package/generated-docs/react/useparticipantsoptions.updateonlyon.md +5 -1
- package/generated-docs/react/useparticipanttileprops.disablespeakingindicator.md +5 -1
- package/generated-docs/react/useparticipanttileprops.htmlprops.md +5 -1
- package/generated-docs/react/useparticipanttileprops.md +8 -1
- package/generated-docs/react/useparticipanttileprops.onparticipantclick.md +5 -1
- package/generated-docs/react/useparticipanttileprops.participant.md +12 -4
- package/generated-docs/react/useparticipanttileprops.publication.md +12 -4
- package/generated-docs/react/useparticipanttileprops.source.md +12 -4
- package/generated-docs/react/useparticipanttileprops.trackref.md +5 -1
- package/generated-docs/react/usepersistentuserchoicesoptions.defaults.md +17 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.md +28 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventload.md +17 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventsave.md +17 -0
- package/generated-docs/react/useremoteparticipantoptions.md +8 -1
- package/generated-docs/react/useremoteparticipantoptions.updateonlyon.md +5 -1
- package/generated-docs/react/useremoteparticipantsoptions.md +8 -1
- package/generated-docs/react/useremoteparticipantsoptions.room.md +5 -1
- package/generated-docs/react/useremoteparticipantsoptions.updateonlyon.md +5 -1
- package/generated-docs/react/userinfo.identity.md +5 -1
- package/generated-docs/react/userinfo.md +8 -1
- package/generated-docs/react/userinfo.metadata.md +5 -1
- package/generated-docs/react/userinfo.name.md +5 -1
- package/generated-docs/react/useroominfooptions.md +8 -1
- package/generated-docs/react/useroominfooptions.room.md +5 -1
- package/generated-docs/react/usestartaudioprops.md +25 -0
- package/generated-docs/react/usestartaudioprops.props.md +13 -0
- package/generated-docs/react/usestartaudioprops.room.md +13 -0
- package/generated-docs/react/useswipeoptions.md +22 -0
- package/generated-docs/react/usetokenoptions.md +8 -1
- package/generated-docs/react/usetokenoptions.userinfo.md +5 -1
- package/generated-docs/react/usetrackmutedindicatoroptions.md +8 -1
- package/generated-docs/react/usetrackmutedindicatoroptions.participant.md +12 -4
- package/generated-docs/react/usetrackoptions.element.md +5 -1
- package/generated-docs/react/usetrackoptions.md +8 -1
- package/generated-docs/react/usetrackoptions.props.md +5 -1
- package/generated-docs/react/usetrackshookreturntype.md +8 -1
- package/generated-docs/react/usetracksoptions.md +8 -1
- package/generated-docs/react/usetracktoggleprops.md +8 -1
- package/generated-docs/react/usevisualstableupdateoptions.customsortfunction.md +5 -1
- package/generated-docs/react/usevisualstableupdateoptions.md +8 -1
- package/generated-docs/react/videoconferenceprops.chatmessagedecoder.md +5 -1
- package/generated-docs/react/videoconferenceprops.chatmessageencoder.md +5 -1
- package/generated-docs/react/videoconferenceprops.chatmessageformatter.md +5 -1
- package/generated-docs/react/videoconferenceprops.md +8 -1
- package/generated-docs/react/videotrackprops.managesubscription.md +5 -1
- package/generated-docs/react/videotrackprops.md +10 -3
- package/generated-docs/react/videotrackprops.name.md +12 -4
- package/generated-docs/react/videotrackprops.onsubscriptionstatuschanged.md +5 -1
- package/generated-docs/react/videotrackprops.ontrackclick.md +5 -1
- package/generated-docs/react/videotrackprops.participant.md +12 -4
- package/generated-docs/react/videotrackprops.publication.md +12 -4
- package/generated-docs/react/videotrackprops.source.md +12 -4
- package/generated-docs/react/videotrackprops.trackref.md +5 -1
- package/package.json +5 -6
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "useTrackRefContext",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/track-reference-context.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
10
|
# useTrackRefContext
|
|
@@ -7,7 +14,7 @@ Ensures that a track reference is provided via context. If not inside a `TrackRe
|
|
|
7
14
|
## Import
|
|
8
15
|
|
|
9
16
|
```typescript
|
|
10
|
-
import { useTrackRefContext } from
|
|
17
|
+
import { useTrackRefContext } from "@livekit/components-react";
|
|
11
18
|
```
|
|
12
19
|
|
|
13
20
|
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "useTracks",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useTracks.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
10
|
# useTracks
|
|
@@ -7,7 +14,7 @@ The `useTracks` hook returns an array of `TrackReference` or `TrackReferenceOrPl
|
|
|
7
14
|
## Import
|
|
8
15
|
|
|
9
16
|
```typescript
|
|
10
|
-
import { useTracks } from
|
|
17
|
+
import { useTracks } from "@livekit/components-react";
|
|
11
18
|
```
|
|
12
19
|
|
|
13
20
|
## Usage Example 1
|
|
@@ -23,13 +30,13 @@ const trackReferences: TrackReference[] = useTracks([Track.Source.Camera]);
|
|
|
23
30
|
// Return all subscribed camera tracks as well as placeholders for
|
|
24
31
|
// participants without a camera subscription.
|
|
25
32
|
const trackReferencesWithPlaceholders: TrackReferenceOrPlaceholder[] = useTracks([
|
|
26
|
-
{ source: Track.Source.Camera, withPlaceholder: true }
|
|
33
|
+
{ source: Track.Source.Camera, withPlaceholder: true }
|
|
27
34
|
]);
|
|
28
35
|
```
|
|
29
36
|
|
|
30
37
|
{% partial file="p_usage.md" variables={exampleCount: 2} /%}
|
|
31
38
|
|
|
32
|
-
##
|
|
39
|
+
## Properties
|
|
33
40
|
|
|
34
41
|
{% parameter name="options" type="UseTracksOptions" optional=true %}
|
|
35
42
|
{% /parameter %}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "useTrackToggle",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useTrackToggle.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
10
|
# useTrackToggle
|
|
@@ -7,23 +14,18 @@ The `useTrackToggle` hook is used to implement the `TrackToggle` component and r
|
|
|
7
14
|
## Import
|
|
8
15
|
|
|
9
16
|
```typescript
|
|
10
|
-
import { useTrackToggle } from
|
|
17
|
+
import { useTrackToggle } from "@livekit/components-react";
|
|
11
18
|
```
|
|
12
19
|
|
|
13
20
|
## Usage
|
|
14
21
|
|
|
15
22
|
```tsx
|
|
16
23
|
const { buttonProps, enabled } = useTrackToggle(trackRef);
|
|
17
|
-
return <button {...buttonProps}>{enabled ?
|
|
24
|
+
return <button {...buttonProps}>{enabled ? "disable" : "enable"}</button>;
|
|
18
25
|
```
|
|
19
26
|
|
|
20
27
|
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
21
28
|
|
|
22
|
-
## Parameters
|
|
23
|
-
|
|
24
|
-
{% parameter name="{ source, onChange, initialState, captureOptions, ...rest }" type="UseTrackToggleProps<T>" optional=false %}
|
|
25
|
-
{% /parameter %}
|
|
26
|
-
|
|
27
29
|
## Returns
|
|
28
30
|
|
|
29
31
|
```typescript
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "useVisualStableUpdate",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useVisualStableUpdate.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
10
|
# useVisualStableUpdate
|
|
4
11
|
|
|
5
|
-
The `useVisualStableUpdate` 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.
|
|
12
|
+
The `useVisualStableUpdate` 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.
|
|
6
13
|
|
|
7
14
|
## Import
|
|
8
15
|
|
|
9
16
|
```typescript
|
|
10
|
-
import { useVisualStableUpdate } from
|
|
17
|
+
import { useVisualStableUpdate } from "@livekit/components-react";
|
|
11
18
|
```
|
|
12
19
|
|
|
13
20
|
## Remarks
|
|
14
21
|
|
|
15
|
-
The hook is used for the `GridLayout` and `CarouselLayout` components.
|
|
22
|
+
Updating the array can occur because attendees leave or join a room, or because they mute/unmute or start speaking. The hook is used for the `GridLayout` and `CarouselLayout` components.
|
|
16
23
|
|
|
17
24
|
## Usage
|
|
18
25
|
|
|
@@ -23,7 +30,7 @@ const updatedTrackRefs = useVisualStableUpdate(trackRefs, itemPerPage);
|
|
|
23
30
|
|
|
24
31
|
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
25
32
|
|
|
26
|
-
##
|
|
33
|
+
## Properties
|
|
27
34
|
|
|
28
35
|
{% parameter name="maxItemsOnPage" type="number" optional=false %}
|
|
29
36
|
{% /parameter %}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "components-react package" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# components-react package
|
|
4
8
|
|
|
5
9
|
## Components
|
|
6
10
|
|
|
@@ -20,6 +24,7 @@
|
|
|
20
24
|
| [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. |
|
|
21
25
|
| [FocusToggle({ trackRef, trackSource, participant, ...props })](./react/component/focustoggle.md) | The <code>FocusToggle</code> puts the <code>ParticipantTile</code> in focus or removes it from focus. |
|
|
22
26
|
| [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. |
|
|
27
|
+
| [LayoutContextProvider({ value, onPinChange, onWidgetChange, children, })](./react/component/layoutcontextprovider.md) | |
|
|
23
28
|
| [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. |
|
|
24
29
|
| [MediaDeviceSelect({ kind, initialSelection, onActiveDeviceChange, onDeviceListChange, onDeviceSelectError, exactMatch, track, requestPermissions, ...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. |
|
|
25
30
|
| [ParticipantAudioTile({ participant, children, source, publication, disableSpeakingIndicator, onParticipantClick, ...htmlProps })](./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. |
|
|
@@ -27,7 +32,7 @@
|
|
|
27
32
|
| [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. |
|
|
28
33
|
| [ParticipantName({ participant, ...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. |
|
|
29
34
|
| [ParticipantTile({ trackRef, participant, children, source, onParticipantClick, publication, disableSpeakingIndicator, ...htmlProps })](./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. |
|
|
30
|
-
| [RoomAudioRenderer()](./react/component/roomaudiorenderer.md)
|
|
35
|
+
| [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. |
|
|
31
36
|
| [RoomName({ childrenPosition, children, ...htmlAttributes })](./react/component/roomname.md) | The <code>RoomName</code> component renders the name of the connected LiveKit room inside a span tag. |
|
|
32
37
|
| [StartAudio({ label, ...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. |
|
|
33
38
|
| [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. |
|
|
@@ -38,75 +43,82 @@
|
|
|
38
43
|
|
|
39
44
|
## Prefabs
|
|
40
45
|
|
|
41
|
-
| Prefab
|
|
42
|
-
|
|
|
43
|
-
| [AudioConference({ ...props })](./react/component/audioconference.md)
|
|
44
|
-
| [Chat({ messageFormatter, messageDecoder, messageEncoder, ...props })](./react/component/chat.md)
|
|
45
|
-
| [ControlBar({ variation, controls, ...props })](./react/component/controlbar.md)
|
|
46
|
-
| [MediaDeviceMenu({ kind, initialSelection, onActiveDeviceChange, tracks, requestPermissions, ...props })](./react/component/mediadevicemenu.md)
|
|
47
|
-
| [PreJoin({ defaults, onValidate, onSubmit, onError, debug, joinLabel, micLabel, camLabel, userLabel, showE2EEOptions, ...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. |
|
|
48
|
-
| [VideoConference({ chatMessageFormatter, chatMessageDecoder, chatMessageEncoder, ...props })](./react/component/videoconference.md)
|
|
46
|
+
| Prefab | Description |
|
|
47
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
48
|
+
| [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. |
|
|
49
|
+
| [Chat({ messageFormatter, messageDecoder, messageEncoder, ...props })](./react/component/chat.md) | The Chat component adds a basis chat functionality to the LiveKit room. The messages are distributed to all participants in the room. Only users who are in the room at the time of dispatch will receive the message. |
|
|
50
|
+
| [ControlBar({ variation, controls, saveUserChoices, ...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. |
|
|
51
|
+
| [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. |
|
|
52
|
+
| [PreJoin({ defaults, onValidate, onSubmit, onError, debug, joinLabel, micLabel, camLabel, userLabel, showE2EEOptions, persistUserChoices, ...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. |
|
|
53
|
+
| [VideoConference({ chatMessageFormatter, chatMessageDecoder, chatMessageEncoder, ...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. |
|
|
49
54
|
|
|
50
55
|
## Hooks
|
|
51
56
|
|
|
52
|
-
| Hook | Description
|
|
53
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
54
|
-
| [
|
|
55
|
-
| [
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [
|
|
59
|
-
| [
|
|
60
|
-
| [
|
|
61
|
-
| [useDataChannel(onMessage)](./react/hook/
|
|
62
|
-
| [
|
|
63
|
-
| [
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [
|
|
67
|
-
| [
|
|
68
|
-
| [
|
|
69
|
-
| [
|
|
70
|
-
| [
|
|
71
|
-
| [
|
|
72
|
-
| [
|
|
73
|
-
| [
|
|
74
|
-
| [
|
|
75
|
-
| [
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
78
|
-
| [
|
|
79
|
-
| [
|
|
80
|
-
| [
|
|
81
|
-
| [
|
|
82
|
-
| [
|
|
83
|
-
| [
|
|
84
|
-
| [
|
|
85
|
-
| [
|
|
86
|
-
| [
|
|
87
|
-
| [
|
|
88
|
-
| [
|
|
89
|
-
| [
|
|
90
|
-
| [
|
|
91
|
-
| [
|
|
92
|
-
| [
|
|
93
|
-
| [
|
|
94
|
-
| [
|
|
95
|
-
| [
|
|
96
|
-
| [
|
|
97
|
-
| [
|
|
98
|
-
| [
|
|
99
|
-
| [
|
|
100
|
-
| [
|
|
101
|
-
| [
|
|
102
|
-
| [
|
|
103
|
-
| [
|
|
104
|
-
| [
|
|
105
|
-
| [
|
|
106
|
-
| [
|
|
107
|
-
| [
|
|
108
|
-
| [
|
|
109
|
-
| [
|
|
57
|
+
| Hook | Description |
|
|
58
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
59
|
+
| [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. |
|
|
60
|
+
| [useChat(options)](./react/hook/usechat.md) | The <code>useChat</code> hook provides chat functionality for a LiveKit room. It returns a simple <code>send</code> function to send chat messages and an array of <code>chatMessages</code> to hold received messages. |
|
|
61
|
+
| [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window. |
|
|
62
|
+
| [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. |
|
|
63
|
+
| [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. |
|
|
64
|
+
| [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component. |
|
|
65
|
+
| [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) | |
|
|
66
|
+
| [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. |
|
|
67
|
+
| [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. |
|
|
68
|
+
| [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. |
|
|
69
|
+
| [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) | |
|
|
70
|
+
| [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. |
|
|
71
|
+
| [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. |
|
|
72
|
+
| [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. |
|
|
73
|
+
| [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. |
|
|
74
|
+
| [useEnsureTrackReference(track)](./react/hook/useensuretrackreference.md) | Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a <code>TrackContext</code> and no track reference is provided, an error is thrown. |
|
|
75
|
+
| [useFacingMode(trackReference)](./react/hook/usefacingmode.md) | Try to determine the <code>facingMode</code> of a local participant video track. |
|
|
76
|
+
| [useFocusToggle({ trackRef, trackSource, participant, 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. |
|
|
77
|
+
| [useGridLayout(gridElement, trackCount)](./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. |
|
|
78
|
+
| [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. |
|
|
79
|
+
| [useIsMuted(source, options)](./react/hook/useismuted_1.md) | |
|
|
80
|
+
| [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. |
|
|
81
|
+
| [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown. |
|
|
82
|
+
| [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. |
|
|
83
|
+
| [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant. |
|
|
84
|
+
| [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions. |
|
|
85
|
+
| [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
86
|
+
| [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
87
|
+
| [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined. |
|
|
88
|
+
| [useMaybeTrackContext()](./react/hook/usemaybetrackcontext.md) | Returns a track reference from the <code>TrackContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
89
|
+
| [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
90
|
+
| [useMediaDevices({ kind })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind. |
|
|
91
|
+
| [useMediaDeviceSelect({ kind, room, track, requestPermissions, })](./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. |
|
|
92
|
+
| [useMediaTrack(source, participant, options)](./react/hook/usemediatrack.md) | |
|
|
93
|
+
| [useMediaTrackByName(name, participant, options)](./react/hook/usemediatrackbyname.md) | |
|
|
94
|
+
| [usePagination(itemPerPage, trackReferences)](./react/hook/usepagination.md) | The <code>usePagination</code> hook implements simple pagination logic for use with arrays. |
|
|
95
|
+
| [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown. |
|
|
96
|
+
| [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) | |
|
|
97
|
+
| [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) | |
|
|
98
|
+
| [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room. |
|
|
99
|
+
| [useParticipantTile({ trackRef, participant, source, publication, 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. |
|
|
100
|
+
| [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. |
|
|
101
|
+
| [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room. |
|
|
102
|
+
| [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) | |
|
|
103
|
+
| [usePreviewTracks(options, onError)](./react/hook/usepreviewtracks.md) | |
|
|
104
|
+
| [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the RemoteParticipant with the given <code>identity</code>. |
|
|
105
|
+
| [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room. |
|
|
106
|
+
| [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown. |
|
|
107
|
+
| [useRoomInfo(options)](./react/hook/useroominfo.md) | |
|
|
108
|
+
| [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance. |
|
|
109
|
+
| [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns the only the active speakers of all participants. |
|
|
110
|
+
| [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. |
|
|
111
|
+
| [useSwipe(element, options)](./react/hook/useswipe.md) | Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes. |
|
|
112
|
+
| [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. |
|
|
113
|
+
| [useTrack(trackRef, options)](./react/hook/usetrack.md) | |
|
|
114
|
+
| [useTrackByName(trackRef, options)](./react/hook/usetrackbyname.md) | |
|
|
115
|
+
| [useTrackContext()](./react/hook/usetrackcontext.md) | Ensures that a track reference is provided via context. If not inside a <code>TrackRefContext</code>, an error is thrown. |
|
|
116
|
+
| [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. |
|
|
117
|
+
| [useTrackMutedIndicator(source, options)](./react/hook/usetrackmutedindicator_1.md) | |
|
|
118
|
+
| [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. |
|
|
119
|
+
| [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>. |
|
|
120
|
+
| [useTrackToggle({ source, onChange, initialState, captureOptions, ...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. |
|
|
121
|
+
| [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. |
|
|
110
122
|
|
|
111
123
|
## Others
|
|
112
124
|
|
|
@@ -135,9 +147,9 @@
|
|
|
135
147
|
| [formatChatMessageLinks(message)](./react/formatchatmessagelinks.md) | |
|
|
136
148
|
| [GridLayoutProps](./react/gridlayoutprops.md) | |
|
|
137
149
|
| [LayoutContext](./react/layoutcontext.md) | |
|
|
150
|
+
| [LayoutContextProviderProps](./react/layoutcontextproviderprops.md) | |
|
|
138
151
|
| [LayoutContextType](./react/layoutcontexttype.md) | |
|
|
139
152
|
| [LiveKitRoomProps](./react/livekitroomprops.md) | |
|
|
140
|
-
| [LocalUserChoices](./react/localuserchoices.md) | |
|
|
141
153
|
| [MediaDeviceMenuProps](./react/mediadevicemenuprops.md) | |
|
|
142
154
|
| [MediaDeviceSelectProps](./react/mediadeviceselectprops.md) | |
|
|
143
155
|
| [MessageFormatter](./react/messageformatter.md) | |
|
|
@@ -145,7 +157,8 @@
|
|
|
145
157
|
| [ParticipantLoopProps](./react/participantloopprops.md) | |
|
|
146
158
|
| [ParticipantNameProps](./react/participantnameprops.md) | |
|
|
147
159
|
| [ParticipantTileProps](./react/participanttileprops.md) | |
|
|
148
|
-
| [PreJoinProps](./react/prejoinprops.md) |
|
|
160
|
+
| [PreJoinProps](./react/prejoinprops.md) | Props for the PreJoin component. |
|
|
161
|
+
| [RoomAudioRendererProps](./react/roomaudiorendererprops.md) | |
|
|
149
162
|
| [RoomContext](./react/roomcontext.md) | |
|
|
150
163
|
| [RoomNameProps](./react/roomnameprops.md) | |
|
|
151
164
|
| [TrackContext](./react/trackcontext.md) | |
|
|
@@ -163,10 +176,13 @@
|
|
|
163
176
|
| [UseParticipantPermissionsOptions](./react/useparticipantpermissionsoptions.md) | The <code>useParticipantPermissions</code> hook returns the permissions of a given participant. |
|
|
164
177
|
| [UseParticipantsOptions](./react/useparticipantsoptions.md) | |
|
|
165
178
|
| [UseParticipantTileProps](./react/useparticipanttileprops.md) | |
|
|
179
|
+
| [UsePersistentUserChoicesOptions](./react/usepersistentuserchoicesoptions.md) | Options for the <code>usePersistentDeviceSettings</code> hook. |
|
|
166
180
|
| [UseRemoteParticipantOptions](./react/useremoteparticipantoptions.md) | |
|
|
167
181
|
| [UseRemoteParticipantsOptions](./react/useremoteparticipantsoptions.md) | |
|
|
168
182
|
| [UserInfo](./react/userinfo.md) | |
|
|
169
183
|
| [UseRoomInfoOptions](./react/useroominfooptions.md) | The <code>useRoomInfo</code> hook returns the name and metadata of the given <code>Room</code>. |
|
|
184
|
+
| [UseStartAudioProps](./react/usestartaudioprops.md) | |
|
|
185
|
+
| [UseSwipeOptions](./react/useswipeoptions.md) | |
|
|
170
186
|
| [UseTokenOptions](./react/usetokenoptions.md) | |
|
|
171
187
|
| [UseTrackMutedIndicatorOptions](./react/usetrackmutedindicatoroptions.md) | |
|
|
172
188
|
| [UseTrackOptions](./react/usetrackoptions.md) | |
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LayoutContext variable",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/layout-context.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
# LayoutContext variable
|
|
4
11
|
|
|
5
12
|
**Signature:**
|
|
6
13
|
|