Video player - Control video width/height

Li, Cindy cli at ocadu.ca
Thu Mar 1 17:21:54 UTC 2012


Hi,

We currently have 2 different opinions on how the implementors control the video width/height:

1. Via CSS. The video player scripts don't do anything. Instead, leave it to implementors to set the width or height via CSS. The advantage of using css power is quite obvious: 1. less code leads to less bugs; 2. more flexibility.

2. The video player component provides an API:

fluid.videoPlayer(".videoPlayer", {
    video: {
        width: 900,
        height: 800,
        ….
    }
});

With 2, The implementors provides only a width or a height, the browser takes care of video ratio. The width and height could be all provided but not preferable since the video ratio is not maintained in that case. With API, the implementors can easily specify what they want at writing the initialization of the video player without the worry to look after CSS.

Your thoughts please.

Thanks.

Cindy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20120301/ba99f4af/attachment.html>


More information about the fluid-work mailing list