Comments (3)
I suspect that raspi-live is working but that there's some sort of issue with how you're trying to play the video. Since you mentioned Safari and iOS, I'm assuming you're trying to do playback on another device. In that case, you can't provide localhost as an address. If you do, the browser will read your HTML and look at localhost on the machine running the browser rather than the local networking environment of the raspberry pi.
If you open up the developer tools in your browser, you should be able to see that your browser can't even download the livestream.m3u8 file at all because there's nothing serving that file on the browser machine's localhost.
Try using the IP address of the raspberry pi instead of localhost
in your HTML file, e.g. http://78.16.253.91:8000/camera/livestream.m3u8
.
from raspilive.
Thank you for your quick reply 😊
Sorry for the localhost
. It misleads the problem. You can assume that I have correct IP address pointing to raspi in that web page.
iOS Safari does not recognize the stream for some reason. I will debug it using browser inspector later.
from raspilive.
Hmm... Okay.
Assuming the IP address is good to go, the next thing I would try is to remove the python server entirely from the equation. Safari can support playback without having the <video>
tag at all by just pasting in the URL directly, e.g. http://78.16.253.91:8000/camera/livestream.m3u8
.
If that doesn't work but it downloads the file correctly, please paste the contents of the m3u8 file and screenshots of anything you see in the browser inspector (console logs, network waterfall, etc.). Also share whatever log output that raspi-live gives out.
I've tested raspi-live's streaming files with Safari before but haven't had any issues. I suspect it's a network problem but could be wrong. The logs and screenshots will help make that more clear.
from raspilive.
Related Issues (20)
- took over my desktop HOT 7
- Shows that it is running, but no m3u8 file is generated HOT 19
- Run at boot HOT 1
- Image Rotation HOT 2
- Support ability to choose between fmp4 or mpegts with HLS HOT 3
- Old segment files are not removed when service is stopped and started again HOT 1
- Configuration Refactor HOT 2
- question - how can I set brightness and saturation parameters? HOT 2
- ffmpeg fails to compile on newest version of raspbian HOT 3
- Instructions need a little update to force link atomic lib. HOT 2
- Returns 404 HOT 1
- support lhls option HOT 2
- GO Rewrite HOT 1
- Debian packaging HOT 1
- CORS configuration HOT 5
- How many parallel connections it can handle? HOT 2
- Installation Instructions HOT 1
- [Question] How do I see the stream on the browser HOT 3
- SSL streaming HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspilive.