代码拉取完成,页面将自动刷新
Chrome 49 added a highly useful event log which, among other things, contains the RTP packet headers of any packets received or sent. See http://www.rtc.news/posts/aqZx7tevokRoSrSfw/how-to-get-a-webrtc-diagnostic-recording-from-chrome-49 for how to get it.
Install Wireshark and node.js if not already installed.
To install the dependencies: npm install
To dump all the packets:
node dump event_log_file
To dump all RTP traffic into a pcapng:
node rtp.js <file> | text2pcap -D -4 1.1.1.1,2.2.2.2 -u 10000,20000 -t "%T." -n - output/some.pcapng
To dump only incoming or outgoing RTP traffic into a pcapng, use either incoming
or outgoing
flag:
node rtp.js <file> [incoming|outgoing] | text2pcap -D -4 1.1.1.1,2.2.2.2 -u 10000,20000 -t "%T." -n - output/some.pcapng
rtc_event_log.proto is generated from the description in the webrtc.org tree:
protoc-c webrtc/logging/rtc_event_log/rtc_event_log.proto -o rtc_event_log.desc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。