1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine examples of srs-librtmp, add srs_print_rtmp_packet. 2.0.28.

This commit is contained in:
winlin 2014-11-21 13:48:57 +08:00
parent a058eeeb20
commit d9474d7600
8 changed files with 284 additions and 101 deletions

View file

@ -112,8 +112,11 @@ int proxy(srs_rtmp_t irtmp, srs_rtmp_t ortmp)
srs_lib_trace("irtmp get packet failed. ret=%d", ret);
return ret;
}
srs_lib_verbose("irtmp got packet: type=%s, time=%d, size=%d",
srs_type2string(type), timestamp, size);
if ((ret = srs_print_rtmp_packet(type, timestamp, data, size)) != 0) {
srs_lib_trace("print packet failed. ret=%d", ret);
return ret;
}
if ((ret = srs_write_packet(ortmp, type, timestamp, data, size)) != 0) {
srs_lib_trace("irtmp get packet failed. ret=%d", ret);