co-media
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

co-media

Build Status  Npm package version  GitHub license  Twitter

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.

Example

/co-media/

    Package Sidebar

    Install

    npm i co-media

    Weekly Downloads

    6

    Version

    1.1.0

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    12.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • bbohlender