Skip to content

Commit 700e8ba

Browse files
committed
Handle SETUP reply with RTP/AVP/UDP (sent by my Panasonic camera)
1 parent 7ad51e5 commit 700e8ba

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/RTSPClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,15 @@ export default class RTSPClient extends EventEmitter {
496496

497497
const transport = parseTransport(headers.Transport);
498498
if (
499+
// TCP
499500
transport.protocol !== "RTP/AVP/TCP" &&
500-
transport.protocol !== "RTP/AVP"
501+
// UDP
502+
transport.protocol !== "RTP/AVP" &&
503+
// UDP
504+
transport.protocol !== "RTP/AVP/UDP" // Panasonic cameras send this
501505
) {
502506
throw new Error(
503-
"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."
504508
);
505509
}
506510

0 commit comments

Comments
 (0)