GithubHelp home page GithubHelp logo

Comments (3)

jaredpetersen avatar jaredpetersen commented on June 16, 2024

@gongzhang

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.

gongzhang avatar gongzhang commented on June 16, 2024

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.

jaredpetersen avatar jaredpetersen commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.