rest-api issue

neetesh

New Member
how to get data like bitrate,recorded video width from api
there is no rest-api folder in my FlashphonerWebCallServer-5.2.1847 folder
 

Max

Administrator
Staff member
Hello

This is REST API docs

REST API Examples

Recorded video file is a static mp4 or mkv. There is no REST API to check file system.
You can connect to server over SSH and download such recorded files or check file parameters in the file system of OS.

Video bitrate of live streaming files is a metric

Example:

Code:
https://hosr:8444/rest-api/stream/find
{
   "name":"stream1",
   "published":true,
   "display":["metrics"]
}
This request will print stream with name stream1 and its metrics including videoBitrate
 

neetesh

New Member
Hello Sir
When I Hit this demo API Url - https://demo.flashphoner.com:8444/rest-api/stream/find_all
then i got response but when i run my server API Url -
it gives error
{"exception":"com.flashphoner.rest.server.exception.NotFoundException","reason":"com.flashphoner.rest.server.exception.NotFoundException, Not Found, Streams not found, ts: 1704176582637, path: /rest-api/stream/find_all","path":"/rest-api/stream/find_all","error":"Not Found","message":"Streams not found","timestamp":1704176582637,"status":404} please check
how to run api from my server
 

Max

Administrator
Staff member
Hello

This means you don't have streams on the server.
Try to publish a stream first. Make sure your stream is being published. Then try again /find_all.

Example of a published stream

1704190428145.png
 
Top