Aspect Ratio


KWIKplayer allows you to choose your player's aspect ratio when contructing it by adding the "apectratio" directive and assigning it to your desired value.

The aspectratio varibale takes a string which is representative of width-to-height ratio.

Below is an example of assigning the player an aspect ratio of "16:9":


 <script>
    ...
    aspectratio: "16:9", //the player's aspect ratio
    sources: [           //the video sources
        {file:"https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/playlist.m3u8"},
        {file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/manifest.mpd"},
        {file: "https://clvod.itworkscdn.net/itwvod/smil:itwfcdn/admin/515002-R204MDrB22W6kG8.smil/Manifest"}],
    ...
 </script>