{"action":"created","issue":{"url":"https://api.github.com/repos/pallets/flask/issues/712","repository_url":"https://api.github.com/repos/pallets/flask","labels_url":"https://api.github.com/repos/pallets/flask/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/pallets/flask/issues/712/comments","events_url":"https://api.github.com/repos/pallets/flask/issues/712/events","html_url":"https://github.com/pallets/flask/issues/712","id":13032095,"number":712,"title":"HTML5 Video problem on iOS devices when using Flask development server","user":{"login":"spmacdonald","id":95063,"avatar_url":"https://avatars.githubusercontent.com/u/95063?v=3","gravatar_id":"","url":"https://api.github.com/users/spmacdonald","html_url":"https://github.com/spmacdonald","followers_url":"https://api.github.com/users/spmacdonald/followers","following_url":"https://api.github.com/users/spmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/spmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/spmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmacdonald/subscriptions","organizations_url":"https://api.github.com/users/spmacdonald/orgs","repos_url":"https://api.github.com/users/spmacdonald/repos","events_url":"https://api.github.com/users/spmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/spmacdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2013-04-10T18:03:47Z","updated_at":"2016-08-24T09:38:09Z","closed_at":"2014-10-07T17:28:57Z","body":"When I render this template and serve it using the development server, it works correctly in Chrome, Safari and IE:\r\n\r\n    <video id=\"video\" controls>\r\n      <source src=\"{{ url_for('static', filename='videos/trailer.mp4') }}\" type=\"video/mp4\">\r\n      <source src=\"{{ url_for('static', filename='videos/trailer.webm') }}\" type=\"video/webm\">\r\n    </video>\r\n\r\nWhen I try to load the same page with an iOS device I see the following exception:\r\n\r\n```\r\n192.168.0.116 - - [10/Apr/2013 10:42:57] \"GET /static/videos/trailer.mp4 HTTP/1.1\" 200 -\r\n----------------------------------------\r\nException happened during processing of request from ('192.168.0.116', 52979)\r\nTraceback (most recent call last):\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 284, in _handle_request_noblock\r\n    self.process_request(request, client_address)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 310, in process_request\r\n    self.finish_request(request, client_address)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 323, in finish_request\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 641, in __init__\r\n    self.finish()\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 694, in finish\r\n    self.wfile.flush()\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\nerror: [Errno 32] Broken pipe\r\n``` \r\n\r\nIf I replace the template with:\r\n\r\n```\r\n<video id='video'\r\n    controls preload='none' \r\n    poster=\"http://media.w3.org/2010/05/sintel/poster.png\">\r\n    <source id='mp4'\r\n    src=\"http://media.w3.org/2010/05/sintel/trailer.mp4\"\r\n    type='video/mp4'>\r\n    <source id='webm'\r\n    src=\"http://media.w3.org/2010/05/sintel/trailer.webm\"\r\n    type='video/webm'>\r\n    <source id='ogv'\r\n    src=\"http://media.w3.org/2010/05/sintel/trailer.ogv\"\r\n    type='video/ogg'>\r\n    <p>Your user agent does not support the HTML5 Video element.</p>\r\n</video>\r\n```\r\n\r\nTaken from, http://www.w3.org/2010/05/video/mediaevents.html\r\n\r\nThe video plays as expected on all devices I have tried it on (iPad and iPhone)"},"comment":{"url":"https://api.github.com/repos/pallets/flask/issues/comments/242009193","html_url":"https://github.com/pallets/flask/issues/712#issuecomment-242009193","issue_url":"https://api.github.com/repos/pallets/flask/issues/712","id":242009193,"user":{"login":"muammar","id":954209,"avatar_url":"https://avatars.githubusercontent.com/u/954209?v=3","gravatar_id":"","url":"https://api.github.com/users/muammar","html_url":"https://github.com/muammar","followers_url":"https://api.github.com/users/muammar/followers","following_url":"https://api.github.com/users/muammar/following{/other_user}","gists_url":"https://api.github.com/users/muammar/gists{/gist_id}","starred_url":"https://api.github.com/users/muammar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muammar/subscriptions","organizations_url":"https://api.github.com/users/muammar/orgs","repos_url":"https://api.github.com/users/muammar/repos","events_url":"https://api.github.com/users/muammar/events{/privacy}","received_events_url":"https://api.github.com/users/muammar/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T09:38:09Z","updated_at":"2016-08-24T09:38:09Z","body":"Sorry for commenting in a closed report. I am also experimenting this, and the code in question can been here:[video.py]( https://github.com/muammar/mkchromecast/blob/video/mkchromecast/video.py)."}}
{"actor":{"display_login":"muammar"}}