
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@livekit/egress-sdk
Advanced tools
This lightweight SDK makes it simple to build your own Room Composite templates.
LiveKit uses an instance of headless Chrome to composite the room. This means you can use the same application code to design an interactive experience that's livestreamed or recorded.
The general flow of events are as follows:
Egress.StartRoomCompositeEgress
request to LiveKit<baseurl>?url=<>&template=<>&token=<>
START_RECORDING
to recordEND_RECORDING
to terminate the streamYour webapp will need to connect to a LiveKit room using the token provided. This mechanism provides authentication to your application as well as giving you information about the current room that's to be recorded.
This template SDK takes care of communicating with Egress recorder, performing the following:
yarn add livekit-egress-sdk
import EgressHelper from 'livekit-egress-sdk'
import { Room } from 'livekit-client'
const room = new Room({
adaptiveStream: true,
})
EgressHelper.setRoom(room, {
autoEnd: true,
})
EgressHelper.onLayoutChanged((layout) => {
// handle layout changes
})
await room.connect(
EgressHelper.getLiveKitURL(),
EgressHelper.getAccessToken(),
);
EgressHelper.startRecording();
We provide a few default templates/layouts here. It should serve as a good guide for creating your own templates.
FAQs
A lightweight SDK for developing RoomComposite templates
The npm package @livekit/egress-sdk receives a total of 7,678 weekly downloads. As such, @livekit/egress-sdk popularity was classified as popular.
We found that @livekit/egress-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 29 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.