Skip to content

Commit

Permalink
Add SRT WRite
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Nov 19, 2024
1 parent 554d880 commit e6560a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/lib/control/video-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ export default class VideoServiceControl {

if (c.config && c.config.srt) {
// Format: srt://localhost:8890?streamid=write:mystream
const url = new URL(`/${lease.path}`, c.url.replace(/^http(s)?:/, 'srt:'))
const url = new URL(c.url.replace(/^http(s)?:/, 'srt:'))
url.port = c.config.srtAddress.replace(':', '');

protocols.srt = {
name: 'Secure Reliable Transport (SRT)',
url: String(url) + `streamid=write:${lease.path}`
url: String(url) + `?streamid=write:${lease.path}`
}
}

Expand Down

0 comments on commit e6560a9

Please sign in to comment.