mirror of
https://github.com/koush/scrypted.git
synced 2026-09-19 10:10:39 +01:00
homekit: dead code
This commit is contained in:
@@ -14,21 +14,18 @@ export interface AudioMode {
|
||||
export async function startCameraStreamSrtp(media: FFmpegInput, console: Console, audioMode: AudioMode, session: CameraStreamingSession) {
|
||||
const { url, mediaStreamOptions } = media;
|
||||
let { sdp } = mediaStreamOptions;
|
||||
let socket: Readable;
|
||||
let rtspClient: RtspClient;
|
||||
let videoSender: (rtp: RtpPacket) => void;
|
||||
let audioSender: (rtp: RtpPacket) => void;
|
||||
|
||||
const rtspClient = new RtspClient(url);
|
||||
rtspClient.requestTimeout = 1000;
|
||||
|
||||
const cleanup = () => {
|
||||
socket?.destroy();
|
||||
rtspClient?.safeTeardown();
|
||||
session.kill();
|
||||
};
|
||||
|
||||
session.killPromise.finally(cleanup);
|
||||
|
||||
rtspClient = new RtspClient(url);
|
||||
rtspClient.requestTimeout = 1000;
|
||||
rtspClient.client.once('close', cleanup);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user