在处理来自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',in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] broken pipe
----------------------------------------

所有格式的视频文件都适用于所有浏览器和Android设备.当我尝试从iOS设备访问它时.它给了我上面的错误.你可以看到错误,首先它给我200响应,然后有破管.破碎的管道甚至意味着什么?仅供参考,我已经发布了一个问题,说明我无法在iOS设备上播放视频,我现在发布一个新问题,因为我在终端中发现了这个错误.

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

解决方法

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

例如,在apache2 edit example.com.conf文件添加以下行,以便apache提供媒体文件.

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

有时这可能会解决这个问题.

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...