1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-13 10:32:26 +02:00

Updated API, changed size to dimensions

There's no `size()` only `dimensions()`, so updated API to reflect this.
This commit is contained in:
Draco Li 2013-05-29 12:03:40 -03:00
parent 0f21f86521
commit 6251acdf56

View File

@ -165,10 +165,10 @@ myPlayer.height(480);
```
### size(width, height) ###
### dimensions(width, height) ###
Changes the width and height of the video to the supplied width and height. This is more efficient if you're changing both width and height (only triggers the player's resize event once). Returns the player object.
```js
myPlayer.size(640,480);
myPlayer.dimensions(640,480);
```