Comments (9)
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.
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.
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.
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.
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.
Oops - my mistake! should have tried it first :)
from pi-timolo.
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.
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.
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)
- Can't start pi-timolo HOT 27
- Python3 compatibility HOT 4
- Filename given to user actions should include full path, instead of relative to pi-timolo HOT 1
- Change filename style HOT 1
- Daemon is crashing HOT 5
- Ideal settings for Raspberry Pi Camera V2 (8 Mega Pixels) for motion detection HOT 9
- Camera version is being detected as 1.13 even though I have Raspberry Pi Camera v2.1 HOT 10
- Motion tracked images stored in media folder are not high definition HOT 7
- Permission Denied on Startup HOT 3
- IMAGE_USE_VIDEOPORT config is not used HOT 7
- Suggested optimization for resize call when in quick pic mode HOT 1
- Low light video HOT 4
- Raspi IRcamera how to auto-change exposure time when light changes HOT 1
- Bullseye default python version HOT 5
- Update to Picamera2 for Raspbian Bullseye? HOT 7
- pi-timolo exits due to error HOT 4
- The pi-timolo.py does not executes user motion function, everything works somehow.
- MOTION_NUM_MAX = 0 is not continuous; Only records one video
- "pi" is no longer the standard user name on Raspberry PIs
- How to deal with memory issues and py3exiv2 install
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 pi-timolo.