1
0
mirror of https://github.com/videojs/video.js.git synced 2025-09-16 09:26:56 +02:00

Merge pull request #547 from DracoLi/patch-1

Updated API, changed `size` to `dimensions`
This commit is contained in:
Steve Heffernan
2013-05-29 10:47:01 -07:00

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);
```