Files
scrypted/plugins/sip/src/subscribed.ts
nanosonde 7679e3a550 Sip plugin (#444)
* initial commit

* Cleanup

* Rename

* Cleanup

* cleanup

* Save work

* save work

* save work

* save work

* cleanup package.json

* Use a testcall n startup to get the SDP and use it later.

* Audio via gstreamer

* Working with gstreamer mpegtsmux for audio with audiomixer

* Make sure that we wait fro the SIP OK after SIP BYE

* Cleanup

* Cleanup and remove motion sensor

* SIP plugin does not support snapshots.

* Working version without gstreamer.

* Force usage of TCP transport for RTSP video stream

* Add H264 infos

* Implement settings

* Cleanup

* Save work

* Add SIP settings to UI. Clean up.
2022-11-28 08:19:32 -08:00

14 lines
342 B
TypeScript

import { Subscription } from 'rxjs'
export class Subscribed {
private readonly subscriptions: Subscription[] = []
public addSubscriptions(...subscriptions: Subscription[]) {
this.subscriptions.push(...subscriptions)
}
protected unsubscribe() {
this.subscriptions.forEach((subscription) => subscription.unsubscribe())
}
}