Tag: simplehttpserver

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, […]