Logging messages that the client device receives from kFPWCSStreamStatus

Denis Vasiliev

New Member
Hello,

Is it possible to log information about the status of streams?

In the logs of the client part, We see message:
Code:
[-- BEGIN CLIENT LOG --]
....
LOGS:
Client didn't pushed logs to server, try to enable push_log at client side.
[-- END CLIENT LOG ----]
Will the necessary information be visible in the LOGS about the status of the stream and, if so, what needs to be enabled?

We use SDK for android and ios apps.
 

Max

Administrator
Staff member
Good day.
In the logs of the client part, We see message:
This is client logs pushing feature. It is intended to push client browser logs to server logs and is working for WebSDK only.
All the stream states are logged in server log on the INFO level:
Code:
07:30:06,819 INFO            RestClient - API-ASYNC-pool-13-thread-8 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/publishStream
OBJECT:
{
  "nodeId" : "9gRZ8ImASwtRxy1Xh7FPNDhmBwKCVQ62@**.***.***.**",
  "appKey" : "defaultApp",
  "sessionId" : "/*.***.**.**:60216/**.***.***.**:8443-65fc154b-590c-47c2-a8e8-7974ce778901",
  "mediaSessionId" : "007e7340-4e50-11ec-aaa4-653dcccee2cd",
  "name" : "test",
  "published" : true,
  ...
  "status" : "PENDING",
  ...
}
...
07:30:10,703 INFO            RestClient - API-ASYNC-pool-13-thread-6 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "9gRZ8ImASwtRxy1Xh7FPNDhmBwKCVQ62@**.***.***.**",
  "appKey" : "defaultApp",
  "sessionId" : "/*.***.**.**:60216/**.***.***.**:8443-65fc154b-590c-47c2-a8e8-7974ce778901",
  "mediaSessionId" : "007e7340-4e50-11ec-aaa4-653dcccee2cd",
  "name" : "test",
  "published" : true,
  ...
  "status" : "PUBLISHING",
  "audioCodec" : "opus",
  "videoCodec" : "H264",
  ...
}
...
You can also get a current stream status at any time using REST API query /stream/find
Code:
POST /rest-api/stream/find HTTP/1.1
Host: localhost:8081
Content-Length: 57
Content-Type: application/json
 
{
    "name":"stream1",
    "published":true,
    "display":["metrics"]
}
 
Top