Please use REST API queries /connection/find_all to find all the sessionsI want to know if I have more than 1 sessions. How can I clear all session or selected session in JavaScript ?
POST /rest-api/connection/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json
POST /rest-api/connection/terminate HTTP/1.1
Host:192.168.1.101:8081
Content-Length: 55
Content-Type: application/json
{
"sessionId":"/192.168.1.102:39564/192.168.1.101:8443"
}
InAnd one more question how can I get local IP from session if I use load balance on AWS service?
sessionId
, first address is a client address and seconf address is a local server IP addressExcuse me again.Good day.
Please use REST API queries /connection/find_all to find all the sessions
and /connection/terminate to close client sessionCode:POST /rest-api/connection/find_all HTTP/1.1 Host: 192.168.1.101:8081 Content-Length: 0 Content-Type: application/json
InCode:POST /rest-api/connection/terminate HTTP/1.1 Host:192.168.1.101:8081 Content-Length: 55 Content-Type: application/json { "sessionId":"/192.168.1.102:39564/192.168.1.101:8443" }
sessionId
, first address is a client address and seconf address is a local server IP address
On server side, it's impossible because public IP is bound to NAT, not to the instance network interface. Public server IP is only known on client side when server domain name is resolved. So you should pass it by some way from client to your backend if you want to know it.How can I get public IP from session that created with JavaScript ?
Thank you for your answer.On server side, it's impossible because public IP is bound to NAT, not to the instance network interface. Public server IP is only known on client side when server domain name is resolved. So you should pass it by some way from client to your backend if you want to know it.
Yes, you can publish the stream with the same name again if you've lost connection and receivedWhat if I live streaming and my internet connection is lost, Can I reconnect and run live streaming again from my latest stream that lost connection from internet or I have to run new live stream only ?
Ref. How to reconnect to a stream automatically this from play stream but I want to know streamer side can reconnect or not ?
STREAM_STATUS.FAILED
or SESSION_STATUS.FAILED
on client side. This can be done by the same way as player reconnection example.After STREAM_STATUS.PUBLISHING I tried to test STREAM_STATUS.FAILED by disconnect from internet but it don't go in .on(STREAM_STATUS.FAILED).Yes, you can publish the stream with the same name again if you've lost connection and receivedSTREAM_STATUS.FAILED
orSESSION_STATUS.FAILED
on client side. This can be done by the same way as player reconnection example.
If connection breaks while publishing, cilent will receiveAfter STREAM_STATUS.PUBLISHING I tried to test STREAM_STATUS.FAILED by disconnect from internet but it don't go in .on(STREAM_STATUS.FAILED).
SESSION_STATUS.FAILED
. See doc you mentioned.