playHLS custom backend server enpoint not working

Hi, I am trying to authenticate the HLS playback by calling my backend server with custom token.
I followed this link https://docs.flashphoner.com/displa...viaHLS-HLSplaybackauthenticationusingRESThook to enable aclAuth.
And followed this link to create endpoint for amy app https://docs.flashphoner.com/display/WCS5EN/Controlling+REST+methods

And for HLS playback, I followed this link https://flashphoner.com/embedding-an-hls-player-for-webrtc-stream-playback-2/

But /playHLS api is not calling my custom endpoint instead it calls http://localhost:8081/apps/EchoApp/playHLS
Can anyone tell me what I am missing here?
 

Max

Administrator
Staff member
Good day.
For HLS playback authentication, only defaultApp can be used, so you should update defaultApp endpoint:
Code:
update app -l "http://your_backend_endpoint/" defaultApp
 
Thank for the quick response. It worked.
And can we follow the same pattern if a stream is started from publisher side?
I mean we can restrict the publishStream similar to playHLS. right?
 
Thank you. I returned 403 with publishStream REST hook but still it get published. Do I have to do anything further?
 

Max

Administrator
Staff member
Good day.
You should configure publishStream to fail on error as described here. By default, it only writes to log on 403 Forbidden.
 
Top