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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i co-media

Weekly Downloads

0

Version

1.1.0

License

SEE LICENSE IN LICENSE

Unpacked Size

12.3 kB

Total Files

12

Last publish

Collaborators

  • bbohlender