We will then need to graft on the following customizations to wildcard.media:
Download link below player (we use fork now, we want to avoid this and do a pull request).
JavaScript shim for hyperlinking to timestamps (see below, also include this in pull request).
wildcard.media becomes test scenario for using, configuring Celery and collective.celery -- once this is done, we can look at running asynchronous handlers for form save of multi-record forms (data point computation).
JavaScript timestamp hyperlink shim
(function ($) {
var hash = window.location.hash.slice(1),
isVideoContent = $('body').hasClass('portaltype-wildcardvideo');
if (isVideoContent && hash) {
var parts = hash.split(':'),
min = (parts.length) ? parseInt(parts[0], 10) : 0,
sec = (parts.length > 1) ? parseInt(parts[1], 10) : 0,
rawSec = min * 60 + sec,
video = $('video.active');
if (video.length && !isNan(rawSec)) {
video[0].setCurrentTime(rawSec);
}
}
}(jQuery));
Continuing to use plone.app.async, for now. We can look again at Celery later.
Using plone.app.async requires using zc.async fork to deal with silly UUID package dependency that was causing us issues with reliably random UUIDs for things like form records. We can and will continue to do this until we move off plone.app.async.
We need to create a celery async worker (zope instance) on qits2 that uses:
wildcard.media becomes test scenario for using, configuring Celery and collective.celery -- once this is done, we can look at running asynchronous handlers for form save of multi-record forms (data point computation).
JavaScript timestamp hyperlink shim