zombiebox
Version:
ZombieBox is a JavaScript framework for development of Smart TV and STB applications
29 lines (16 loc) • 1.02 kB
Markdown
0.2.0
=====
Video view port and aspect ratio features
-----------------------------------------
`video.isAspectRatioSupported(ratio);` now is `video.getViewport().isAspectRatioSupported(ratio);`
`video.toggleAspectRatio(ratios);` now is `video.getViewport().toggleAspectRatio(ratios);`
`video.getAspectRatio();` now is `video.getViewport().getAspectRatio();`
`video.setAspectRatio(ratio);` now is `video.getViewport().setAspectRatio(ratio);`
`video.setDisplayArea(10, 10, 100, 100);` now is `video.getViewport().setArea({x: 10, y: 10, width: 100, height: 100});`
`video.setDisplayFullScreen(true);` now is `video.getViewport().setFullScreen(true);`
`video.isDisplayFullScreen();` now is `video.getViewport().isFullScreen();`
Extending Proportion List
-----------------------------------------
`zb.device.AspectRatio` -> `zb.device.aspectRatio.AspectRatio`
`zb.device.AspectRatio.Proportion` -> `zb.device.aspectRatio.Proportion.Common`
`zb.device.AspectRatio.Transferring` -> `zb.device.aspectRatio.Transferring`