CDN 2 Stream Screenshots

AlanM

Member
We are using a multi-origin setup for broadcasting. Is there any easy way to take a screenshot of a stream, without having to lookup which origin server the stream is being broadcast from?
 

Max

Administrator
Staff member
Only way to request a snapshot from Edge server is playing a stream from this Edge server.
1. Play
2. Take snapshot

You can't just take snapshot from Edge because CDN is implemented lazy way.
This means Edge does not have this stream until it is requested by play() request from Web SDK.

So only way is finding Origin server that is receiving the stream and take snapshot from Origin.
From our end we can add REST API /rest-api/cdn/show_routes to improve finding of Origin's stream requesting any Edge.
 

Max

Administrator
Staff member
REST query /rest-api/cdn/show_routes was added at least since build 3467. Now, we described it in CDN docs. This query returns current routes list like CLI show cdn-routes command:
Code:
http://test.flashphoner.com:8081/rest-api/cdn/show_routes

{
"1-origin2.flashphoner.com-2": "stream1",
"0-origin2.flashphoner.com-0": "stream2",
"2-origin1.flashphoner.com-1": "stream1"
}
So you can find Origin server which receives the stream from client, and take snapshot from this Origin via REST API.
 
Top