If you are unable to watch a live stream and do not know where the problem lies, follow the steps below to locate the problem. This usually takes less than a minute.
First, check whether your playback URL is correct. Incorrect URLs are the most common cause of playback failure. Tencent Cloud uses publishing and playback URLs for live streaming. Make sure that you are not using a publishing URL for playback.
rtmp://domain/AppName/StreamName?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time) http://domain/AppName/StreamName.m3u8?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time) http://domain/AppName/StreamName.flv?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time) https://domain/AppName/StreamName.m3u8?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time) https://domain/AppName/StreamName.flv?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time)
domainis the domain name for publish/playback.
StreamNameare custom values, and the default value for
live. If you do not enable publishing or playback authentication, a URL ends before “?”. For example, if the publishing domain name is
www.push.com, the application name
live, and the stream name
test01, and publishing authentication is not enabled, the publishing URL would be
A correct playback URL does not guarantee successful playback. You need to check the video stream as well.
A common solution is to run a check using VLC, which is an open-source player for PC that supports a wide range of protocols. If you use Tencent Cloud’s private WebRTC protocol, you can run a check using the trial demo.
If there's no problem with the video stream, the next step is checking whether the player is normal.
Firewall restrictions are a common cause of playback failure. Many companies’ office networks set restrictions against video streaming. This is achieved by having the firewall check whether an HTTP request involves streaming media. If you can watch live streams using 4G networks but not using your company’s office Wi-Fi, then the problem lies in firewall restrictions. Contact your company’s IT department and see if they can lift the restrictions for your IP address.
If your playback URL is not playable and the firewall restrictions described in step 4 are nonexistent, the problem probably lies in publishing failure. To troubleshoot the issue, see Troubleshooting Push Failure.