All Products
Search
Document Center

:The video cannot be played after the stream ingest URL is generated in the ApsaraVideo Live

Last Updated:Jan 24, 2022

Issue

After a ApsaraVideo Live generates an ingest URL and the stream is ingested, the video cannot be played.

Fixes

See the following steps for troubleshooting:

  1. Confirm that the stream ingest is normal:
    Log on to the ApsaraVideo Live console, click Flow Management, and select the target domain name. Confirm that the information about the online stream can be queried, indicating that the stream ingest is normal. If you cannot query the information of the online stream, the stream ingest is abnormal. For more information, see ApsaraVideo Live stream ingest is abnormal.
  2. Open the browser, click the F12 key, open the developer tool, play the live video, switch to the Network tab, click the requested video address, and check whether there is X-Tengine-Error information in the Response Header of the Headers tab, and whether there is a Referer header in the Request Header.
    • If the following information is related to authentication, you can adjust your authentication configurations by following Configuring URL authentication.

      • The following information appears, indicating that authentication is enabled, but the authentication address is not used for playback.
        X-Tengine-Error: denied by req auth: no url arg auth_key
      • The following information appears, indicating that authentication is enabled, but the auth_key expires and the playback fails.
        X-Tengine-Error: denied by req auth: expired timestamp
    • If the following information exists, it indicates that the problem is related to hotlink protection, add the Referer value to the hotlink protection whitelist, or select Allow direct access to resource URLs through the browser address bar to perform a temporary test. For more information about how to add a domain name, see Anti-leech protection.
      X-Tengine-Error: deniedby Referer ACL
  3. Switch to the Console tab to check whether there is a "No 'Access-Control-Allow-Origin'header" error, which is the cross-domain problem.
    Log on to the ApsaraVideo Live console and click Domain Names. On the Domain Names page, click the target domain name, and then click HTTP Header Configuration. Find the Access-Control-Allow-Origin and set it to * or the complete domain name to be accessed. For more information, see Configure HTTP message headers.
  4. Check whether the playback address is correct:
    • Confirm that your streaming domain name is not configured with a certificate. When you preview the streaming domain name in the Alibaba Cloud ApsaraVideo Live console, HTTPS is used by default. If you do not configure a certificate, playback fails. For more information about how to configure an HTTPS certificate, see Configure an HTTPS Secure CDN.
    • You need to check whether your playback URL is correct. The AppName and StreamName must be the same as the ingest URL. If you use the URL authentication feature, you need to use an authenticated URL to play the video. You can obtain the playback URL in the console. For more information, see Obtain the playback URL.
  5. Format encoding problem:
    The ApsaraVideo Live supports MP4, m3u8, flv video formats, and mp3 audio formats, and supports H264 video encoding and AAC audio encoding. Audio and video in other formats may cause playback failures.
  6. Local network problems:
    Check whether there is a problem with your local playback network. You can try to test whether it can be played normally in other network environment.
  7. After troubleshooting through the above steps, if the problem persists, you can try to test it by using the ingest address generated by the address generator of the ApsaraVideo Live console.

Reference

Applicable scope

  • ApsaraVideo Live