docs.rs failed to build videocall-client-1.1.24
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
videocall-client
A Rust client library for the videocall.rs project that handles client-side browser media I/O for video calls.
This crate provides:
- Media encoding for local camera, microphone, and screen sharing
- Rendering of remote peers' media
- Media device enumeration and access management
Currently supports Chromium based browsers only, including Chrome, Edge, and Brave.
Quick Start
Client creation and connection:
let options = VideoCallClientOptions ; // set parameters and callbacks for various events
let client = new;
client.connect;
Encoder creation:
let camera = CameraEncoder.new;
let microphone = MicrophoneEncoder.new;
let screen = ScreenEncoder.new;
camera.select;
camera.start;
camera.stop;
microphone.select;
microphone.start;
microphone.stop;
screen.start;
screen.stop;
Device access permission:
let media_device_access = new;
media_device_access.on_granted = ...; // callback
media_device_access.on_denied = ...; // callback
media_device_access.request;
Device query and listing:
let media_device_list = new;
media_device_list.audio_inputs.on_selected = ...; // callback
media_device_access.video_inputs.on_selected = ...; // callback
media_device_list.load;
let microphones = media_device_list.audio_inputs.devices;
let cameras = media_device_list.video_inputs.devices;
media_device_list.audio_inputs.select;
media_device_list.video_inputs.select;