To resolve the live video protocol on Android phones, you can capture packets to view existing live video applications, such as Phoenix TV and mobile TV. The main methods are as follows:
1. Install the live video application on the android simulation and capture packets using Wireshark to view what protocols are based on, such as RTSP/HTTP
Advantage: in Windows, it is easier to use the wireshark packet capture tool with an interface.
Disadvantage: the android simulator has limited resources and the TV cannot be played normally.
Wireshark has many functions. The common function is to select the NIC name to capture packets and set the data filter, as shown in 1. Click options under the capture menu to select the built-in filter, for example, capture only HTTP/TCP/UDP packets and click Start to record data:
Figure 1 Wireshark packet capture tool
2. Install tcpdump on the Android mobile phone and save the log information to the sdcard. For example, capture the data packets of the mobile TV dopool application:
./Tcpdump-n-s 0-W/sdcard/dopool. pcap (-N indicates ignoring the DNS protocol, and-S 0 indicates capturing the protocol header and specific protocol information)
Below are some common TV live video protocol analysis on Android platforms
2.1 W. TV
2.2 Phoenix mobile
2.3 dopool mobile TV
Conclusion: W. TV and Phoenix TV are live broadcast functions based on RTSP/RTP protocol, while dopool is live broadcast based on TS stream.