We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ad51e5 commit 700e8baCopy full SHA for 700e8ba
1 file changed
lib/RTSPClient.ts
@@ -496,11 +496,15 @@ export default class RTSPClient extends EventEmitter {
496
497
const transport = parseTransport(headers.Transport);
498
if (
499
+ // TCP
500
transport.protocol !== "RTP/AVP/TCP" &&
- transport.protocol !== "RTP/AVP"
501
+ // UDP
502
+ transport.protocol !== "RTP/AVP" &&
503
504
+ transport.protocol !== "RTP/AVP/UDP" // Panasonic cameras send this
505
) {
506
throw new Error(
- "Only RTSP servers supporting RTP/AVP(unicast) or RTP/AVP/TCP are supported at this time."
507
+ "Only RTSP servers supporting RTP/AVP or RTP/AVP/UDP or RTP/AVP/TCP are supported at this time."
508
);
509
}
510
0 commit comments