Resizes the player to the specified width and height.
Attribute | Description | Type | Required |
---|---|---|---|
width | The new desired width of the player in pixels (number) or percent (string) | Number | String | Yes |
height | The new desired height of the player. Must be specified in pixels (number) | Number | Yes |
Decimal-point values are allowed to be passed in to the method, but they will be rounded when the player sets the size.
jwplayer().resize('50%', 250)