
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@bandwidth/webrtc-browser
Advanced tools
import BandwidthRtc from "@bandwidth/webrtc-browser";
const bandwidthRtc = new BandwidthRtc();
await bandwidthRtc.connect({
deviceToken: deviceToken,
});
let rtcStream: RtcStream = await bandwidthRtc.publish();
const mediaConstraints: MediaStreamConstraints = {
audio: true,
video: false,
};
let rtcStream: RtcStream = await bandwidthRtc.publish(mediaConstraints);
const mediaConstraints: MediaStreamConstraints = {
audio: {
autoGainControl: true,
channelCount: 1,
deviceId: "default",
echoCancellation: true,
latency: 0.01,
noiseSuppression: true,
sampleRate: 48000,
sampleSize: 16,
},
video: {
aspectRatio: 1.3333333333333333,
frameRate: 30,
width: { min: 640, ideal: 1280 },
height: { min: 480, ideal: 720 },
resizeMode: "none",
},
};
let rtcStream: RtcStream = await bandwidthRtc.publish(mediaConstraints);
let screenShare = await navigator.mediaDevices.getDisplayMedia({
video: true,
});
let rtcStream: RtcStream = await bandwidthRtc.publish(screenShare);
Please see the following resources for more information on MediaStreamConstraints and MediaTrackConstraints that can be specified here:
bandwidthRtc.sendDtmf("3");
bandwidthRtc.sendDtmf("313,3211*#");
bandwidthRtc.onStreamAvailable((event) => {
console.log(
`A stream is available with endpointId=${event.endpointId}, its media types are ${event.mediaTypes} and the stream itself is ${event.mediaStream}`
);
});
bandwidthRtc.onStreamUnavailable((event) => {
console.log(
`The stream with endpointId=${event.endpointId} is now unavailable and should be removed from the UI because the media is likely to freeze imminently.`
);
});
FAQs
SDK for Bandwidth WebRTC Browser Applications
The npm package @bandwidth/webrtc-browser receives a total of 1,076 weekly downloads. As such, @bandwidth/webrtc-browser popularity was classified as popular.
We found that @bandwidth/webrtc-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.