
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@eyevinn/whpp-client
Advanced tools
A Node / JS library for WebRTC HTTP Playback Protocol
For more information about WHIP and WHPP read this blog post.
npm install --save @eyevinn/whpp-client
Example on how to implement the WHPP library in browser.
import { WHPPClient } from "@eyevinn/whpp-client";
const video = document.querySelector("video");
const peer = new RTCPeerConnection({ iceServers: [{ urls: "stun:stun.l.google.com:19302" }] });
peer.ontrack = (ev) => {
if (ev.streams && ev.streams[0]) {
video.srcObject = ev.streams[0];
}
};
const client = new WHPPClient(peer, "http://localhost:8001/broadcaster/channel/test");
await client.connect();
{
debug?: boolean; // Use debug logging
noIceTrickle?: boolean; // Wait for all ICE candidates to be gathered
timeout?: number; // Timeout for gathering ICE candidates
useLegacyContentType?: boolean; // WHPP endpoints that does not support the `whpp+json` content type
}
Example | Description | Source |
---|---|---|
npm run example:web | WHPP implementation in browser | examples/web.html |
Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor.
At Eyevinn, every software developer consultant has a dedicated budget reserved for open source development and contribution to the open source community. This give us room for innovation, team building and personal competence development. And also gives us as a company a way to contribute back to the open source community.
Want to know more about Eyevinn and how it is to work here. Contact us at work@eyevinn.se!
FAQs
WebRTC HTTP Playback Protocol client library
The npm package @eyevinn/whpp-client receives a total of 5,261 weekly downloads. As such, @eyevinn/whpp-client popularity was classified as popular.
We found that @eyevinn/whpp-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.