Captionator

Cheetham, Anastasia acheetham at ocadu.ca
Thu Feb 16 21:07:40 UTC 2012


On 2012-02-16, at 4:03 PM, Cheetham, Anastasia wrote:

> For example:


Based on the discussion ongoing in the channel, I revise my example to:

    var vp = fluid.videoPlayer(".videoPlayer", {
        video: 
            sources: [{
                src: "ReorganizeFuture.mp4",
                type: "video/mp4"
            },
            {
                src: "ReorganizeFuture.webm",
                type: "video/webm"
        
            }],
            captions: [{
                src: "ReorganizeFuture.en.vtt",
                type: "text/vtt",
                srclang: "en",
                label: "English Subtitles",
                kind: "subtitles"
            },
            {
                src: "ReorganizeFuture.fr.vtt",
                type: "text/vtt",
                srclang: "fr",
                label: "French Subtitles",
                kind: "subtitles"
            }]
        },
        model: {
            currentCaption: 0  // 0-based index into captions array
            fullscreen: true,
            volume: 60
        },
        controls: "custom",
        etc...
    });

-- 
Anastasia Cheetham     Inclusive Design Research Centre
acheetham at ocadu.ca           Inclusive Design Institute
                                        OCAD University



More information about the fluid-work mailing list