Opened 13 years ago

Closed 13 years ago

Last modified 4 years ago

#375 closed defect (fixed)

Video Preload

Reported by: Jeremy Pope Owned by: joar
Priority: minor Milestone: 0.3.0
Component: component1 Keywords: bitesized
Cc: Parent Tickets:

Description (last modified by Christopher Allan Webber)

The HTML5 video tag has a few options on how a video is loaded on
page load. Currently, MediaGoblin uses ``preload="auto"`` which
causes the whole video to be downloaded on the end users side, even
if they don't actually play the video.
The ``preload="metadata"`` option will only load the metadata and
first frame of the video on page load. This can help site
navigation quite a bit during low-bandwidth times (such as through
3G on phone's wifi hotspot).
I have edited the
``mediagoblin/templates/mediagoblin/media_displays/video.html``
file on my MG instance to have the 'metadata' option. A couple of
examples: `http://url.jpope.org/9a <http://url.jpope.org/9a>`_ and
`http://url.jpope.org/99 <http://url.jpope.org/99>`_



Change History (8)

comment:1 by Jeremy Pope, 13 years ago

And I forgot to drop this link for reference sake ;)
`http://www.w3schools.com/html5/att\_video\_preload.asp <http://www.w3schools.com/html5/att_video_preload.asp>`_



comment:2 by Will Kahn-Greene, 13 years ago

The original url for this bug was http://bugs.foocorp.net/issues/734 .

comment:3 by Christopher Allan Webber, 13 years ago

Component: component1
Description: modified (diff)
Keywords: bitesized added
Milestone: 0.2.2

This is an easy task for a new contributor.

comment:4 by Christopher Allan Webber, 13 years ago

Also jpope's "theme" changed, so that example went away... should be clear enough what to do from the description of this bug I think, though.

comment:5 by joar, 13 years ago

Owner: set to joar
Status: acceptedassigned

This has been solved in a commit on my audio+sniffing branch, review and merge into master is pending.

https://github.com/jwandborg/mediagoblin/commit/4f4f2531ad5207d074027519b881bf485a249b44#L7R27

comment:6 by Sacha, 13 years ago

I fixed this bug here:
https://gitorious.org/~chemhacker/mediagoblin/chemhackers-mediagoblin/commits/bug375_video_preload

...and Chris already pushed my fix to the master branch. (collisions in sprints :) )

comment:7 by Christopher Allan Webber, 13 years ago

Resolution: fixed
Status: assignedclosed

comment:8 by thomzane, 4 years ago

Add a subticket #5625.

Note: See TracTickets for help on using tickets.