@livekit/components-js-docs 0.1.0 → 0.1.1
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/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 +8 -1
- 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 +5 -1
- 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/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/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 +8 -1
- 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 +5 -1
- 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 +35 -12
- 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 +8 -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/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 +8 -1
- package/generated-docs/react/component/roomaudiorenderer.md +8 -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 +8 -1
- 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/usechat.md +12 -5
- 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/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/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/usepinnedtracks.md +9 -2
- package/generated-docs/react/hook/usepreviewdevice.md +9 -2
- 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/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 +63 -59
- package/generated-docs/react/layoutcontext.md +8 -1
- 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/localuserchoices.md +8 -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/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 +8 -1
- 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.showe2eeoptions.md +5 -1
- package/generated-docs/react/prejoinprops.userlabel.md +5 -1
- 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/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/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 +8 -1
- 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 +1 -1
|
@@ -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
|
|
|
@@ -49,64 +53,64 @@
|
|
|
49
53
|
|
|
50
54
|
## Hooks
|
|
51
55
|
|
|
52
|
-
| Hook | Description
|
|
53
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
54
|
-
| [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.
|
|
55
|
-
| [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window.
|
|
56
|
-
| [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.
|
|
57
|
-
| [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.
|
|
58
|
-
| [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component.
|
|
59
|
-
| [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) |
|
|
60
|
-
| [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.
|
|
61
|
-
| [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages.
|
|
62
|
-
| [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.
|
|
63
|
-
| [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) |
|
|
64
|
-
| [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.
|
|
65
|
-
| [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.
|
|
66
|
-
| [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.
|
|
67
|
-
| [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.
|
|
68
|
-
| [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.
|
|
69
|
-
| [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.
|
|
70
|
-
| [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.
|
|
71
|
-
| [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.
|
|
72
|
-
| [useIsMuted(source, options)](./react/hook/useismuted_1.md) |
|
|
73
|
-
| [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.
|
|
74
|
-
| [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown.
|
|
75
|
-
| [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.
|
|
76
|
-
| [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant.
|
|
77
|
-
| [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions.
|
|
78
|
-
| [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>.
|
|
79
|
-
| [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>.
|
|
80
|
-
| [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined.
|
|
81
|
-
| [useMaybeTrackContext()](./react/hook/usemaybetrackcontext.md) | Returns a track reference from the <code>TrackContext</code> if it exists, otherwise <code>undefined</code>.
|
|
82
|
-
| [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>.
|
|
83
|
-
| [useMediaDevices({ kind })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind.
|
|
84
|
-
| [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.
|
|
85
|
-
| [useMediaTrack(source, participant, options)](./react/hook/usemediatrack.md) |
|
|
86
|
-
| [useMediaTrackByName(name, participant, options)](./react/hook/usemediatrackbyname.md) |
|
|
87
|
-
| [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown.
|
|
88
|
-
| [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) |
|
|
89
|
-
| [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) |
|
|
90
|
-
| [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room.
|
|
91
|
-
| [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.
|
|
92
|
-
| [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room.
|
|
93
|
-
| [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) |
|
|
94
|
-
| [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the RemoteParticipant with the given <code>identity</code>.
|
|
95
|
-
| [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room.
|
|
96
|
-
| [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown.
|
|
97
|
-
| [useRoomInfo(options)](./react/hook/useroominfo.md) |
|
|
98
|
-
| [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance.
|
|
99
|
-
| [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns the only the active speakers of all participants.
|
|
100
|
-
| [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.
|
|
101
|
-
| [useTrack(trackRef, options)](./react/hook/usetrack.md) |
|
|
102
|
-
| [useTrackByName(trackRef, options)](./react/hook/usetrackbyname.md) |
|
|
103
|
-
| [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.
|
|
104
|
-
| [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.
|
|
105
|
-
| [useTrackMutedIndicator(source, options)](./react/hook/usetrackmutedindicator_1.md) |
|
|
106
|
-
| [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.
|
|
107
|
-
| [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>.
|
|
108
|
-
| [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.
|
|
109
|
-
| [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.
|
|
56
|
+
| Hook | Description |
|
|
57
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
58
|
+
| [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. |
|
|
59
|
+
| [useChatToggle({ props })](./react/hook/usechattoggle.md) | The <code>useChatToggle</code> hook provides state and functions for toggling the chat window. |
|
|
60
|
+
| [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. |
|
|
61
|
+
| [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. |
|
|
62
|
+
| [useConnectionState(room)](./react/hook/useconnectionstate.md) | The <code>useConnectionState</code> hook allows you to simply implement your own <code>ConnectionState</code> component. |
|
|
63
|
+
| [useCreateLayoutContext()](./react/hook/usecreatelayoutcontext.md) | |
|
|
64
|
+
| [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. |
|
|
65
|
+
| [useDataChannel(onMessage)](./react/hook/usedatachannel_1.md) | The <code>useDataChannel</code> hook returns the ability to send and receive messages. |
|
|
66
|
+
| [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. |
|
|
67
|
+
| [useEnsureCreateLayoutContext(layoutContext)](./react/hook/useensurecreatelayoutcontext.md) | |
|
|
68
|
+
| [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. |
|
|
69
|
+
| [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. |
|
|
70
|
+
| [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. |
|
|
71
|
+
| [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. |
|
|
72
|
+
| [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. |
|
|
73
|
+
| [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. |
|
|
74
|
+
| [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. |
|
|
75
|
+
| [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. |
|
|
76
|
+
| [useIsMuted(source, options)](./react/hook/useismuted_1.md) | |
|
|
77
|
+
| [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. |
|
|
78
|
+
| [useLayoutContext()](./react/hook/uselayoutcontext.md) | Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown. |
|
|
79
|
+
| [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. |
|
|
80
|
+
| [useLocalParticipant(options)](./react/hook/uselocalparticipant.md) | The <code>useLocalParticipant</code> hook returns the local participant and the associated state around the participant. |
|
|
81
|
+
| [useLocalParticipantPermissions()](./react/hook/uselocalparticipantpermissions.md) | The <code>useLocalParticipantPermissions</code> hook returns the local participant's permissions. |
|
|
82
|
+
| [useMaybeLayoutContext()](./react/hook/usemaybelayoutcontext.md) | Returns a layout context from the <code>LayoutContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
83
|
+
| [useMaybeParticipantContext()](./react/hook/usemaybeparticipantcontext.md) | Returns a participant from the <code>ParticipantContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
84
|
+
| [useMaybeRoomContext()](./react/hook/usemayberoomcontext.md) | Returns the room context if it exists, otherwise undefined. |
|
|
85
|
+
| [useMaybeTrackContext()](./react/hook/usemaybetrackcontext.md) | Returns a track reference from the <code>TrackContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
86
|
+
| [useMaybeTrackRefContext()](./react/hook/usemaybetrackrefcontext.md) | Returns a track reference from the <code>TrackRefContext</code> if it exists, otherwise <code>undefined</code>. |
|
|
87
|
+
| [useMediaDevices({ kind })](./react/hook/usemediadevices.md) | The <code>useMediaDevices</code> hook returns the list of media devices of a given kind. |
|
|
88
|
+
| [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. |
|
|
89
|
+
| [useMediaTrack(source, participant, options)](./react/hook/usemediatrack.md) | |
|
|
90
|
+
| [useMediaTrackByName(name, participant, options)](./react/hook/usemediatrackbyname.md) | |
|
|
91
|
+
| [useParticipantContext()](./react/hook/useparticipantcontext.md) | Ensures that a participant is provided via context. If not inside a <code>ParticipantContext</code>, an error is thrown. |
|
|
92
|
+
| [useParticipantInfo(props)](./react/hook/useparticipantinfo.md) | |
|
|
93
|
+
| [useParticipantPermissions(options)](./react/hook/useparticipantpermissions.md) | |
|
|
94
|
+
| [useParticipants(options)](./react/hook/useparticipants.md) | The <code>useParticipants</code> hook returns all participants (local and remote) of the current room. |
|
|
95
|
+
| [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. |
|
|
96
|
+
| [usePinnedTracks(layoutContext)](./react/hook/usepinnedtracks.md) | The <code>usePinnedTracks</code> hook returns a array of the pinned tracks of the current room. |
|
|
97
|
+
| [usePreviewDevice(enabled, deviceId, kind)](./react/hook/usepreviewdevice.md) | |
|
|
98
|
+
| [useRemoteParticipant(identity, options)](./react/hook/useremoteparticipant.md) | The <code>useRemoteParticipant</code> hook returns the RemoteParticipant with the given <code>identity</code>. |
|
|
99
|
+
| [useRemoteParticipants(options)](./react/hook/useremoteparticipants.md) | The <code>useRemoteParticipants</code> hook returns all remote participants (without the local) of the current room. |
|
|
100
|
+
| [useRoomContext()](./react/hook/useroomcontext.md) | Ensures that a room is provided via context. If no room is provided, an error is thrown. |
|
|
101
|
+
| [useRoomInfo(options)](./react/hook/useroominfo.md) | |
|
|
102
|
+
| [useSortedParticipants(participants)](./react/hook/usesortedparticipants.md) | The <code>useSortedParticipants</code> hook returns the participants sorted by importance. |
|
|
103
|
+
| [useSpeakingParticipants()](./react/hook/usespeakingparticipants.md) | The <code>useSpeakingParticipants</code> hook returns the only the active speakers of all participants. |
|
|
104
|
+
| [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. |
|
|
105
|
+
| [useTrack(trackRef, options)](./react/hook/usetrack.md) | |
|
|
106
|
+
| [useTrackByName(trackRef, options)](./react/hook/usetrackbyname.md) | |
|
|
107
|
+
| [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. |
|
|
108
|
+
| [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. |
|
|
109
|
+
| [useTrackMutedIndicator(source, options)](./react/hook/usetrackmutedindicator_1.md) | |
|
|
110
|
+
| [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. |
|
|
111
|
+
| [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>. |
|
|
112
|
+
| [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. |
|
|
113
|
+
| [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
114
|
|
|
111
115
|
## Others
|
|
112
116
|
|
|
@@ -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
|
|
|
@@ -1,6 +1,13 @@
|
|
|
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
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
# LayoutContextType type
|
|
4
11
|
|
|
5
12
|
**Signature:**
|
|
6
13
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.audio property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.audio property
|
|
4
8
|
|
|
5
9
|
Publish audio immediately after connecting to your LiveKit room.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.connect property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.connect property
|
|
4
8
|
|
|
5
9
|
If set to true a connection to LiveKit room is initiated.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.connectOptions property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.connectOptions property
|
|
4
8
|
|
|
5
9
|
Define options how to connect to the LiveKit server.
|
|
6
10
|
|
|
@@ -1,6 +1,13 @@
|
|
|
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
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
# LiveKitRoomProps interface
|
|
4
11
|
|
|
5
12
|
**Signature:**
|
|
6
13
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.onDisconnected property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.onDisconnected property
|
|
4
8
|
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.onMediaDeviceFailure property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.onMediaDeviceFailure property
|
|
4
8
|
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.options property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.options property
|
|
4
8
|
|
|
5
9
|
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.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.room property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.room property
|
|
4
8
|
|
|
5
9
|
Optional room instance. By passing your own room instance you overwrite the `options` parameter, make sure to set the options directly on the room instance itself.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.screen property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.screen property
|
|
4
8
|
|
|
5
9
|
Publish screen share immediately after connecting to your LiveKit room.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.serverUrl property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.serverUrl property
|
|
4
8
|
|
|
5
9
|
URL to the LiveKit server. For example: `wss://<domain>.livekit.cloud` To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string url can the connection be established.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.simulateParticipants property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.simulateParticipants property
|
|
4
8
|
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.token property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.token property
|
|
4
8
|
|
|
5
9
|
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, `undefined` is also accepted as an intermediate value, but only with a valid string token can the connection be established.
|
|
6
10
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "LiveKitRoomProps.video property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# LiveKitRoomProps.video property
|
|
4
8
|
|
|
5
9
|
Publish video immediately after connecting to your LiveKit room.
|
|
6
10
|
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "LocalUserChoices type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/prefabs/PreJoin.tsx"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
# LocalUserChoices type
|
|
4
11
|
|
|
5
12
|
**Signature:**
|
|
6
13
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "MediaDeviceMenuProps.initialSelection property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# MediaDeviceMenuProps.initialSelection property
|
|
4
8
|
|
|
5
9
|
**Signature:**
|
|
6
10
|
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "MediaDeviceMenuProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/prefabs/MediaDeviceMenu.tsx"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
# MediaDeviceMenuProps interface
|
|
4
11
|
|
|
5
12
|
**Signature:**
|
|
6
13
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "MediaDeviceMenuProps.onActiveDeviceChange property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# MediaDeviceMenuProps.onActiveDeviceChange property
|
|
4
8
|
|
|
5
9
|
**Signature:**
|
|
6
10
|
|