MCPcopy Create free account
hub / github.com/apache/brpc / OnAudioMessage

Method OnAudioMessage

test/brpc_rtmp_unittest.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 << ": Got " << *msg << " data=" << msg->data;
82 }
83 void OnAudioMessage(brpc::RtmpAudioMessage* msg) {
84 ++_naudiomsg;
85 // audio data is ascii in UT, print it out.
86 LOG(INFO) << remote_side() << "|stream=" << stream_id()
87 << ": Got " << *msg << " data=" << msg->data;
88 }
89private:
90 int _called_on_stop;
91 int _called_on_first_message;

Callers

nothing calls this directly

Calls 1

remote_sideFunction · 0.85

Tested by

no test coverage detected