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)
Note:
domain
is the domain name for publish/playback.AppName
andStreamName
are custom values, and the default value forAppName
islive
. If you do not enable publishing or playback authentication, a URL ends before “?”. For example, if the publishing domain name iswww.push.com
, the application namelive
, and the stream nametest01
, and publishing authentication is not enabled, the publishing URL would bertmp://www.push.com/live/test01
.
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.
Web browser
RTMP SDK
If playback is possible with the RTMP SDK demo, we recommend that you check your integration logic against the playback documents iOS and Android.
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.
Was this page helpful?