Users may fail to view a live stream or get a 404 error when they play a live video due to many causes. Perform the following operations to troubleshoot the issues:
Check the concatenating format of the streaming URL
- Make sure that you do not use the ingest URL as the streaming URL.
- Make sure that the streaming URL is valid and follows the concatenating format:
DomainName+AppName+StreamName. For more information, see Generate ingest and streaming URLs.
Make sure that the domain name is resolved to an Alibaba Cloud server
You can run the ping command to check whether the canonical name (CNAME) record has taken effect.
- If
alikunlun*.comis pinged, the CNAME record has taken effect. - If the CNAME record does not take effect, add a CNAME record for the domain name. For more information, see Add a CNAME record.
Check the player
- Enter the streaming URL in a third-party player to play the live stream. If the playback still fails, maybe it is not the player that causes the playback failure.
- Check whether a cross-domain error occurs to the player. You must add a cross-domain policy file for the player to implement cross-domain access. For more information, see What can I do if a message indicating a cross-origin error appears when the player plays streams based on M3U8 playlists?
- Check whether the player supports the playback format.
- The Flash player on a PC supports the following formats: RTMP, FLV, and M3U8.
- The H5 player on a mobile phone supports only the M3U8 format. All iOS devices support this format. Android devices later than 4.0 are compatible with the M3U8 format only when the mobile browser supports it.
Check the authentication
- Check whether the authentication key is misspelled. For more information, see URL signing.
- Check whether the request is sent before the validity period of the signed URL ends.
Ask users to check the network condition on their devices
Ask users to check whether they can access the Internet on their devices. They can ping the domain name for CDN to test the network connectivity.