nager / Nager.VideoStream

Get images from a network camera stream or webcam
MIT License
54 stars 10 forks source link

RTSP user and password as an arguments? #1

Closed yeshivsher closed 3 years ago

yeshivsher commented 3 years ago

Very useful project! thx.

quastion: In case of user and password in the RTSP string cause problems, for example when the password contains @ char so the string could not handle that Can I pass it as an argument?

"rtsp://user:password@192.3...." "rtsp://root:example@2345@#353@192....."

tinohager commented 3 years ago

I think we need an escape here.

https://github.com/nager/Nager.VideoStream/blob/3fe3bd26304705be08cbf54870b14a2fdfbd6694/src/Nager.VideoStream/StreamInputSource.cs#L11

https://stackoverflow.com/a/55772260

yeshivsher commented 3 years ago

I don't understand are you saying that you can fix it?

tinohager commented 3 years ago

Yes I think it can be fixed but I don't currently have a camera available to test it.

yeshivsher commented 3 years ago

You have a lot of free RTSP URL online If you don't find I can send one

tinohager commented 3 years ago

Oh now i understand the question, i think a @ inside the password we can`t fix.

yeshivsher commented 3 years ago

Thx!!! Let me know!