Giter Site home page Giter Site logo

Webserver issue about pi-timolo HOT 9 CLOSED

pageauc avatar pageauc commented on July 27, 2024
Webserver issue

from pi-timolo.

Comments (9)

pageauc avatar pageauc commented on July 27, 2024

I originally tested webserver.py with images on my ipod but did not at the time test with mp4. video and images both work fine on my windows pc with chrome browser. Tested images on my ipod and now does not show side menu. I believe this might be due to updates to chrome on ios since this worked fine previously. please confirm if images display OK on ipad with side menu visible. Will take a look at this problem as well
Error 32 problem
Below is a link that I believe explains the issue that is related to timeout of client before it has a chance to load the mp4 file.
https://stackoverflow.com/questions/11866792/how-to-prevent-errno-32-broken-pipe
I will take a look at problem and see if I can resolve the broken pipe issue as well as the side menu issue on IOS devices on Chrome and Safari.

Thanks Claude ...

from pi-timolo.

nigels0 avatar nigels0 commented on July 27, 2024

Hi,

I can confirm I'm getting the side menu visible (Images load fine but no video) on iPad with Safari and Chrome - but have the broken pipe issue.... so you must be right about the timeout. When using Firefox on the Mac, I get occasional timeouts, but the video eventually plays. MP4 files are about 5MB.

from pi-timolo.

pageauc avatar pageauc commented on July 27, 2024

OK Thanks

The iframe side menu selections are generated from A directory listing that is formatted as url links. I will see if I can implement a SocketServer.TCPServer timeout to allow client to download mp4 file before webserver timeout.. I have tested on my android devices and they work with chrome to show mp4 video but IOS has the timeout problem.

from pi-timolo.

nigels0 avatar nigels0 commented on July 27, 2024

Is it possible to have sub-directories on the side-menu selections, so you could have a few cameras rather than all on one flat list?

from pi-timolo.

pageauc avatar pageauc commented on July 27, 2024

Yes you can have subdirectories and they open in a separate browser tab. Not sure if you want to display a folder tree. If you look at the webserver.py code it reads in a a list of the directory entries. This list is then used to create the url links for the files and subfolders. A new folder tab is spawned if you click on a subfolder link.

from pi-timolo.

nigels0 avatar nigels0 commented on July 27, 2024

Oops - my mistake! should have tried it first :)

from pi-timolo.

pageauc avatar pageauc commented on July 27, 2024

Still doing some testing with IOS url links and broken pipe problem. Android seems to work file as well as a PC web browsers. In doing research it appears IOS video timeout/broken pipe is a recurring problem. Some have found changing the player works. The Apple video player seems to have some video playback issues on IOS devices. It could be that the MP4 files encoded by RPI is not very compatible with Apple. I will try to run some videos through handbrake and put back on the RPI. This will confirm if issue is encoder based. I suspect when the URL is requesting MP4 file from RPI that it closes connection when it cannot read the file format.
I have already tried changing the webserver URL format for video player and reducing size of video, Etc with no joy.

from pi-timolo.

pageauc avatar pageauc commented on July 27, 2024

Tested with 640x480 video's converted with HandBrake using web optimize, and ipod 5G Support. Still getting broken pipe. Not sure where the problem is. Could be a security issue on IOS due to local web server. Still scratching my head since same code works great on Android, windows, Raspbian (chrome) and ubuntu. So the problem does not seem to be the HTML code but rather some glitch with IOS that others have experienced. Does not seem to be an obvious solution. You might try installing another video player on IOS device and give that a try but apparently this is not easy. Here is a link regarding this

https://www.computerhope.com/issues/ch001691.htm

from pi-timolo.

nigels0 avatar nigels0 commented on July 27, 2024

Hi,

I think the problem is buffering in that both the iOS and Mac version of Safari may need to bring the whole file into memory before playing - but times out in its calls to the disk (I'm using goggle drive to store the video files). just viewing the files on the iPad using the google drive app works OK

from pi-timolo.

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.