-
Notifications
You must be signed in to change notification settings - Fork 981
What to do if your live does not play
If you are experiencing playback problems with your live stream, please follow this guide to troubleshoot common issues:
We use the Nginx RTMP server for streaming. Ensure that the server is running correctly.
Ensure you are looking in the correct directory. By default, Nginx is installed here:
/usr/local/nginx/
When starting the live stream, immediately inspect the error log. This can help identify issues like ffmpeg errors, on_publish errors, etc.
tail -f /usr/local/nginx/logs/error.log
Check if HLS files are being created correctly. These files should be in the directory:
cd /HLS/live/
ls
If you're using adaptive mode:
- Make sure you've uncommented the necessary lines in your Nginx configuration and then properly restarted Nginx.
nano /usr/local/nginx/conf/nginx.conf
- Additionally, ensure you've enabled adaptive mode in the Live plugin.
Inspect the video source within your video tag:
<video ... id="mainVideo">
<source src="https://mydomain.com/videos/640ea68c47c46-1.m3u8" type="application/x-mpegURL">
</video>
Ensure the URL https://mydomain.com/videos/640ea68c47c46-1.m3u8
is accessible. You can try opening it in a browser or using a tool like curl
to fetch its contents.
curl -I https://mydomain.com/videos/640ea68c47c46-1.m3u8
- Clear Browser Cache: Sometimes, cached data can lead to playback issues. Clear your browser's cache and retry.
- Network Issues: Ensure that the server's network connection is stable and that there are no issues with the viewer's network.