mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #851, HTTP API support number of video frames for FPS. 2.0.240
This commit is contained in:
parent
4167715153
commit
ff87318b95
7 changed files with 45 additions and 1 deletions
|
@ -70,6 +70,7 @@ public:
|
|||
bool active;
|
||||
int connection_cid;
|
||||
int nb_clients;
|
||||
uint64_t nb_frames;
|
||||
public:
|
||||
/**
|
||||
* stream total kbps.
|
||||
|
@ -172,6 +173,11 @@ public:
|
|||
SrsCodecAudio acodec, SrsCodecAudioSampleRate asample_rate, SrsCodecAudioSoundType asound_type,
|
||||
SrsAacObjectType aac_object
|
||||
);
|
||||
/**
|
||||
* When got videos, update the frames.
|
||||
* We only stat the total number of video frames.
|
||||
*/
|
||||
virtual int on_video_frames(SrsRequest* req, int nb_frames);
|
||||
/**
|
||||
* when publish stream.
|
||||
* @param req the request object of publish connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue