Skip to content

Commit

Permalink
Allow RTSPS protocol (datarhei/restreamer#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Jan 19, 2024
1 parent 4854c63 commit 42013ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/Edit/Sources/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ const initSkills = (initialSkills) => {
if (!skills.protocols.input.includes('rtsp')) {
skills.protocols.input.push('rtsp');
}

if (skills.protocols.input.includes('tls')) {
if (!skills.protocols.input.includes('rtsps')) {
skills.protocols.input.push('rtsps');
}
}
}

return skills;
Expand Down Expand Up @@ -358,6 +364,8 @@ const getProtocolClass = (url) => {
return 'http';
} else if (/mms(t|h)/.test(protocol) === true) {
return 'mms';
} else if (/rtsps?/.test(protocol) === true) {
return 'rtsp';
}

return protocol;
Expand Down

1 comment on commit 42013ec

@mdeeter
Copy link

@mdeeter mdeeter commented on 42013ec Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Confirmed that this worked.

image

Please sign in to comment.