Add a file handlers for audio, video and images

Bug #490691 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
Low
David Coles

Bug Description

Add HTML5 handlers for audio and video files if opened in the file view.

Related branches

William Grant (wgrant)
tags: added: filebrowser
William Grant (wgrant)
tags: added: feature
David Coles (dcoles)
Changed in ivle:
assignee: nobody → David Coles (dcoles)
milestone: none → 1.0.2
Revision history for this message
Matt Giuca (mgiuca) wrote :

Also do this for images. We always planned a special screen for images. Now we can add all three media types.

Revision history for this message
David Coles (dcoles) wrote :

lp:~ivle-dev/ivle/mediahandlers branch has media handlers for Image, Video and Audio content using <img>, <video> and <audio> tags with fall-back to <object>.

Changed in ivle:
status: Triaged → In Progress
David Coles (dcoles)
summary: - Add a file handler for audio and video
+ Add a file handlers for audio, video and images
Revision history for this message
David Coles (dcoles) wrote :

I've also added in support for sending the Content-Length of served files. This is useful for downloads and showing the length of some media files. For example, HTML5 audio tag will show duration of wave files.

One thing that won't work is the duration of Ogg files since the file length is not clear from the start of the file. The two ways around it are setting X-Content-Duration (unlikely since we don't really use ogg files for anything) or allowing seeking of files with partial content to allow the browser to peek at the end of the file. It's also handy if you want to allow uses to seek in a file rather than wait for the entire thing to download.

See: https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media#Getting_the_duration_of_Ogg_media

Revision history for this message
David Coles (dcoles) wrote :

Also, take a look at canPlayType section of http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#mime-types. There's a small script demonstrating how one can detect if a MIME format is supported.

Probably quite important since it appears that my Chromium Build doesn't support audio/wav...

David Coles (dcoles)
Changed in ivle:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.