deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.32k stars 312 forks source link

Authorization play video #271

Closed mboekhold closed 1 year ago

mboekhold commented 1 year ago

Hello,

I am really excited about this project and have been looking forward to using the video authorization feature. Could you please clarify the steps for using this feature? I want to make sure I am using it correctly and effectively"

I enabled the token

"token": { "enable": true, "backend": "http://127.0.0.1:8000/watch" }

I tried requesting a video endpoint for hls http://127.0.0.1:8083/stream/Mobotix01/channel/0/hls/live/index.m3u8?token=my_key

but it does not forward the token to the backend, what am i missing?

Thanks for your help :)

volkankoc commented 1 year ago

I want to learn this too

naresh-kavali commented 1 year ago

if !RemoteAuthorization("HLS", c.Param("uuid"), c.Param("channel"), c.Param("token"), c.ClientIP()) {

above line in apiHTTPHLS.go is having problem.

c.Param("token") ---> c.Query("token") solves the problem

lfarkas commented 1 year ago

please submit a PR

mboekhold commented 1 year ago

its fixed with #300

naresh-kavali commented 1 year ago

In fact this is addressed in Feb 2023and it is in in master.

Thanks, Naresh Kavali

On Thu, 17 Aug 2023 at 6:34 PM, Levente Farkas @.***> wrote:

please submit a PR

— Reply to this email directly, view it on GitHub https://github.com/deepch/RTSPtoWeb/issues/271#issuecomment-1682250101, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEQUH4ETPYHDQSF35AMEG3XVYJD7ANCNFSM6AAAAAATQVPUGM . You are receiving this because you commented.Message ID: @.***>