Skip to content

streaming: add support for RTSP mountpoints and events - #62

Merged
lminiero merged 2 commits into
masterfrom
rtsp-events
Jul 28, 2026
Merged

streaming: add support for RTSP mountpoints and events#62
lminiero merged 2 commits into
masterfrom
rtsp-events

Conversation

@lminiero

Copy link
Copy Markdown
Member

The Streaming plugin in Janode didn't support creating RTSP mountpoints yet. Considering we recently added support for notifying when RTSP mountpoints get disconnected/reconnected in Janus (see meetecho/janus-gateway#3578 for details), I decided to kill two birds with one stone. (PS: as a side note, we may have to add support for creating live/ondemand mountpoints too, even though no-one really uses those).

Example of creating an RTSP mountpoint:

await janodeManagerHandle.createRtpMountpoint({ id: 99, name: 'RTSP from Janode',
    video: { fmtp: 'profile-level-id=42e01f;packetization-mode=1' },
    rtsp: { url: 'rtsp://127.0.0.1:9554/test', notifyChanges: true } });

Being notified about reconnections and disconnections as a subscriber:

streamingHandle.on(StreamingPlugin.EVENT.STREAMING_RTSP_DISCONNECTED, evtdata => {
	Logger.info(`${LOG_NS} ${streamingHandle.name} RTSP disconnected ${JSON.stringify(evtdata)}`);
});
streamingHandle.on(StreamingPlugin.EVENT.STREAMING_RTSP_RECONNECTED, evtdata => {
	Logger.info(`${LOG_NS} ${streamingHandle.name} RTSP connected ${JSON.stringify(evtdata)}`);
});

@lminiero

Copy link
Copy Markdown
Member Author

Merging.

@lminiero
lminiero merged commit 458d16c into master Jul 28, 2026
1 check passed
@lminiero
lminiero deleted the rtsp-events branch July 28, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant