Skip to content

Commit

Permalink
Update protocol to support SRT output (#255)
Browse files Browse the repository at this point in the history
* Update protocol to support SRT output

* changeset
  • Loading branch information
davidzhao authored Aug 20, 2024
1 parent 8ccb826 commit 26206ec
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-dolls-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-server-sdk': patch
---

Include support for SRT Egress
2 changes: 1 addition & 1 deletion packages/livekit-server-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test:edge": "vitest --environment edge-runtime run"
},
"dependencies": {
"@livekit/protocol": "^1.19.0",
"@livekit/protocol": "^1.20.0",
"camelcase-keys": "^9.0.0",
"jose": "^5.1.2"
},
Expand Down
13 changes: 8 additions & 5 deletions packages/livekit-server-sdk/src/EgressClient.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import {
import type {
DirectFileOutput,
EgressInfo,
EncodedFileOutput,
EncodingOptions,
EncodingOptionsPreset,
ImageOutput,
SegmentedFileOutput,
StreamOutput,
} from '@livekit/protocol';
import {
EgressInfo,
ListEgressRequest,
ListEgressResponse,
ParticipantEgressRequest,
RoomCompositeEgressRequest,
SegmentedFileOutput,
StopEgressRequest,
StreamOutput,
TrackCompositeEgressRequest,
TrackEgressRequest,
UpdateLayoutRequest,
UpdateStreamRequest,
WebEgressRequest,
} from '@livekit/protocol';
import ServiceBase from './ServiceBase.js';
import { Rpc, TwirpRpc, livekitPackage } from './TwirpRPC.js';
import type { Rpc } from './TwirpRPC.js';
import { TwirpRpc, livekitPackage } from './TwirpRPC.js';

const svc = 'Egress';

Expand Down
4 changes: 3 additions & 1 deletion packages/livekit-server-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export {
EncodingOptions,
EncodingOptionsPreset,
GCPUpload,
ImageCodec,
ImageFileSuffix,
ImageOutput,
IngressAudioEncodingOptions,
IngressAudioEncodingPreset,
Expand Down Expand Up @@ -50,8 +52,8 @@ export {
} from '@livekit/protocol';
export * from './AccessToken.js';
export * from './EgressClient.js';
export * from './grants.js';
export * from './IngressClient.js';
export * from './RoomServiceClient.js';
export * from './SipClient.js';
export * from './WebhookReceiver.js';
export * from './grants.js';
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26206ec

Please sign in to comment.