-
Notifications
You must be signed in to change notification settings - Fork 977
What to do if your live does not play
If you're having trouble with live stream playback, follow these simple steps to identify and fix common issues.
The Nginx RTMP server must be running for live streaming.
-
Check if Nginx is running:
ps aux | grep nginx
-
If you see Nginx processes, it's running.
-
If not, start it with:
/usr/local/nginx/sbin/nginx
-
-
Check the stats page:
Open this URL in your browser:https://mysite.com:8443/stats
Replace
mysite.com
with your domain. It should show active streams.
Error logs can reveal why the stream isn’t working.
-
View logs in real-time:
tail -f /usr/local/nginx/logs/error.log
Watch for errors while starting your live stream.
HLS files (.m3u8
and .ts
) are needed for playback.
-
Go to the HLS directory:
cd /HLS/live/ ls
-
You should see
.m3u8
(playlists) and.ts
(video segments).
If not, check your Nginx configuration or stream setup.
The video player depends on a valid URL to play the stream.
-
Find the video tag in your HTML:
<video ...> <source src="https://yourdomain.com/live/$name/index.m3u8" type="application/x-mpegURL"> </video>
-
Test the URL in your browser:
Copy the URL (replace$name
with your stream key) and open it in your browser.- If it starts with
#EXTM3U
, it’s working. - If it shows an error, there’s an issue with the stream.
- If it starts with
Your website and stream server must use the same protocol (HTTP or HTTPS).
-
Check your website:
Open your site and see if the URL starts withhttp://
orhttps://
. -
Match protocols:
If your site uses HTTPS, ensure Nginx is also configured for HTTPS. Update the Nginx configuration and restart it:/usr/local/nginx/sbin/nginx -s reload
You can use your browser’s developer tools to check the .m3u8
file.
- Open your website and press
Ctrl + Shift + I
(orCmd + Option + I
on Mac). - Go to the Network tab and refresh the page.
- Type
.m3u8
in the filter box. - Check the file status:
-
200 OK
means the file is accessible. - Errors like
404 Not Found
indicate a problem with the file path or stream.
-
For more details, see Using Your Browser Console to Diagnose JavaScript Errors.
Adaptive streaming ensures viewers get the best stream quality based on their connection.
- Log in to your Avideo admin panel.
- Go to the Plugins section.
- Check if Adaptive Mode is enabled in the Live Plugin settings.
For more details, visit the Adaptive Bitrates on Livestream guide.