Page MenuHomePhabricator

Make MMV instances configurable
Open, LowPublic

Description

Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/275

The MultimediaViewer class has some configuration options such as preloading distance, which cannot be currently changed before the lightbox is opened, because of the lazy-loading. There should be a way to do that. (For extra points, have a sane configuration class instead of variables littered here and there.)

A similar problem is that there is no way to override/replace methods in MMV, because the instance is only created when the lightbox opens. For wiki administrators / gadget writers trying to modify behavior this will be a problem. Maybe we should just offer a callback for this?

Event Timeline

MingleTerminator raised the priority of this task from to Low.Dec 8 2014, 4:47 PM
In mingle on 2014-03-01 at 04:59:56, @Tgr wrote:

While we are at it, making more of the non-core behavior (preloading, blur, performance metrics etc) a configuration option would also be nice.

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.