lp:~ivle-dev/ivle/mediahandlers
- Get this branch:
- bzr branch lp:~ivle-dev/ivle/mediahandlers
Branch merges
- Matt Giuca: Approve
- David Coles: Approve
-
Diff: 444 lines (+202/-60)6 files modifiedivle/dispatch/request.py (+5/-0)
ivle/webapp/filesystem/browser/media/browser.css (+1/-0)
ivle/webapp/filesystem/browser/media/browser.js (+163/-33)
ivle/webapp/filesystem/browser/media/editor.js (+25/-24)
ivle/webapp/filesystem/serve/__init__.py (+1/-0)
services/serveservice (+7/-3)
Related bugs
Bug #490691: Add a file handlers for audio, video and images | Low | Fix Released | |
Bug #588337: Opening non-text files still causes contents of file to be fetched | Low | Fix Released |
Related blueprints
Branch information
Recent revisions
- 1800. By David Coles
-
Use "?return=contents" URL instead of '/download/' since "Content-
Disposition:
attachment" causes issues with certain embeded media (mainly SVG).NB: The URLs generated do not support browsing revisions. See bug #610745.
- 1799. By David Coles
-
Add generic <object> media handler for suporting other media types (such as SVG)
- 1798. By David Coles
-
Change handle_
content_ response so that we only fetch file contents inside-
fetch_text and not for all media types.Also remove present_editorhead since it's only useful action is an unreachable
codepath and requires threading some otherwise unneeded varaibles. - 1797. By David Coles
-
Map 'application/ogg' to audio hander as recomended by XIPH. Note: Newer versions of Python's guess_type map '.ogg' to 'audio/ogg' anyway.
- 1796. By David Coles
-
File Browser: Rewrite using text() to avoid HTML injection and allow for
fallback using canPlayType(). - 1793. By David Coles
-
File Browser: Don't show actions2_file for anything but text editor and
disable the "unsaved content" warning. - 1792. By David Coles
-
File Browser: File handlers for Image, Audio and Video.
- Image always uses <img> tag, though things like SVG may not work (such
as in Firefox)
- Audio and Video use HTML5 <audio> and <video> tags with fallback to
<object> and then a plain link
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar pack repository format 1 with rich root (needs bzr 1.0)