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

For #307, support publish RTC with passing opus. 4.0.24

This commit is contained in:
winlin 2020-04-30 10:57:03 +08:00
parent 99f9f566ba
commit 5ee5ef6ab2
7 changed files with 43 additions and 7 deletions

View file

@ -603,7 +603,7 @@ srs_error_t SrsFormat::on_audio(int64_t timestamp, char* data, int size)
srs_error_t err = srs_success;
if (!data || size <= 0) {
srs_trace("no audio present, ignore it.");
srs_info("no audio present, ignore it.");
return err;
}

View file

@ -158,6 +158,7 @@ public:
// 1byte.
// One byte field to represent the message type. A range of type IDs
// (1-7) are reserved for protocol control messages.
// For example, RTMP_MSG_AudioMessage or RTMP_MSG_VideoMessage.
int8_t message_type;
// 4bytes.
// Four-byte field that identifies the stream of the message. These
@ -245,6 +246,7 @@ public:
// 1byte.
// One byte field to represent the message type. A range of type IDs
// (1-7) are reserved for protocol control messages.
// For example, RTMP_MSG_AudioMessage or RTMP_MSG_VideoMessage.
int8_t message_type;
// Get the perfered cid(chunk stream id) which sendout over.
// set at decoding, and canbe used for directly send message,