mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from 2.0release
This commit is contained in:
commit
1d57e53910
6 changed files with 62 additions and 49 deletions
|
@ -54,6 +54,9 @@ class SrsTsContext;
|
|||
// Transport Stream packets are 188 bytes in length.
|
||||
#define SRS_TS_PACKET_SIZE 188
|
||||
|
||||
// the aggregate pure audio for hls, in ts tbn(ms * 90).
|
||||
#define SRS_CONSTS_HLS_PURE_AUDIO_AGGREGATE 720 * 90
|
||||
|
||||
/**
|
||||
* the pid of ts packet,
|
||||
* Table 2-3 - PID table, hls-mpeg-ts-iso13818-1.pdf, page 37
|
||||
|
@ -360,6 +363,7 @@ public:
|
|||
/**
|
||||
* whether the hls stream is pure audio stream.
|
||||
*/
|
||||
// TODO: FIXME: merge with muxer codec detect.
|
||||
virtual bool is_pure_audio();
|
||||
/**
|
||||
* when PMT table parsed, we know some info about stream.
|
||||
|
@ -1594,6 +1598,11 @@ public:
|
|||
* close the writer.
|
||||
*/
|
||||
virtual void close();
|
||||
public:
|
||||
/**
|
||||
* get the video codec of ts muxer.
|
||||
*/
|
||||
virtual SrsCodecVideo video_codec();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue