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

Method OnPublish

src/brpc/rtmp.cpp:2600–2608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2598}
2599
2600void RtmpServerStream::OnPublish(const std::string& name,
2601 RtmpPublishType type,
2602 butil::Status* status,
2603 google::protobuf::Closure* done) {
2604 ClosureGuard done_guard(done);
2605 status->set_error(EPERM, "%s[%u] ignored publish{stream_name=%s type=%s}",
2606 butil::endpoint2str(remote_side()).c_str(), stream_id(),
2607 name.c_str(), RtmpPublishType2Str(type));
2608}
2609
2610int RtmpServerStream::OnSeek(double offset_ms) {
2611 LOG(ERROR) << remote_side() << '[' << stream_id() << "] ignored seek("

Callers

nothing calls this directly

Calls 5

endpoint2strFunction · 0.85
remote_sideFunction · 0.85
RtmpPublishType2StrFunction · 0.85
set_errorMethod · 0.60
c_strMethod · 0.45

Tested by

no test coverage detected