Delete Default app

Dhav Indian

New Member
I delete defaultApp from rest app using "remove app defaultApp" command, but still able to connect my webcall server using appKey defaultApp.

Connect Method
{"message":"connection","data":[{"appKey":"defaultApp","mediaProviders":["WebRTC","MSE","WSPlayer"],"clientVersion":"0.5.28","clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36","clientBrowserVersion":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36"}]}
 

Max

Administrator
Staff member
Good day.
Removing server application with "remove app" command just disables REST hooks for events associated with this app, but this does not disable client requests to server.
So if you need to authenticate server connections, you shoud not remove defaultApp, but you should update it to send REST hook queries to your own backend. Please refer to this detailed example.
The workflow looks like this:
1) Client tries to connect to your server
2) Server send REST hook /connect using defaultApp to your backend
3) Your backend returns 200 OK if clients has rights to connect, or 403 Forbidden if has not
3) Server allows or does not allow client to connect
 

Max

Administrator
Staff member
You should use command
Code:
update app defaultApp -l https://eventmaster.net.in/grest/index.php"
 

Max

Administrator
Staff member
Sorry, an app key should be last parameter:
Code:
update app -l https://eventmaster.net.in/grest/index.php defaultApp
Here is right command example. We've updated this doc.
 

Dhav Indian

New Member
One More Question in my mind sir
When i stream rtmp from embed player sometimes video freeze even if on high speed internet ,
is there any setting in config for playing high quality video without performance losses?
 
Top