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

Method OnAudioMessage

test/brpc_rtmp_unittest.cpp:307–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 << ": Got " << *msg << " data=" << msg->data;
306 }
307 void OnAudioMessage(brpc::RtmpAudioMessage* msg) {
308 ++_naudiomsg;
309 // audio data is ascii in UT, print it out.
310 LOG(INFO) << remote_side() << "|stream=" << stream_id()
311 << ": Got " << *msg << " data=" << msg->data;
312 }
313private:
314 int64_t _sleep_ms;
315 int _called_on_stop;

Callers

nothing calls this directly

Calls 1

remote_sideFunction · 0.85

Tested by

no test coverage detected