This topic describes how to troubleshoot the issue where an ingested stream can be played based on Real-Time Messaging Protocol (RTMP) and HTTP-FLV but cannot be played based on HTTP Live Streaming (HLS).

Problem description

A stream is ingested. Three streaming URLs are provided for RTMP playback, HTTP-FLV playback, and HLS playback. RTMP playback and HTTP-FLV playback succeeded, but HLS playback failed.

Troubleshooting

  1. Check whether the audio and video formats of the ingested stream are correct. Make sure that the video is H.264-encoded and the audio is Advanced Audio Coding (AAC)-encoded.
  2. Use the FFPlay player to play the stream based on RTMP and M3U8 playlists. Check whether error messages are returned.
  3. Check whether the origin host of the streaming domain is modified.

    By default, the origin host of the streaming domain cannot be modified. If the origin host is modified, the RTMP and FLV playback are not affected, but the HLS playback fails.