audio/videostream使用SimpleHTTPServer失败

我通过使用python -m SimpleHTTPServer调用服务器来将文件夹中的文件共享到其他设备。

我只是尝试使用这个& IT WORKS (但通过将错误(列在下面)在terminal)streamvideo/audio(标准MP4和MP3,都在20MB以下)到另一台计算机。

不知何故,video/audio失败(除了非常小的MP3文件)与iPhone / iPad的Safari玩。 这绝对与媒体文件无关,因为我在iPhone中使用Apache成功传输媒体文件。

任何想法为什么发生?

 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 

作为sugested要么使用python的替代品, 什么是更快的替代Python的http.server(或SimpleHTTPServer)? 或完全使用完整的网页服务器。 Quick google表示Mac支持Nignx和Apache2。