Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 35d3b20

Browse files
committed
docs: add instruction about HTML5Video's width and height
1 parent daf7bd4 commit 35d3b20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/display/HTML5Video.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import Spinner from './Spinner'
1111
* const url = 'https://url/to/video'
1212
* const video = FT.create(Video, url)
1313
*
14+
* // Setting up width and height is required, or the video's size
15+
* // will be 0x0. Then, you can't see the video.
16+
* video.width = 1500
17+
* video.height = 750
18+
*
1419
* // unlock
1520
* await video.unlock()
1621
*

0 commit comments

Comments
 (0)