https://bugzilla.wikimedia.org/show_bug.cgi?id=55622

--- Comment #1 from Brion Vibber <[email protected]> ---
Here's the workaround I'm using in ogv.js demo to take the original-media URL,
a known height & format, and return the URL to the transcode:

    function transcodeUrl(url, height, format) {
        var matches = url.match(/^(.*)\/(.\/..)\/(.*?)$/),
            baseUrl = matches[1],
            hash = matches[2],
            filename = matches[3];
        return baseUrl + '/transcoded/' + hash + '/' + filename + '/' +
filename + '.' + height + 'p.' + format;
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to