@coconut-xr/media
v1.1.1
Published
React library for accessing browser media like camera, microphone, screen capture, etc.
Downloads
9
Readme
@coconut-xr/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.