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

Method Seek

src/brpc/rtmp.cpp:2033–2045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2031}
2032
2033int RtmpClientStream::Seek(double offset_ms) {
2034 butil::IOBuf req_buf;
2035 {
2036 butil::IOBufAsZeroCopyOutputStream zc_stream(&req_buf);
2037 AMFOutputStream ostream(&zc_stream);
2038 WriteAMFString(RTMP_AMF0_COMMAND_SEEK, &ostream);
2039 WriteAMFUint32(0, &ostream);
2040 WriteAMFNull(&ostream);
2041 WriteAMFNumber(offset_ms, &ostream);
2042 CHECK(ostream.good());
2043 }
2044 return SendMessage(0, policy::RTMP_MESSAGE_COMMAND_AMF0, req_buf);
2045}
2046
2047int RtmpClientStream::Pause(bool pause_or_unpause, double offset_ms) {
2048 butil::IOBuf req_buf;

Callers 3

TESTFunction · 0.45
FindSpansFunction · 0.45
ListSpansFunction · 0.45

Calls 5

WriteAMFStringFunction · 0.85
WriteAMFUint32Function · 0.85
WriteAMFNullFunction · 0.85
WriteAMFNumberFunction · 0.85
goodMethod · 0.45

Tested by 1

TESTFunction · 0.36