Hi there,
Right now I am creating a Streaming stream by doing the following:
const create = {
request: 'create',
type: 'rtp',
is_private: false,
media: [
{
type: 'video',
mid: 'v1',
label: 'Board video stream',
port: 0,
pt: 96,
codec: janusServer.config_videocodec,
},
],
permanent: false,
};
pluginHandle.send({
message: create,
success: (data: any) => {
if (data && data.created && data.stream) {
resolve(data.stream);
} else {
reject(`Error creating stream on ${janusServer.hostname}`);
}
},
error: (error: any) => {
reject(`Error creating stream on ${janusServer.hostname}: ${error}`);
},
});
It randomly assigns the next available port starting from 10000. How can I reset the ports, or let the plugin clear ‘old’ and unused ports to that it won’t go up to 20000.
Kind regards,
Jesse de Wild