Updated RTMP analyser for better readability.
This commit is contained in:
parent
81fec034d3
commit
1986b1517b
1 changed files with 1 additions and 11 deletions
|
@ -117,21 +117,11 @@ namespace Analysers {
|
||||||
fprintf(stderr, "CTRL: Set peer bandwidth: %i\n", RTMPStream::snd_window_size);
|
fprintf(stderr, "CTRL: Set peer bandwidth: %i\n", RTMPStream::snd_window_size);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){
|
|
||||||
F.ChunkLoader(next);
|
|
||||||
if (Detail & DETAIL_EXPLICIT){
|
|
||||||
std::cerr << "Got a " << F.len << " bytes " << F.tagType() << " FLV tag of time " << F.tagTime() << "." << std::endl;
|
|
||||||
}
|
|
||||||
if (Detail & DETAIL_RECONSTRUCT){
|
|
||||||
std::cout.write(F.data, F.len);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 9:
|
case 9:
|
||||||
if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){
|
if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){
|
||||||
F.ChunkLoader(next);
|
F.ChunkLoader(next);
|
||||||
if (Detail & DETAIL_EXPLICIT){
|
if (Detail & DETAIL_EXPLICIT){
|
||||||
std::cerr << "Got a " << F.len << " bytes " << F.tagType() << " FLV tag of time " << F.tagTime() << "." << std::endl;
|
std::cerr << "[" << F.tagTime() << "+" << F.offset() << "] " << F.tagType() << std::endl;
|
||||||
}
|
}
|
||||||
if (Detail & DETAIL_RECONSTRUCT){
|
if (Detail & DETAIL_RECONSTRUCT){
|
||||||
std::cout.write(F.data, F.len);
|
std::cout.write(F.data, F.len);
|
||||||
|
|
Loading…
Add table
Reference in a new issue