Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement voice slice #10

Open
hugoponthieu opened this issue May 12, 2024 · 0 comments
Open

Implement voice slice #10

hugoponthieu opened this issue May 12, 2024 · 0 comments

Comments

@hugoponthieu
Copy link
Member

To implement the voice feature we need a bunch of datas like the video source or the bit per second we are going to send. Therefore we will use a redux slice to store all those datas. The state of datas should look like this:

export interface IVoice {
codec: string
videoBitsPerSecond: number
audioBitsPerSecond: number
bufferLength: number
videoDevice: Media | null
audioInputDevice: Media | null
audioOutputDevice: Media | null
devices: Device[]
onlyAudio: boolean
permissions: {
	audio: PermissionState
	video: PermissionState
	}
}
  • Create the slice with that state
  • Implements reducers to change values

Example here$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant