pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.
Apache License 2.0
202 stars 64 forks source link

Stream URL change #84

Closed ardarsln closed 7 months ago

ardarsln commented 1 year ago

How do we change stream URL? I want to add stream name like: rtsp://ip:port/streamName. There is a startStreamRtp(url) function call but it never implemented.

When I follow the function calls it goes like this:

ardarsln commented 1 year ago

1) https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/b4ca9bd7569855dd0e9c261fc83c41fb7a10a951/rtplibrary/src/main/java/com/pedro/rtplibrary/rtsp/RtspCamera1.java#L152

In this example, it uses RtspClient and CommandsManager.

2) https://github.com/pedroSG94/RTSP-Server/blob/master/rtspserver/src/main/java/com/pedro/rtspserver/RtspServerCamera1.kt

But in this example, it uses RtspServer and ServerCommandManager.

I am a little bit confused which one we should use.

pedroSG94 commented 1 year ago

Hello,

Depend of your requirements: