React library for accessing browser media like camera, microphone, screen capture, etc
co-media
React library for accessing browser media like camera, microphone, screen capture, etc.
Functions
function closeStream(stream: MediaStream): void
function requestMediaDeviceStream(info: ExtendedMediaDeviceInfo): Promise<MediaStream>
function getStreamType(stream: MediaStream): StreamType
function useStreamType(stream: MediaStream): StreamType
function useStreamActive(stream: MediaStream): boolean
function useSelectDefaultMediaDevice(
kind: ExtendedMediaDeviceInfo["kind"],
from: Array<ExtendedMediaDeviceInfo>
): ExtendedMediaDeviceInfo | undefined
function useMediaDevices(): Array<ExtendedMediaDeviceInfo>
Examples
Shows an example implementation of an conference app (not networked) styled with Material Icons and Bootstrap.