I am sharing files in a folder on other devices, invoking the server using python -m SimpleHTTPServer .
I just tried to transfer video / audio (standard mp4 and mp3, both under 20 MB) to another computer using this, and it WORKS (but throwing errors (listed below) to the terminal),
Somehow, the video / audio fails (except for very small mp3 files) to play with Safari on the iPhone / iPad. This is definitely not related to media files since I transferred them using Apache to the iPhone.
Any idea why this is happening?
Exception happened during processing of request from ('192.168.1.2', 51775) Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request self.finish_request(request, client_address) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 641, in __init__ self.finish() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 694, in finish self.wfile.flush() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Broken pipe
Jikku jose
source share