Skip to content

Commit

Permalink
stream: rtsp: Add TCP back in RTSP
Browse files Browse the repository at this point in the history
TCP is the default for RTSP, for current format, the user should use rtspu

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Apr 25, 2024
1 parent 0323c25 commit bb1919e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stream/rtsp/rtsp_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ impl RTSPServer {
factory.set_buffer_size(0);
factory.set_latency(0u32);
factory.set_transport_mode(RTSPTransportMode::PLAY);
factory.set_protocols(RTSPLowerTrans::UDP | RTSPLowerTrans::UDP_MCAST);
factory
.set_protocols(RTSPLowerTrans::UDP | RTSPLowerTrans::UDP_MCAST | RTSPLowerTrans::TCP);

let Some(encode) = rtp_caps.iter().find_map(|structure| {
structure.iter().find_map(|(key, sendvalue)| {
Expand Down

0 comments on commit bb1919e

Please sign in to comment.