2015-04-27 31 views
3

我试图在iOS设备上播放视频。当我尝试播放时出现以下错误:在处理来自IOS设备的请求期间发生异常

[27/Apr/2015 06:59:30] "GET /media/2015/04/VID_20150327_112644.mp4 HTTP/1.1" 200 18 

Exception happened during processing of request from ('192.168.1.230', 51412) 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread 
    self.finish_request(request, client_address) 
    File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request 
    self.RequestHandlerClass(request, client_address, self) 
    File "/home/likewise-open/ZEALOUSYS/manesh/virtualenv/tracks/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 129, in __init__ 
    super(WSGIRequestHandler, self).__init__(*args, **kwargs) 
    File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__ 
    self.finish() 
    File "/usr/lib/python2.7/SocketServer.py", line 710, in finish 
    self.wfile.close() 
    File "/usr/lib/python2.7/socket.py", line 279, in close 
    self.flush() 
    File "/usr/lib/python2.7/socket.py", line 303, in flush 
    self._sock.sendall(view[write_offset:write_offset+buffer_size]) 
error: [Errno 32] Broken pipe 
---------------------------------------- 
Exception happened during processing of request from ('192.168.1.230', 51412) 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread 
    self.finish_request(request, client_address) 
    File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request 
    self.RequestHandlerClass(request, client_address, self) 
    File "/home/likewise-open/ZEALOUSYS/manesh/virtualenv/tracks/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 129, in __init__ 
    super(WSGIRequestHandler, self).__init__(*args, **kwargs) 
    File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__ 
    self.finish() 
    File "/usr/lib/python2.7/SocketServer.py", line 710, in finish 
    self.wfile.close() 
    File "/usr/lib/python2.7/socket.py", line 279, in close 
    self.flush() 
    File "/usr/lib/python2.7/socket.py", line 303, in flush 
    self._sock.sendall(view[write_offset:write_offset+buffer_size]) 
error: [Errno 32] Broken pipe 
---------------------------------------- 

所有格式的视频文件在所有浏览器和Android设备上都能正常工作。当我尝试从iOS设备访问它时。它给了我上面的错误。正如你可以看到错误,首先它给我的答复是200,然后是管道破损。这个破管甚至是什么意思?仅供参考,我已经发布了一个问题,指出我无法在iOS设备上播放视频,现在我发布了一个新问题,因为我在终端中发现了此错误。

我该如何解决这个问题?任何帮助表示赞赏。

+0

破管错误可能与iOS设备没有播放视频文件无关。有关破损管道错误的信息,请参阅http://stackoverflow.com/a/7913160/1644198。 – aumo

回答

2

这是因为django正在处理您的媒体文件而不是apache.Try通过更改您在服务器中的配置。

例如在您的apache2编辑example.com.conf文件中添加以下行,以便apache将提供媒体文件。

**Alias /media /your project path/media** 

有时候这可能会解决这个问题。

+0

这解决了这个问题,谢谢... – Vishnu

相关问题