jam-core-react
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -26,3 +26,3 @@ import React from 'react'; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
myIdentity: import("../jam-core/state").IdentityType | null; | ||
@@ -61,2 +61,3 @@ myId: string | null; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -107,2 +108,3 @@ audioPlayError: boolean; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -120,3 +122,3 @@ audioPlayError: boolean; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<import("../jam-core/state").RoomType> | undefined) => Promise<boolean>; | ||
@@ -141,2 +143,3 @@ updateRoom: (roomId: string, room: import("../jam-core/state").RoomType) => Promise<boolean>; | ||
switchCamera: () => Promise<void>; | ||
selectMicrophone: (mic: InputDeviceInfo) => Promise<void>; | ||
startRecording: () => Promise<void>; | ||
@@ -189,2 +192,3 @@ stopRecording: () => Promise<void>; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -222,3 +226,3 @@ audioPlayError: boolean; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: { | ||
myIdentity: import("../jam-core/state").IdentityType | null; | ||
@@ -257,2 +261,3 @@ myId: string | null; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -303,2 +308,3 @@ audioPlayError: boolean; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -316,3 +322,3 @@ audioPlayError: boolean; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<import("../jam-core/state").RoomType> | undefined) => Promise<boolean>; | ||
@@ -337,2 +343,3 @@ updateRoom: (roomId: string, room: import("../jam-core/state").RoomType) => Promise<boolean>; | ||
switchCamera: () => Promise<void>; | ||
selectMicrophone: (mic: InputDeviceInfo) => Promise<void>; | ||
startRecording: () => Promise<void>; | ||
@@ -339,0 +346,0 @@ stopRecording: () => Promise<void>; |
@@ -48,2 +48,3 @@ import { is, set, on, update, until } from 'minimal-state'; | ||
switchCamera: () => Promise<void>; | ||
selectMicrophone: (mic: InputDeviceInfo) => Promise<void>; | ||
startRecording: () => Promise<void>; | ||
@@ -106,6 +107,6 @@ stopRecording: () => Promise<void>; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: StateType[L]): void; | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: StateType[L]): void; | ||
(state: Partial<StateType>): void; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "iAmPresenter" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "availableMicrophones" | "myVideo" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<RoomType> | undefined) => Promise<boolean>; | ||
@@ -130,2 +131,3 @@ updateRoom: (roomId: string, room: RoomType) => Promise<boolean>; | ||
switchCamera: () => Promise<void>; | ||
selectMicrophone: (mic: InputDeviceInfo) => Promise<void>; | ||
startRecording: () => Promise<void>; | ||
@@ -132,0 +134,0 @@ stopRecording: () => Promise<void>; |
@@ -82,2 +82,3 @@ export { defaultProps, defaultState }; | ||
myAudio: MediaStream | null; | ||
availableMicrophones: InputDeviceInfo[]; | ||
myVideo: MediaStream | null; | ||
@@ -103,2 +104,3 @@ audioPlayError: boolean; | ||
RETRY_MIC: any; | ||
SELECT_MIC: any; | ||
RETRY_AUDIO: any; | ||
@@ -105,0 +107,0 @@ REACTION: any; |
{ | ||
"name": "jam-core-react", | ||
"description": "React hooks for creating custom audio spaces like Clubhouse / Twitter Spaces, made with WebRTC", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"main": "dist/index.js", | ||
@@ -23,3 +23,3 @@ "license": "(AGPL-3.0 OR Apache-2.0)", | ||
"fast-base64": "^0.1.8", | ||
"jam-core": "0.5.5", | ||
"jam-core": "0.5.6", | ||
"minimal-state": "^5.6.0", | ||
@@ -26,0 +26,0 @@ "use-minimal-state": "^3.5.0", |
Sorry, the diff of this file is too big to display
407460
2655
+ Addedjam-core@0.5.6(transitive)
- Removedjam-core@0.5.5(transitive)
Updatedjam-core@0.5.6