1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support pagination for stream api (#2572)

This commit is contained in:
Huachao Mao 2021-09-06 10:10:53 +08:00 committed by GitHub
parent eff225a800
commit 53cb333713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 7 deletions

View file

@ -182,7 +182,9 @@ public:
// Dumps the vhosts to amf0 array.
virtual srs_error_t dumps_vhosts(SrsJsonArray* arr);
// Dumps the streams to amf0 array.
virtual srs_error_t dumps_streams(SrsJsonArray* arr);
// @param start the start index, from 0.
// @param count the max count of streams to dump.
virtual srs_error_t dumps_streams(SrsJsonArray* arr, int start, int count);
// Dumps the clients to amf0 array
// @param start the start index, from 0.
// @param count the max count of clients to dump.