@mrksbnc/livekit-vue 0.0.3 → 1.0.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/README.md +46 -30
- package/dist/background/BackgroundEffectSelect.vue.d.cts +55 -0
- package/dist/background/BackgroundEffectSelect.vue.d.mts +55 -0
- package/dist/background/index.d.cts +3 -0
- package/dist/background/index.d.mts +3 -0
- package/dist/background.cjs +2 -0
- package/dist/background.cjs.map +1 -0
- package/dist/background.js +239 -0
- package/dist/background.js.map +1 -0
- package/dist/components/chat/ChatEntry.vue.d.cts +16 -0
- package/dist/components/chat/ChatEntry.vue.d.mts +16 -0
- package/dist/components/chat/chat.utils.d.cts +3 -0
- package/dist/components/chat/chat.utils.d.mts +3 -0
- package/dist/components/chat/index.d.cts +3 -0
- package/dist/components/chat/index.d.mts +3 -0
- package/dist/components/chat/render-node.d.cts +8 -0
- package/dist/components/chat/render-node.d.mts +8 -0
- package/dist/components/context/ParticipantContextProvider.vue.d.cts +16 -0
- package/dist/components/context/ParticipantContextProvider.vue.d.mts +16 -0
- package/dist/components/context/RoomContextProvider.vue.d.cts +16 -0
- package/dist/components/context/RoomContextProvider.vue.d.mts +16 -0
- package/dist/components/context/SessionProvider.vue.d.cts +16 -0
- package/dist/components/context/SessionProvider.vue.d.mts +16 -0
- package/dist/components/context/TrackRefContextProvider.vue.d.cts +16 -0
- package/dist/components/context/TrackRefContextProvider.vue.d.mts +16 -0
- package/dist/components/context/index.d.cts +4 -0
- package/dist/components/context/index.d.mts +4 -0
- package/dist/components/controls/ChatToggle.vue.d.cts +17 -0
- package/dist/components/controls/ChatToggle.vue.d.mts +17 -0
- package/dist/components/controls/ClearPinButton.vue.d.cts +22 -0
- package/dist/components/controls/ClearPinButton.vue.d.mts +22 -0
- package/dist/components/controls/DisconnectButton.vue.d.cts +18 -0
- package/dist/components/controls/DisconnectButton.vue.d.mts +18 -0
- package/dist/components/controls/FocusToggle.vue.d.cts +19 -0
- package/dist/components/controls/FocusToggle.vue.d.mts +19 -0
- package/dist/components/controls/MediaDeviceSelect.vue.d.cts +45 -0
- package/dist/components/controls/MediaDeviceSelect.vue.d.mts +45 -0
- package/dist/components/controls/PaginationControl.vue.d.cts +18 -0
- package/dist/components/controls/PaginationControl.vue.d.mts +18 -0
- package/dist/components/controls/PaginationIndicator.vue.d.cts +8 -0
- package/dist/components/controls/PaginationIndicator.vue.d.mts +8 -0
- package/dist/components/controls/SettingsMenuToggle.vue.d.cts +16 -0
- package/dist/components/controls/SettingsMenuToggle.vue.d.mts +16 -0
- package/dist/components/controls/StartAudio.vue.d.cts +21 -0
- package/dist/components/controls/StartAudio.vue.d.mts +21 -0
- package/dist/components/controls/StartMediaButton.vue.d.cts +24 -0
- package/dist/components/controls/StartMediaButton.vue.d.mts +24 -0
- package/dist/components/controls/TrackToggle.vue.d.cts +43 -0
- package/dist/components/controls/TrackToggle.vue.d.mts +43 -0
- package/dist/components/controls/VideoQualitySelect.vue.d.cts +33 -0
- package/dist/components/controls/VideoQualitySelect.vue.d.mts +33 -0
- package/dist/components/controls/index.d.cts +24 -0
- package/dist/components/controls/index.d.mts +24 -0
- package/dist/components/icons/CameraDisabledIcon.vue.d.cts +3 -0
- package/dist/components/icons/CameraDisabledIcon.vue.d.mts +3 -0
- package/dist/components/icons/CameraIcon.vue.d.cts +3 -0
- package/dist/components/icons/CameraIcon.vue.d.mts +3 -0
- package/dist/components/icons/ChatCloseIcon.vue.d.cts +3 -0
- package/dist/components/icons/ChatCloseIcon.vue.d.mts +3 -0
- package/dist/components/icons/ChatIcon.vue.d.cts +3 -0
- package/dist/components/icons/ChatIcon.vue.d.mts +3 -0
- package/dist/components/icons/ChevronIcon.vue.d.cts +3 -0
- package/dist/components/icons/ChevronIcon.vue.d.mts +3 -0
- package/dist/components/icons/FocusToggleIcon.vue.d.cts +3 -0
- package/dist/components/icons/FocusToggleIcon.vue.d.mts +3 -0
- package/dist/components/icons/GearIcon.vue.d.cts +3 -0
- package/dist/components/icons/GearIcon.vue.d.mts +3 -0
- package/dist/components/icons/LeaveIcon.vue.d.cts +3 -0
- package/dist/components/icons/LeaveIcon.vue.d.mts +3 -0
- package/dist/components/icons/LockLockedIcon.vue.d.cts +3 -0
- package/dist/components/icons/LockLockedIcon.vue.d.mts +3 -0
- package/dist/components/icons/MicDisabledIcon.vue.d.cts +3 -0
- package/dist/components/icons/MicDisabledIcon.vue.d.mts +3 -0
- package/dist/components/icons/MicIcon.vue.d.cts +3 -0
- package/dist/components/icons/MicIcon.vue.d.mts +3 -0
- package/dist/components/icons/ParticipantPlaceholder.vue.d.cts +3 -0
- package/dist/components/icons/ParticipantPlaceholder.vue.d.mts +3 -0
- package/dist/components/icons/QualityExcellentIcon.vue.d.cts +3 -0
- package/dist/components/icons/QualityExcellentIcon.vue.d.mts +3 -0
- package/dist/components/icons/QualityGoodIcon.vue.d.cts +3 -0
- package/dist/components/icons/QualityGoodIcon.vue.d.mts +3 -0
- package/dist/components/icons/QualityPoorIcon.vue.d.cts +3 -0
- package/dist/components/icons/QualityPoorIcon.vue.d.mts +3 -0
- package/dist/components/icons/QualityUnknownIcon.vue.d.cts +3 -0
- package/dist/components/icons/QualityUnknownIcon.vue.d.mts +3 -0
- package/dist/components/icons/ScreenShareIcon.vue.d.cts +3 -0
- package/dist/components/icons/ScreenShareIcon.vue.d.mts +3 -0
- package/dist/components/icons/ScreenShareStopIcon.vue.d.cts +3 -0
- package/dist/components/icons/ScreenShareStopIcon.vue.d.mts +3 -0
- package/dist/components/icons/SpinnerIcon.vue.d.cts +3 -0
- package/dist/components/icons/SpinnerIcon.vue.d.mts +3 -0
- package/dist/components/icons/UnfocusToggleIcon.vue.d.cts +3 -0
- package/dist/components/icons/UnfocusToggleIcon.vue.d.mts +3 -0
- package/dist/components/icons/index.d.cts +21 -0
- package/dist/components/icons/index.d.mts +21 -0
- package/dist/components/icons/utils.d.cts +4 -0
- package/dist/components/icons/utils.d.mts +4 -0
- package/dist/components/index.d.cts +9 -0
- package/dist/components/index.d.mts +9 -0
- package/dist/components/layout/CarouselLayout.vue.d.cts +24 -0
- package/dist/components/layout/CarouselLayout.vue.d.mts +24 -0
- package/dist/components/layout/FocusLayout.vue.d.cts +16 -0
- package/dist/components/layout/FocusLayout.vue.d.mts +16 -0
- package/dist/components/layout/FocusLayoutContainer.vue.d.cts +14 -0
- package/dist/components/layout/FocusLayoutContainer.vue.d.mts +14 -0
- package/dist/components/layout/GridLayout.vue.d.cts +24 -0
- package/dist/components/layout/GridLayout.vue.d.mts +24 -0
- package/dist/components/layout/LayoutContextProvider.vue.d.cts +27 -0
- package/dist/components/layout/LayoutContextProvider.vue.d.mts +27 -0
- package/dist/components/layout/index.d.cts +10 -0
- package/dist/components/layout/index.d.mts +10 -0
- package/dist/components/participant/AudioTrack.vue.d.cts +17 -0
- package/dist/components/participant/AudioTrack.vue.d.mts +17 -0
- package/dist/components/participant/AudioVisualizer.vue.d.cts +10 -0
- package/dist/components/participant/AudioVisualizer.vue.d.mts +10 -0
- package/dist/components/participant/BarVisualizer.vue.d.cts +46 -0
- package/dist/components/participant/BarVisualizer.vue.d.mts +46 -0
- package/dist/components/participant/ConnectionQualityIndicator.vue.d.cts +19 -0
- package/dist/components/participant/ConnectionQualityIndicator.vue.d.mts +19 -0
- package/dist/components/participant/ParticipantAudioTile.vue.d.cts +23 -0
- package/dist/components/participant/ParticipantAudioTile.vue.d.mts +23 -0
- package/dist/components/participant/ParticipantAvatar.vue.d.cts +10 -0
- package/dist/components/participant/ParticipantAvatar.vue.d.mts +10 -0
- package/dist/components/participant/ParticipantName.vue.d.cts +17 -0
- package/dist/components/participant/ParticipantName.vue.d.mts +17 -0
- package/dist/components/participant/ParticipantTile.vue.d.cts +27 -0
- package/dist/components/participant/ParticipantTile.vue.d.mts +27 -0
- package/dist/components/participant/TrackMutedIndicator.vue.d.cts +22 -0
- package/dist/components/participant/TrackMutedIndicator.vue.d.mts +22 -0
- package/dist/components/participant/VideoTrack.vue.d.cts +17 -0
- package/dist/components/participant/VideoTrack.vue.d.mts +17 -0
- package/dist/components/participant/index.d.cts +19 -0
- package/dist/components/participant/index.d.mts +19 -0
- package/dist/components/prefabs/AudioConference.vue.d.cts +26 -0
- package/dist/components/prefabs/AudioConference.vue.d.mts +26 -0
- package/dist/components/prefabs/Chat.vue.d.cts +36 -0
- package/dist/components/prefabs/Chat.vue.d.mts +36 -0
- package/dist/components/prefabs/ControlBar.vue.d.cts +52 -0
- package/dist/components/prefabs/ControlBar.vue.d.mts +52 -0
- package/dist/components/prefabs/MediaDeviceMenu.vue.d.cts +46 -0
- package/dist/components/prefabs/MediaDeviceMenu.vue.d.mts +46 -0
- package/dist/components/prefabs/PreJoin.vue.d.cts +45 -0
- package/dist/components/prefabs/PreJoin.vue.d.mts +45 -0
- package/dist/components/prefabs/VideoConference.vue.d.cts +28 -0
- package/dist/components/prefabs/VideoConference.vue.d.mts +28 -0
- package/dist/components/prefabs/VoiceAssistantControlBar.vue.d.cts +33 -0
- package/dist/components/prefabs/VoiceAssistantControlBar.vue.d.mts +33 -0
- package/dist/components/prefabs/index.d.cts +14 -0
- package/dist/components/prefabs/index.d.mts +14 -0
- package/dist/components/room/ConnectionStateToast.vue.d.cts +8 -0
- package/dist/components/room/ConnectionStateToast.vue.d.mts +8 -0
- package/dist/components/room/ConnectionStatus.vue.d.cts +19 -0
- package/dist/components/room/ConnectionStatus.vue.d.mts +19 -0
- package/dist/components/room/LiveKitRoom.vue.d.cts +47 -0
- package/dist/components/room/LiveKitRoom.vue.d.mts +47 -0
- package/dist/components/room/ParticipantLoop.vue.d.cts +18 -0
- package/dist/components/room/ParticipantLoop.vue.d.mts +18 -0
- package/dist/components/room/RoomAudioRenderer.vue.d.cts +13 -0
- package/dist/components/room/RoomAudioRenderer.vue.d.mts +13 -0
- package/dist/components/room/RoomName.vue.d.cts +20 -0
- package/dist/components/room/RoomName.vue.d.mts +20 -0
- package/dist/components/room/Toast.vue.d.cts +14 -0
- package/dist/components/room/Toast.vue.d.mts +14 -0
- package/dist/components/room/TrackLoop.vue.d.cts +18 -0
- package/dist/components/room/TrackLoop.vue.d.mts +18 -0
- package/dist/components/room/index.d.cts +16 -0
- package/dist/components/room/index.d.mts +16 -0
- package/dist/components/style.d.cts +11 -0
- package/dist/components/style.d.mts +11 -0
- package/dist/composables/index.d.cts +66 -0
- package/dist/composables/index.d.mts +66 -0
- package/dist/composables/useAgent.d.cts +67 -0
- package/dist/composables/useAgent.d.mts +67 -0
- package/dist/composables/useAgentExpression.d.cts +20 -0
- package/dist/composables/useAgentExpression.d.mts +20 -0
- package/dist/composables/useAudioPlayback.d.cts +10 -0
- package/dist/composables/useAudioPlayback.d.mts +10 -0
- package/dist/composables/useBackgroundEffect.d.cts +43 -0
- package/dist/composables/useBackgroundEffect.d.mts +43 -0
- package/dist/composables/useBarAnimator.d.cts +11 -0
- package/dist/composables/useBarAnimator.d.mts +11 -0
- package/dist/composables/useChat.d.cts +13 -0
- package/dist/composables/useChat.d.mts +13 -0
- package/dist/composables/useChatToggle.d.cts +13 -0
- package/dist/composables/useChatToggle.d.mts +13 -0
- package/dist/composables/useClearPinButton.d.cts +14 -0
- package/dist/composables/useClearPinButton.d.mts +14 -0
- package/dist/composables/useConnectionQualityIndicator.d.cts +9 -0
- package/dist/composables/useConnectionQualityIndicator.d.mts +9 -0
- package/dist/composables/useConnectionState.d.cts +13 -0
- package/dist/composables/useConnectionState.d.mts +13 -0
- package/dist/composables/useConnectionStatus.d.cts +16 -0
- package/dist/composables/useConnectionStatus.d.mts +16 -0
- package/dist/composables/useDataChannel.d.cts +14 -0
- package/dist/composables/useDataChannel.d.mts +14 -0
- package/dist/composables/useDisconnectButton.d.cts +9 -0
- package/dist/composables/useDisconnectButton.d.mts +9 -0
- package/dist/composables/useEvents.d.cts +15 -0
- package/dist/composables/useEvents.d.mts +15 -0
- package/dist/composables/useFacingMode.d.cts +17 -0
- package/dist/composables/useFacingMode.d.mts +17 -0
- package/dist/composables/useFocusToggle.d.cts +14 -0
- package/dist/composables/useFocusToggle.d.mts +14 -0
- package/dist/composables/useGridLayout.d.cts +13 -0
- package/dist/composables/useGridLayout.d.mts +13 -0
- package/dist/composables/useIsEncrypted.d.cts +10 -0
- package/dist/composables/useIsEncrypted.d.mts +10 -0
- package/dist/composables/useIsMuted.d.cts +11 -0
- package/dist/composables/useIsMuted.d.mts +11 -0
- package/dist/composables/useIsRecording.d.cts +9 -0
- package/dist/composables/useIsRecording.d.mts +9 -0
- package/dist/composables/useIsSpeaking.d.cts +9 -0
- package/dist/composables/useIsSpeaking.d.mts +9 -0
- package/dist/composables/useKrispNoiseFilter.d.cts +16 -0
- package/dist/composables/useKrispNoiseFilter.d.mts +16 -0
- package/dist/composables/useLiveKitRoom.d.cts +15 -0
- package/dist/composables/useLiveKitRoom.d.mts +15 -0
- package/dist/composables/useLocalParticipant.d.cts +16 -0
- package/dist/composables/useLocalParticipant.d.mts +16 -0
- package/dist/composables/useLocalParticipantPermissions.d.cts +13 -0
- package/dist/composables/useLocalParticipantPermissions.d.mts +13 -0
- package/dist/composables/useMediaDeviceSelect.d.cts +16 -0
- package/dist/composables/useMediaDeviceSelect.d.mts +16 -0
- package/dist/composables/useMediaDevices.d.cts +12 -0
- package/dist/composables/useMediaDevices.d.mts +12 -0
- package/dist/composables/useMediaTrackBySourceOrName.d.cts +30 -0
- package/dist/composables/useMediaTrackBySourceOrName.d.mts +30 -0
- package/dist/composables/usePagination.d.cts +26 -0
- package/dist/composables/usePagination.d.mts +26 -0
- package/dist/composables/useParticipantAttributes.d.cts +14 -0
- package/dist/composables/useParticipantAttributes.d.mts +14 -0
- package/dist/composables/useParticipantAvatar.d.cts +17 -0
- package/dist/composables/useParticipantAvatar.d.mts +17 -0
- package/dist/composables/useParticipantInfo.d.cts +14 -0
- package/dist/composables/useParticipantInfo.d.mts +14 -0
- package/dist/composables/useParticipantPermissions.d.cts +10 -0
- package/dist/composables/useParticipantPermissions.d.mts +10 -0
- package/dist/composables/useParticipantTile.d.cts +22 -0
- package/dist/composables/useParticipantTile.d.mts +22 -0
- package/dist/composables/useParticipantTracks.d.cts +12 -0
- package/dist/composables/useParticipantTracks.d.mts +12 -0
- package/dist/composables/useParticipants.d.cts +11 -0
- package/dist/composables/useParticipants.d.mts +11 -0
- package/dist/composables/usePersistentUserChoices.d.cts +16 -0
- package/dist/composables/usePersistentUserChoices.d.mts +16 -0
- package/dist/composables/usePinnedTracks.d.cts +10 -0
- package/dist/composables/usePinnedTracks.d.mts +10 -0
- package/dist/composables/usePreviewTracks.d.cts +15 -0
- package/dist/composables/usePreviewTracks.d.mts +15 -0
- package/dist/composables/useRemoteParticipant.d.cts +14 -0
- package/dist/composables/useRemoteParticipant.d.mts +14 -0
- package/dist/composables/useRemoteParticipants.d.cts +10 -0
- package/dist/composables/useRemoteParticipants.d.mts +10 -0
- package/dist/composables/useRoomInfo.d.cts +13 -0
- package/dist/composables/useRoomInfo.d.mts +13 -0
- package/dist/composables/useRpc.d.cts +18 -0
- package/dist/composables/useRpc.d.mts +18 -0
- package/dist/composables/useSequentialRoomConnectDisconnect.d.cts +10 -0
- package/dist/composables/useSequentialRoomConnectDisconnect.d.mts +10 -0
- package/dist/composables/useSession.d.cts +83 -0
- package/dist/composables/useSession.d.mts +83 -0
- package/dist/composables/useSessionMessages.d.cts +22 -0
- package/dist/composables/useSessionMessages.d.mts +22 -0
- package/dist/composables/useSettingsToggle.d.cts +10 -0
- package/dist/composables/useSettingsToggle.d.mts +10 -0
- package/dist/composables/useSortedParticipants.d.cts +9 -0
- package/dist/composables/useSortedParticipants.d.mts +9 -0
- package/dist/composables/useSpeakingParticipants.d.cts +6 -0
- package/dist/composables/useSpeakingParticipants.d.mts +6 -0
- package/dist/composables/useStartAudio.d.cts +10 -0
- package/dist/composables/useStartAudio.d.mts +10 -0
- package/dist/composables/useStartVideo.d.cts +10 -0
- package/dist/composables/useStartVideo.d.mts +10 -0
- package/dist/composables/useSwipe.d.cts +16 -0
- package/dist/composables/useSwipe.d.mts +16 -0
- package/dist/composables/useTextStream.d.cts +27 -0
- package/dist/composables/useTextStream.d.mts +27 -0
- package/dist/composables/useToast.d.cts +9 -0
- package/dist/composables/useToast.d.mts +9 -0
- package/dist/composables/useToken.d.cts +23 -0
- package/dist/composables/useToken.d.mts +23 -0
- package/dist/composables/useTrack.d.cts +12 -0
- package/dist/composables/useTrack.d.mts +12 -0
- package/dist/composables/useTrackByName.d.cts +11 -0
- package/dist/composables/useTrackByName.d.mts +11 -0
- package/dist/composables/useTrackMutedIndicator.d.cts +9 -0
- package/dist/composables/useTrackMutedIndicator.d.mts +9 -0
- package/dist/composables/useTrackRefBySource.d.cts +9 -0
- package/dist/composables/useTrackRefBySource.d.mts +9 -0
- package/dist/composables/useTrackRefBySourceOrName.d.cts +7 -0
- package/dist/composables/useTrackRefBySourceOrName.d.mts +7 -0
- package/dist/composables/useTrackSyncTime.d.cts +13 -0
- package/dist/composables/useTrackSyncTime.d.mts +13 -0
- package/dist/composables/useTrackToggle.d.cts +28 -0
- package/dist/composables/useTrackToggle.d.mts +28 -0
- package/dist/composables/useTrackTranscription.d.cts +15 -0
- package/dist/composables/useTrackTranscription.d.mts +15 -0
- package/dist/composables/useTrackVolume.d.cts +39 -0
- package/dist/composables/useTrackVolume.d.mts +39 -0
- package/dist/composables/useTracks.d.cts +18 -0
- package/dist/composables/useTracks.d.mts +18 -0
- package/dist/composables/useTranscriptions.d.cts +12 -0
- package/dist/composables/useTranscriptions.d.mts +12 -0
- package/dist/composables/useVideoQuality.d.cts +29 -0
- package/dist/composables/useVideoQuality.d.mts +29 -0
- package/dist/composables/useVisualStableUpdate.d.cts +13 -0
- package/dist/composables/useVisualStableUpdate.d.mts +13 -0
- package/dist/composables/useVoiceAssistant.d.cts +16 -0
- package/dist/composables/useVoiceAssistant.d.mts +16 -0
- package/dist/context/connection-state.context.d.cts +18 -0
- package/dist/context/connection-state.context.d.mts +18 -0
- package/dist/context/error.d.cts +3 -0
- package/dist/context/error.d.mts +3 -0
- package/dist/context/feature.context.d.cts +8 -0
- package/dist/context/feature.context.d.mts +8 -0
- package/dist/context/index.d.cts +9 -0
- package/dist/context/index.d.mts +9 -0
- package/dist/context/layout.context.d.cts +15 -0
- package/dist/context/layout.context.d.mts +15 -0
- package/dist/context/participant.context.d.cts +8 -0
- package/dist/context/participant.context.d.mts +8 -0
- package/dist/context/pin.context.d.cts +21 -0
- package/dist/context/pin.context.d.mts +21 -0
- package/dist/context/room.context.d.cts +8 -0
- package/dist/context/room.context.d.mts +8 -0
- package/dist/context/session.context.d.cts +8 -0
- package/dist/context/session.context.d.mts +8 -0
- package/dist/context/toast.context.d.cts +17 -0
- package/dist/context/toast.context.d.mts +17 -0
- package/dist/context/track-reference.context.d.cts +8 -0
- package/dist/context/track-reference.context.d.mts +8 -0
- package/dist/context/widget.context.d.cts +21 -0
- package/dist/context/widget.context.d.mts +21 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/internal/emitter.d.cts +17 -0
- package/dist/internal/emitter.d.mts +17 -0
- package/dist/internal/index.d.cts +4 -0
- package/dist/internal/index.d.mts +4 -0
- package/dist/internal/observable.d.cts +3 -0
- package/dist/internal/observable.d.mts +3 -0
- package/dist/internal/permissions.d.cts +4 -0
- package/dist/internal/permissions.d.mts +4 -0
- package/dist/internal/refs.d.cts +1 -0
- package/dist/internal/refs.d.mts +1 -0
- package/dist/krisp/index.d.cts +1 -0
- package/dist/krisp/index.d.mts +1 -0
- package/dist/krisp.cjs +2 -0
- package/dist/krisp.cjs.map +1 -0
- package/dist/krisp.js +62 -0
- package/dist/krisp.js.map +1 -0
- package/dist/livekit-vue.cjs +2 -0
- package/dist/livekit-vue.cjs.map +1 -0
- package/dist/livekit-vue.js +5095 -20519
- package/dist/livekit-vue.js.map +1 -0
- package/dist/livekit-vue.umd.js +4 -0
- package/dist/livekit-vue.umd.js.map +1 -0
- package/dist/style-CDggj9VO.js +14 -0
- package/dist/style-CDggj9VO.js.map +1 -0
- package/dist/style-CkQyDSsh.cjs +2 -0
- package/dist/style-CkQyDSsh.cjs.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/types/agent.types.d.cts +2 -0
- package/dist/types/agent.types.d.mts +2 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/livekit-room.types.d.cts +19 -0
- package/dist/types/livekit-room.types.d.mts +19 -0
- package/dist/types/participant.types.d.cts +2 -0
- package/dist/types/participant.types.d.mts +2 -0
- package/dist/useLocalParticipant-ByBAgL8i.js +50 -0
- package/dist/useLocalParticipant-ByBAgL8i.js.map +1 -0
- package/dist/useLocalParticipant-Dn5NE_KM.cjs +2 -0
- package/dist/useLocalParticipant-Dn5NE_KM.cjs.map +1 -0
- package/dist/utils/media-choices.utils.d.cts +7 -0
- package/dist/utils/media-choices.utils.d.mts +7 -0
- package/dist/{src/utils/room.utils.d.ts → utils/room.utils.d.cts} +1 -1
- package/dist/utils/room.utils.d.mts +1 -0
- package/package.json +103 -66
- package/dist/favicon.ico +0 -0
- package/dist/index.css +0 -1
- package/dist/livekit-vue.umd.cjs +0 -62
- package/dist/src/assets/index.d.ts +0 -0
- package/dist/src/components/controls/TrackToggle.vue.d.ts +0 -3
- package/dist/src/components/controls/buttons.d.ts +0 -4
- package/dist/src/components/controls/index.d.ts +0 -3
- package/dist/src/components/controls/track_toggle.d.ts +0 -12
- package/dist/src/components/icons/ParticipantPlaceholderIcon.vue.d.ts +0 -2
- package/dist/src/components/icons/TrackIcon.vue.d.ts +0 -7
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/participant/audio_track.d.ts +0 -7
- package/dist/src/composables/index.d.ts +0 -37
- package/dist/src/composables/private/useObservableState.d.ts +0 -8
- package/dist/src/composables/useAudioPlayback.d.ts +0 -11
- package/dist/src/composables/useClearPinButton.d.ts +0 -5
- package/dist/src/composables/useConnectionQualityIndicator.d.ts +0 -10
- package/dist/src/composables/useConnectionState.d.ts +0 -3
- package/dist/src/composables/useDataChannel.d.ts +0 -15
- package/dist/src/composables/useDisconnectButton.d.ts +0 -5
- package/dist/src/composables/useFacingMode.d.ts +0 -10
- package/dist/src/composables/useFocusToggle.d.ts +0 -11
- package/dist/src/composables/useGridLayout.d.ts +0 -10
- package/dist/src/composables/useIsEncrypted.d.ts +0 -8
- package/dist/src/composables/useIsMuted.d.ts +0 -7
- package/dist/src/composables/useIsRecording.d.ts +0 -5
- package/dist/src/composables/useIsSpeaking.d.ts +0 -5
- package/dist/src/composables/useLiveKitRoom.d.ts +0 -8
- package/dist/src/composables/useLocalParticipant.d.ts +0 -16
- package/dist/src/composables/useParticipantTile.d.ts +0 -11
- package/dist/src/composables/useParticipantTracks.d.ts +0 -4
- package/dist/src/composables/useParticipants.d.ts +0 -7
- package/dist/src/composables/usePersistentUserChoices.d.ts +0 -16
- package/dist/src/composables/usePinnedTracks.d.ts +0 -4
- package/dist/src/composables/useRemoteParticipant.d.ts +0 -7
- package/dist/src/composables/useRemoteParticipants.d.ts +0 -7
- package/dist/src/composables/useRoomInfo.d.ts +0 -13
- package/dist/src/composables/useSortedParticipants.d.ts +0 -3
- package/dist/src/composables/useSpeakingParticipants.d.ts +0 -3
- package/dist/src/composables/useStartAudio.d.ts +0 -11
- package/dist/src/composables/useStartVideo.d.ts +0 -11
- package/dist/src/composables/useToken.d.ts +0 -10
- package/dist/src/composables/useTrack.d.ts +0 -3
- package/dist/src/composables/useTrackByName.d.ts +0 -3
- package/dist/src/composables/useTrackMutedIndicator.d.ts +0 -6
- package/dist/src/composables/useTrackRefBySourceOrName.d.ts +0 -4
- package/dist/src/composables/useTrackSyncTime.d.ts +0 -6
- package/dist/src/composables/useTrackToggle.d.ts +0 -21
- package/dist/src/composables/useTrackVolume.d.ts +0 -28
- package/dist/src/composables/useTracks.d.ts +0 -10
- package/dist/src/composables/useVisualStableUpdate.d.ts +0 -8
- package/dist/src/context/index.d.ts +0 -6
- package/dist/src/context/layout.context.d.ts +0 -28
- package/dist/src/context/participant.context.d.ts +0 -9
- package/dist/src/context/pin.context.d.ts +0 -26
- package/dist/src/context/room.context.d.ts +0 -9
- package/dist/src/context/track_reference.context.d.ts +0 -6
- package/dist/src/context/widget.context.d.ts +0 -7
- package/dist/src/index.d.ts +0 -3
- package/dist/src/types/livekit_room.types.d.ts +0 -68
- package/src/assets/icons/chevron-down.svg +0 -4
- package/src/assets/icons/chevron-up.svg +0 -4
- package/src/assets/icons/frown.svg +0 -7
- package/src/assets/icons/heart.svg +0 -6
- package/src/assets/icons/mic-off.svg +0 -8
- package/src/assets/icons/mic.svg +0 -7
- package/src/assets/icons/phone-hang-up.svg +0 -9
- package/src/assets/icons/share-screen-off.svg +0 -6
- package/src/assets/icons/share-screen.svg +0 -7
- package/src/assets/icons/smile.svg +0 -7
- package/src/assets/icons/thumbs-down.svg +0 -6
- package/src/assets/icons/thumbs-up.svg +0 -6
- package/src/assets/icons/video-off.svg +0 -5
- package/src/assets/icons/video.svg +0 -5
- package/src/assets/index.ts +0 -1
- package/src/assets/placeholders/participant.svg +0 -8
- package/src/components/controls/TrackToggle.vue +0 -20
- package/src/components/controls/buttons.ts +0 -5
- package/src/components/controls/index.ts +0 -3
- package/src/components/controls/track_toggle.ts +0 -13
- package/src/components/icons/ParticipantPlaceholderIcon.vue +0 -7
- package/src/components/icons/TrackIcon.vue +0 -55
- package/src/components/index.ts +0 -3
- package/src/components/participant/AudioTrack.vue +0 -17
- package/src/components/participant/audio_track.ts +0 -8
- package/src/composables/index.ts +0 -89
- package/src/composables/private/useObservableState.ts +0 -44
- package/src/composables/useAudioPlayback.ts +0 -42
- package/src/composables/useClearPinButton.ts +0 -41
- package/src/composables/useConnectionQualityIndicator.ts +0 -39
- package/src/composables/useConnectionState.ts +0 -21
- package/src/composables/useDataChannel.ts +0 -56
- package/src/composables/useDisconnectButton.ts +0 -28
- package/src/composables/useFacingMode.ts +0 -28
- package/src/composables/useFocusToggle.ts +0 -38
- package/src/composables/useGridLayout.ts +0 -44
- package/src/composables/useIsEncrypted.ts +0 -34
- package/src/composables/useIsMuted.ts +0 -56
- package/src/composables/useIsRecording.ts +0 -30
- package/src/composables/useIsSpeaking.ts +0 -23
- package/src/composables/useLiveKitRoom.ts +0 -219
- package/src/composables/useLocalParticipant.ts +0 -64
- package/src/composables/useParticipantTile.ts +0 -68
- package/src/composables/useParticipantTracks.ts +0 -36
- package/src/composables/useParticipants.ts +0 -25
- package/src/composables/usePersistentUserChoices.ts +0 -64
- package/src/composables/usePinnedTracks.ts +0 -16
- package/src/composables/useRemoteParticipant.ts +0 -42
- package/src/composables/useRemoteParticipants.ts +0 -27
- package/src/composables/useRoomInfo.ts +0 -42
- package/src/composables/useSortedParticipants.ts +0 -21
- package/src/composables/useSpeakingParticipants.ts +0 -22
- package/src/composables/useStartAudio.ts +0 -53
- package/src/composables/useStartVideo.ts +0 -53
- package/src/composables/useToken.ts +0 -40
- package/src/composables/useTrack.ts +0 -11
- package/src/composables/useTrackByName.ts +0 -11
- package/src/composables/useTrackMutedIndicator.ts +0 -34
- package/src/composables/useTrackRefBySourceOrName.ts +0 -39
- package/src/composables/useTrackSyncTime.ts +0 -32
- package/src/composables/useTrackToggle.ts +0 -110
- package/src/composables/useTrackVolume.ts +0 -268
- package/src/composables/useTracks.ts +0 -122
- package/src/composables/useVisualStableUpdate.ts +0 -57
- package/src/context/index.ts +0 -6
- package/src/context/layout.context.ts +0 -46
- package/src/context/participant.context.ts +0 -33
- package/src/context/pin.context.ts +0 -50
- package/src/context/room.context.ts +0 -31
- package/src/context/track_reference.context.ts +0 -29
- package/src/context/widget.context.ts +0 -17
- package/src/index.css +0 -1
- package/src/index.ts +0 -5
- package/src/types/livekit_room.types.ts +0 -78
- package/src/utils/room.utils.ts +0 -9
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { AudioCaptureOptions, DisconnectReason, MediaDeviceFailure, Room, RoomConnectOptions, RoomOptions, ScreenShareCaptureOptions, VideoCaptureOptions } from 'livekit-client';
|
|
2
|
-
import { HTMLAttributes } from 'vue';
|
|
3
|
-
export type LiveKitRoomProps = {
|
|
4
|
-
/**
|
|
5
|
-
* URL to the LiveKit server.
|
|
6
|
-
* For example: `wss://<domain>.livekit.cloud`
|
|
7
|
-
* To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string url can the connection be established.
|
|
8
|
-
*/
|
|
9
|
-
serverUrl: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* A user specific access token for a client to authenticate to the room.
|
|
12
|
-
* This token is necessary to establish a connection to the room.
|
|
13
|
-
* To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string token can the connection be established.
|
|
14
|
-
*
|
|
15
|
-
* @see https://docs.livekit.io/cloud/project-management/keys-and-tokens/#generating-access-tokens
|
|
16
|
-
*/
|
|
17
|
-
token: string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Publish audio immediately after connecting to your LiveKit room.
|
|
20
|
-
* @defaultValue `false`
|
|
21
|
-
* @see https://docs.livekit.io/client-sdk-js/interfaces/AudioCaptureOptions.html
|
|
22
|
-
*/
|
|
23
|
-
audio?: AudioCaptureOptions | boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Publish video immediately after connecting to your LiveKit room.
|
|
26
|
-
* @defaultValue `false`
|
|
27
|
-
* @see https://docs.livekit.io/client-sdk-js/interfaces/VideoCaptureOptions.html
|
|
28
|
-
*/
|
|
29
|
-
video?: VideoCaptureOptions | boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Publish screen share immediately after connecting to your LiveKit room.
|
|
32
|
-
* @defaultValue `false`
|
|
33
|
-
* @see https://docs.livekit.io/client-sdk-js/interfaces/ScreenShareCaptureOptions.html
|
|
34
|
-
*/
|
|
35
|
-
screen?: ScreenShareCaptureOptions | boolean;
|
|
36
|
-
/**
|
|
37
|
-
* If set to true a connection to LiveKit room is initiated.
|
|
38
|
-
* @defaultValue `true`
|
|
39
|
-
*/
|
|
40
|
-
connect?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Options for when creating a new room.
|
|
43
|
-
* When you pass your own room instance to this component, these options have no effect.
|
|
44
|
-
* Instead, set the options directly in the room instance.
|
|
45
|
-
*
|
|
46
|
-
* @see https://docs.livekit.io/client-sdk-js/interfaces/RoomOptions.html
|
|
47
|
-
*/
|
|
48
|
-
options?: RoomOptions;
|
|
49
|
-
/**
|
|
50
|
-
* Define options how to connect to the LiveKit server.
|
|
51
|
-
*
|
|
52
|
-
* @see https://docs.livekit.io/client-sdk-js/interfaces/RoomConnectOptions.html
|
|
53
|
-
*/
|
|
54
|
-
connectOptions?: RoomConnectOptions;
|
|
55
|
-
/**
|
|
56
|
-
* Optional room instance.
|
|
57
|
-
* By passing your own room instance you overwrite the `options` parameter,
|
|
58
|
-
* make sure to set the options directly on the room instance itself.
|
|
59
|
-
*/
|
|
60
|
-
room?: Room;
|
|
61
|
-
simulateParticipants?: number | undefined;
|
|
62
|
-
htmlProps?: HTMLAttributes;
|
|
63
|
-
onConnected?: () => void;
|
|
64
|
-
onDisconnected?: (reason?: DisconnectReason) => void;
|
|
65
|
-
onError?: (error: Error) => void;
|
|
66
|
-
onMediaDeviceFailure?: (failure?: MediaDeviceFailure) => void;
|
|
67
|
-
onEncryptionError?: (error: Error) => void;
|
|
68
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="frown">
|
|
3
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
4
|
-
<path d="M16 16s-1.5-2-4-2-4 2-4 2"></path>
|
|
5
|
-
<line x1="9" y1="9" x2="9.01" y2="9"></line>
|
|
6
|
-
<line x1="15" y1="9" x2="15.01" y2="9"></line>
|
|
7
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="heart">
|
|
3
|
-
<path
|
|
4
|
-
d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z">
|
|
5
|
-
</path>
|
|
6
|
-
</svg>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mic-off">
|
|
3
|
-
<line x1="1" y1="1" x2="23" y2="23"></line>
|
|
4
|
-
<path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path>
|
|
5
|
-
<path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path>
|
|
6
|
-
<line x1="12" y1="19" x2="12" y2="23"></line>
|
|
7
|
-
<line x1="8" y1="23" x2="16" y2="23"></line>
|
|
8
|
-
</svg>
|
package/src/assets/icons/mic.svg
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mic">
|
|
3
|
-
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
|
|
4
|
-
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
|
|
5
|
-
<line x1="12" y1="19" x2="12" y2="23"></line>
|
|
6
|
-
<line x1="8" y1="23" x2="16" y2="23"></line>
|
|
7
|
-
</svg>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 200.000000 200.000000" width="100%" height="100%" class="phone-hang-up">
|
|
2
|
-
<g transform="translate(0.000000,200.000000) scale(0.100000,-0.100000)" fill="currentColor" stroke="none">
|
|
3
|
-
<path d="M799 1330 c-149 -11 -309 -41 -399 -77 -184 -73 -265 -173 -293 -358
|
|
4
|
-
-17 -113 5 -174 76 -213 27 -14 56 -16 171 -15 227 4 244 16 261 189 9 94 15
|
|
5
|
-
120 30 130 15 11 88 14 357 14 315 0 339 -1 356 -18 15 -15 20 -41 26 -117 11
|
|
6
|
-
-163 32 -184 193 -197 191 -15 267 6 305 82 23 46 23 109 -2 205 -35 135 -96
|
|
7
|
-
211 -222 273 -173 85 -514 125 -859 102z" />
|
|
8
|
-
</g>
|
|
9
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
|
|
2
|
-
class="share-screen-off">
|
|
3
|
-
<path
|
|
4
|
-
d="M9.4 15.6538L12 13.0538L14.6 15.6538L15.6538 14.6L13.0538 12L15.6538 9.4L14.6 8.34625L12 10.9462L9.4 8.34625L8.34625 9.4L10.9462 12L8.34625 14.6L9.4 15.6538ZM4.30775 19.5C3.80258 19.5 3.375 19.325 3.025 18.975C2.675 18.625 2.5 18.1974 2.5 17.6923V6.30775C2.5 5.80258 2.675 5.375 3.025 5.025C3.375 4.675 3.80258 4.5 4.30775 4.5H19.6923C20.1974 4.5 20.625 4.675 20.975 5.025C21.325 5.375 21.5 5.80258 21.5 6.30775V17.6923C21.5 18.1974 21.325 18.625 20.975 18.975C20.625 19.325 20.1974 19.5 19.6923 19.5H4.30775ZM4.30775 18H19.6923C19.7693 18 19.8398 17.9679 19.9038 17.9038C19.9679 17.8398 20 17.7692 20 17.6923V6.30775C20 6.23075 19.9679 6.16025 19.9038 6.09625C19.8398 6.03208 19.7693 6 19.6923 6H4.30775C4.23075 6 4.16025 6.03208 4.09625 6.09625C4.03208 6.16025 4 6.23075 4 6.30775V17.6923C4 17.7692 4.03208 17.8398 4.09625 17.9038C4.16025 17.9679 4.23075 18 4.30775 18Z"
|
|
5
|
-
fill="currentColor" />
|
|
6
|
-
</svg>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" class="share-screen">
|
|
2
|
-
<g>
|
|
3
|
-
<path
|
|
4
|
-
d="M9.37516 13.0448H10.6252V9.36208L12.1668 10.891L13.0579 10L10.0002 6.95521L6.95537 10L7.84641 10.8781L9.37516 9.34937V13.0448ZM3.58995 16.25C3.16898 16.25 2.81266 16.1042 2.521 15.8125C2.22933 15.5208 2.0835 15.1645 2.0835 14.7435V5.25646C2.0835 4.83549 2.22933 4.47917 2.521 4.1875C2.81266 3.89583 3.16898 3.75 3.58995 3.75H16.4104C16.8313 3.75 17.1877 3.89583 17.4793 4.1875C17.771 4.47917 17.9168 4.83549 17.9168 5.25646V14.7435C17.9168 15.1645 17.771 15.5208 17.4793 15.8125C17.1877 16.1042 16.8313 16.25 16.4104 16.25H3.58995ZM3.58995 15H16.4104C16.4745 15 16.5333 14.9733 16.5866 14.9198C16.6401 14.8665 16.6668 14.8077 16.6668 14.7435V5.25646C16.6668 5.19229 16.6401 5.13354 16.5866 5.08021C16.5333 5.02674 16.4745 5 16.4104 5H3.58995C3.52579 5 3.46704 5.02674 3.4137 5.08021C3.36023 5.13354 3.3335 5.19229 3.3335 5.25646V14.7435C3.3335 14.8077 3.36023 14.8665 3.4137 14.9198C3.46704 14.9733 3.52579 15 3.58995 15Z"
|
|
5
|
-
fill="currentColor" />
|
|
6
|
-
</g>
|
|
7
|
-
</svg>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="smile">
|
|
3
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
4
|
-
<path d="M8 14s1.5 2 4 2 4-2 4-2"></path>
|
|
5
|
-
<line x1="9" y1="9" x2="9.01" y2="9"></line>
|
|
6
|
-
<line x1="15" y1="9" x2="15.01" y2="9"></line>
|
|
7
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="thumbs-down">
|
|
3
|
-
<path
|
|
4
|
-
d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17">
|
|
5
|
-
</path>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="thumbs-up">
|
|
3
|
-
<path
|
|
4
|
-
d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3">
|
|
5
|
-
</path>
|
|
6
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="video-off">
|
|
3
|
-
<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path>
|
|
4
|
-
<line x1="1" y1="1" x2="23" y2="23"></line>
|
|
5
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
-
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="video">
|
|
3
|
-
<polygon points="23 7 16 12 23 17 23 7"></polygon>
|
|
4
|
-
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
|
|
5
|
-
</svg>
|
package/src/assets/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg width="100%" height="100%" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
3
|
-
d="M160 180C204.182 180 240 144.183 240 100C240 55.8172 204.182 20 160 20C115.817 20 79.9997 55.8172 79.9997 100C79.9997 144.183 115.817 180 160 180Z"
|
|
4
|
-
fill="currentColor" fillOpacity="0.25" />
|
|
5
|
-
<path
|
|
6
|
-
d="M97.6542 194.614C103.267 191.818 109.841 192.481 115.519 195.141C129.025 201.466 144.1 205 159.999 205C175.899 205 190.973 201.466 204.48 195.141C210.158 192.481 216.732 191.818 222.345 194.614C262.703 214.719 291.985 253.736 298.591 300.062C300.15 310.997 291.045 320 280 320H39.9997C28.954 320 19.8495 310.997 21.4087 300.062C28.014 253.736 57.2966 214.72 97.6542 194.614Z"
|
|
7
|
-
fill="currentColor" fillOpacity="0.25" />
|
|
8
|
-
</svg>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button v-bind="trackToggle.buttonProps" class="track-toggle">
|
|
3
|
-
<span v-if="showIcon">
|
|
4
|
-
<TrackIcon :enabled="enabled" :source="source" />
|
|
5
|
-
</span>
|
|
6
|
-
</button>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup lang="ts">
|
|
10
|
-
import TrackIcon from '@/components/icons/TrackIcon.vue';
|
|
11
|
-
import { useTrackToggle } from '@/composables';
|
|
12
|
-
import { computed } from 'vue';
|
|
13
|
-
import type { TrackToggleProps } from './track_toggle';
|
|
14
|
-
|
|
15
|
-
const props = defineProps<TrackToggleProps>();
|
|
16
|
-
|
|
17
|
-
const trackToggle = useTrackToggle(props);
|
|
18
|
-
|
|
19
|
-
const enabled = computed<boolean>(() => trackToggle.enabled.value);
|
|
20
|
-
</script>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CaptureOptionsBySource, ToggleSource } from '@livekit/components-core';
|
|
2
|
-
import type { TrackPublishOptions } from 'livekit-client';
|
|
3
|
-
|
|
4
|
-
export interface TrackToggleProps {
|
|
5
|
-
source: ToggleSource;
|
|
6
|
-
showIcon?: boolean;
|
|
7
|
-
initialState?: boolean;
|
|
8
|
-
captureOptions?: CaptureOptionsBySource<ToggleSource>;
|
|
9
|
-
publishOptions?: TrackPublishOptions;
|
|
10
|
-
onChange?: (enabled: boolean, isUserInitiated: boolean) => void;
|
|
11
|
-
onDeviceError?: (error: Error | unknown) => void;
|
|
12
|
-
customOnClickHandler?: (evt: MouseEvent) => void;
|
|
13
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<VideoSvg v-if="source === TrackIcon.Camera" :class="trackIconClasses" />
|
|
3
|
-
<VideoOffSvg v-else-if="source === TrackIcon.CameraDisabled" :class="trackIconClasses" />
|
|
4
|
-
<MicSvg v-else-if="source === TrackIcon.Microphone" :class="trackIconClasses" />
|
|
5
|
-
<MicOffSvg v-else-if="source === TrackIcon.MicrophoneDisabled" :class="trackIconClasses" />
|
|
6
|
-
<ScreenShareSvg v-else-if="source === TrackIcon.ScreenShare" :class="trackIconClasses" />
|
|
7
|
-
<ScreenShareDisabledSvg
|
|
8
|
-
v-else-if="source === TrackIcon.ScreenShareDisabled"
|
|
9
|
-
:class="trackIconClasses"
|
|
10
|
-
/>
|
|
11
|
-
<span v-else class="track-icon__none" />
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import MicOffSvg from '@/assets/icons/mic-off.svg?component';
|
|
16
|
-
import MicSvg from '@/assets/icons/mic.svg?component';
|
|
17
|
-
import ScreenShareDisabledSvg from '@/assets/icons/share-screen-off.svg?component';
|
|
18
|
-
import ScreenShareSvg from '@/assets/icons/share-screen.svg?component';
|
|
19
|
-
import VideoOffSvg from '@/assets/icons/video-off.svg?component';
|
|
20
|
-
import VideoSvg from '@/assets/icons/video.svg?component';
|
|
21
|
-
import { Track } from 'livekit-client';
|
|
22
|
-
import { computed } from 'vue';
|
|
23
|
-
|
|
24
|
-
const props = defineProps<{
|
|
25
|
-
source: Track.Source;
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
}>();
|
|
28
|
-
|
|
29
|
-
enum TrackIcon {
|
|
30
|
-
None = 'none',
|
|
31
|
-
Camera = 'camera',
|
|
32
|
-
CameraDisabled = 'camera-disabled',
|
|
33
|
-
Microphone = 'microphone',
|
|
34
|
-
MicrophoneDisabled = 'microphone-disabled',
|
|
35
|
-
ScreenShare = 'screen-share',
|
|
36
|
-
ScreenShareDisabled = 'screen-share-disabled',
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const source = computed<TrackIcon>(() => {
|
|
40
|
-
switch (props.source) {
|
|
41
|
-
case Track.Source.Camera:
|
|
42
|
-
return props.enabled ? TrackIcon.Camera : TrackIcon.CameraDisabled;
|
|
43
|
-
case Track.Source.Microphone:
|
|
44
|
-
return props.enabled ? TrackIcon.Microphone : TrackIcon.MicrophoneDisabled;
|
|
45
|
-
case Track.Source.ScreenShare:
|
|
46
|
-
return props.enabled ? TrackIcon.ScreenShare : TrackIcon.ScreenShareDisabled;
|
|
47
|
-
default:
|
|
48
|
-
return TrackIcon.None;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
const trackIconClasses = computed<string>(() => {
|
|
53
|
-
return /*tw*/ 'track-icon w-4 h-4 flex items-center justify-center';
|
|
54
|
-
});
|
|
55
|
-
</script>
|
package/src/components/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<audio ref="audioElement" class="audio" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="ts">
|
|
6
|
-
import { useEnsureTrackRef } from '@/context/track_reference.context';
|
|
7
|
-
import { ref, toRefs } from 'vue';
|
|
8
|
-
import { type AudioTrackProps } from './audio_track';
|
|
9
|
-
|
|
10
|
-
const props = defineProps<AudioTrackProps>();
|
|
11
|
-
|
|
12
|
-
const { trackRef, volume, muted, onSubscriptionStatusChanged } = toRefs(props);
|
|
13
|
-
|
|
14
|
-
const trackReference = useEnsureTrackRef(trackRef.value);
|
|
15
|
-
|
|
16
|
-
const audioElement = ref<HTMLAudioElement>();
|
|
17
|
-
</script>
|
package/src/composables/index.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
useAudioPlayback,
|
|
3
|
-
type AudioPlaybackObservable,
|
|
4
|
-
type UseAudioPlaybackRetunType,
|
|
5
|
-
} from './useAudioPlayback';
|
|
6
|
-
export { useClearPinButton, type UseClearButtonReturnType } from './useClearPinButton';
|
|
7
|
-
export {
|
|
8
|
-
useConnectionQualityIndicator,
|
|
9
|
-
type ConnectionQualityIndicatorOptions,
|
|
10
|
-
type ConnectionQualityIndicatorReturnType,
|
|
11
|
-
} from './useConnectionQualityIndicator';
|
|
12
|
-
export { useConnectionState } from './useConnectionState';
|
|
13
|
-
export {
|
|
14
|
-
useDataChannel,
|
|
15
|
-
type MessagePayload,
|
|
16
|
-
type UseDataChannelReturnType,
|
|
17
|
-
} from './useDataChannel';
|
|
18
|
-
export { useDisconnectButton } from './useDisconnectButton';
|
|
19
|
-
export { FacingMode, useFacingMode } from './useFacingMode';
|
|
20
|
-
export {
|
|
21
|
-
useFocusToggle,
|
|
22
|
-
type UseFocusToggleProps,
|
|
23
|
-
type UseFocusToggleReturnType,
|
|
24
|
-
} from './useFocusToggle';
|
|
25
|
-
export { useGridLayout, type UseGridLayoutReturnType } from './useGridLayout';
|
|
26
|
-
export {
|
|
27
|
-
useIsEncrypted,
|
|
28
|
-
type EncryptedObservable,
|
|
29
|
-
type UseIsEncryptedOptions,
|
|
30
|
-
} from './useIsEncrypted';
|
|
31
|
-
export { useIsMuted, type UseIsMutedOptions } from './useIsMuted';
|
|
32
|
-
export { useIsRecording, type UseIsRecordingObservable } from './useIsRecording';
|
|
33
|
-
export { useIsSpeaking, type IsSpeakingObservable } from './useIsSpeaking';
|
|
34
|
-
export { useLiveKitRoom, type UseLiveKitRoomReturn } from './useLiveKitRoom';
|
|
35
|
-
export {
|
|
36
|
-
useLocalParticipant,
|
|
37
|
-
type UseLocalParticipantOptions,
|
|
38
|
-
type UseLocalParticipantReturnType,
|
|
39
|
-
} from './useLocalParticipant';
|
|
40
|
-
export { useParticipants, type UseParticipantsOptions } from './useParticipants';
|
|
41
|
-
export { useParticipantTile, type UseParticipantTileProps } from './useParticipantTile';
|
|
42
|
-
export { useParticipantTracks } from './useParticipantTracks';
|
|
43
|
-
export {
|
|
44
|
-
usePersistentUserChoices,
|
|
45
|
-
type UsePersistentUserChoicesOptions,
|
|
46
|
-
type UsePersistentUserChoicesReturnType,
|
|
47
|
-
} from './usePersistentUserChoices';
|
|
48
|
-
export { usePinnedTracks } from './usePinnedTracks';
|
|
49
|
-
export { useRemoteParticipant, type UseRemoteParticipantOptions } from './useRemoteParticipant';
|
|
50
|
-
export { useRemoteParticipants, type UseRemoteParticipantsOptions } from './useRemoteParticipants';
|
|
51
|
-
export { useRoomInfo, type RoomInfo, type UseRoomInfoOptions } from './useRoomInfo';
|
|
52
|
-
export { useSortedParticipants } from './useSortedParticipants';
|
|
53
|
-
export { useSpeakingParticipants } from './useSpeakingParticipants';
|
|
54
|
-
export {
|
|
55
|
-
useStartAudio,
|
|
56
|
-
type UseStartAudioProps,
|
|
57
|
-
type UseStartAudioReturnType,
|
|
58
|
-
} from './useStartAudio';
|
|
59
|
-
export {
|
|
60
|
-
useStartVideo,
|
|
61
|
-
type UseStartVideoProps,
|
|
62
|
-
type UseStartVideoReturnType,
|
|
63
|
-
} from './useStartVideo';
|
|
64
|
-
export { useToken, type UseTokenOptions, type UserInfo } from './useToken';
|
|
65
|
-
export { useTrack } from './useTrack';
|
|
66
|
-
export { useTrackByName } from './useTrackByName';
|
|
67
|
-
export { useTrackMutedIndicator } from './useTrackMutedIndicator';
|
|
68
|
-
export { useTrackRefBySourceOrName } from './useTrackRefBySourceOrName';
|
|
69
|
-
export {
|
|
70
|
-
requiredPlaceholders,
|
|
71
|
-
useTracks,
|
|
72
|
-
type UseTracksHookReturnType,
|
|
73
|
-
type UseTracksOptions,
|
|
74
|
-
} from './useTracks';
|
|
75
|
-
export { useTrackSyncTime } from './useTrackSyncTime';
|
|
76
|
-
export {
|
|
77
|
-
useTrackToggle,
|
|
78
|
-
type StateObserver,
|
|
79
|
-
type UseTrackToggleProps,
|
|
80
|
-
type UseTrackToggleReturnType,
|
|
81
|
-
} from './useTrackToggle';
|
|
82
|
-
export {
|
|
83
|
-
useAudioWaveform,
|
|
84
|
-
useMultibandTrackVolume,
|
|
85
|
-
useTrackVolume,
|
|
86
|
-
type AudioWaveformOptions,
|
|
87
|
-
type MultiBandTrackVolumeOptions,
|
|
88
|
-
} from './useTrackVolume';
|
|
89
|
-
export { useVisualStableUpdate, type UseVisualStableUpdateOptions } from './useVisualStableUpdate';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { useSubscription } from '@vueuse/rxjs';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { computed, shallowRef, watch, type ShallowRef } from 'vue';
|
|
4
|
-
|
|
5
|
-
export type UseObservableStateArgs<T = unknown> = {
|
|
6
|
-
observable?: Observable<T> | undefined;
|
|
7
|
-
startWith: T;
|
|
8
|
-
resetWhenObservableChanges?: boolean;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export function useObservableState<T>(options: UseObservableStateArgs<T>): ShallowRef<T> {
|
|
12
|
-
const state = shallowRef<T>(options.startWith);
|
|
13
|
-
|
|
14
|
-
const observable = computed<Observable<T | undefined> | undefined>(() => {
|
|
15
|
-
return options.observable;
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
const resetWhenObservableChanges = computed<boolean>(() => {
|
|
19
|
-
return options.resetWhenObservableChanges ?? false;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
function update() {
|
|
23
|
-
if (resetWhenObservableChanges.value) {
|
|
24
|
-
state.value = options.startWith;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof window === 'undefined' || !options.observable) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (observable.value) {
|
|
32
|
-
useSubscription(
|
|
33
|
-
observable.value.subscribe((value) => {
|
|
34
|
-
state.value = value ?? options.startWith;
|
|
35
|
-
}),
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
watch(observable, update);
|
|
41
|
-
watch(state, update);
|
|
42
|
-
|
|
43
|
-
return state;
|
|
44
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useEnsureRoomContext } from '@/context/room.context';
|
|
2
|
-
import { roomAudioPlaybackAllowedObservable } from '@livekit/components-core';
|
|
3
|
-
import type { Room } from 'livekit-client';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { computed, toRefs, type ShallowRef } from 'vue';
|
|
6
|
-
import { useObservableState } from './private/useObservableState';
|
|
7
|
-
|
|
8
|
-
export type AudioPlaybackObservable = Observable<{
|
|
9
|
-
canPlayAudio: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
|
|
12
|
-
export type UseAudioPlaybackRetunType = {
|
|
13
|
-
canPlayAudio: ShallowRef<boolean>;
|
|
14
|
-
startAudio: () => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export function useAudioPlayback(room?: Room): UseAudioPlaybackRetunType {
|
|
18
|
-
const roomEnsured = useEnsureRoomContext(room);
|
|
19
|
-
|
|
20
|
-
async function startAudio() {
|
|
21
|
-
await roomEnsured.value.startAudio();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const observable = computed<AudioPlaybackObservable>(
|
|
25
|
-
() =>
|
|
26
|
-
roomAudioPlaybackAllowedObservable(roomEnsured.value) as unknown as AudioPlaybackObservable,
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const observableState = useObservableState({
|
|
30
|
-
observable: observable.value as unknown as AudioPlaybackObservable,
|
|
31
|
-
startWith: {
|
|
32
|
-
canPlayAudio: roomEnsured.value.canPlaybackVideo,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const { canPlayAudio } = toRefs(observableState.value);
|
|
37
|
-
|
|
38
|
-
return {
|
|
39
|
-
canPlayAudio,
|
|
40
|
-
startAudio,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useEnsureLayoutContext } from '@/context/layout.context';
|
|
2
|
-
import type { PinContext } from '@/context/pin.context';
|
|
3
|
-
import { type PinState } from '@livekit/components-core';
|
|
4
|
-
import { computed, type HTMLAttributes, type ShallowRef } from 'vue';
|
|
5
|
-
|
|
6
|
-
export type UseClearButtonReturnType = {
|
|
7
|
-
elementProps: ShallowRef<HTMLAttributes>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export function useClearPinButton(props: HTMLAttributes): UseClearButtonReturnType {
|
|
11
|
-
const layoutContext = useEnsureLayoutContext();
|
|
12
|
-
|
|
13
|
-
const pinState = computed<PinContext>(() => {
|
|
14
|
-
return layoutContext.value.pin;
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const state = computed<PinState>(() => {
|
|
18
|
-
return pinState.value.state;
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const dispatch = computed<PinContext['dispatch']>(() => {
|
|
22
|
-
return pinState.value.dispatch;
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const elementProps = computed<HTMLAttributes>(() => {
|
|
26
|
-
return {
|
|
27
|
-
...props,
|
|
28
|
-
class: 'lk-clear-pin-button',
|
|
29
|
-
disabled: !state.value?.length,
|
|
30
|
-
onClick: () => {
|
|
31
|
-
if (dispatch.value) {
|
|
32
|
-
dispatch.value({ msg: 'clear_pin' });
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return {
|
|
39
|
-
elementProps,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { useEnsureParticipant } from '@/context/participant.context';
|
|
2
|
-
import { setupConnectionQualityIndicator } from '@livekit/components-core';
|
|
3
|
-
import { ConnectionQuality, type Participant } from 'livekit-client';
|
|
4
|
-
import type { Observable } from 'rxjs';
|
|
5
|
-
import { computed, toRefs, type ShallowRef } from 'vue';
|
|
6
|
-
import { useObservableState } from './private/useObservableState';
|
|
7
|
-
|
|
8
|
-
export type ConnectionQualityIndicatorOptions = {
|
|
9
|
-
participant?: Participant;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type ConnectionQualityIndicatorReturnType = {
|
|
13
|
-
className: ShallowRef<string>;
|
|
14
|
-
quality: ShallowRef<ConnectionQuality>;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export function useConnectionQualityIndicator(
|
|
18
|
-
options: ConnectionQualityIndicatorOptions = {},
|
|
19
|
-
): ConnectionQualityIndicatorReturnType {
|
|
20
|
-
const p = useEnsureParticipant(options.participant);
|
|
21
|
-
|
|
22
|
-
const setupConnectionQualityIndicatorResult = computed(() =>
|
|
23
|
-
setupConnectionQualityIndicator(p.value),
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
const { className, connectionQualityObserver } = toRefs(
|
|
27
|
-
setupConnectionQualityIndicatorResult.value,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
const quality = useObservableState({
|
|
31
|
-
observable: connectionQualityObserver.value as unknown as Observable<ConnectionQuality>,
|
|
32
|
-
startWith: ConnectionQuality.Unknown,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
className,
|
|
37
|
-
quality,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useEnsureRoomContext } from '@/context/room.context';
|
|
2
|
-
import { connectionStateObserver } from '@livekit/components-core';
|
|
3
|
-
import { ConnectionState, type Room } from 'livekit-client';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { computed, type ShallowRef } from 'vue';
|
|
6
|
-
import { useObservableState } from './private/useObservableState';
|
|
7
|
-
|
|
8
|
-
export function useConnectionState(room?: Room): ShallowRef<ConnectionState> {
|
|
9
|
-
const r = useEnsureRoomContext(room);
|
|
10
|
-
|
|
11
|
-
const observable = computed<Observable<ConnectionState>>(
|
|
12
|
-
() => connectionStateObserver(r.value) as unknown as Observable<ConnectionState>,
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
const connectionState = useObservableState({
|
|
16
|
-
observable: observable.value as unknown as Observable<ConnectionState>,
|
|
17
|
-
startWith: r.value.state,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
return connectionState;
|
|
21
|
-
}
|