|
|
|
@ -62,7 +62,7 @@ const App = () => ( |
|
|
|
|
The following attributes come from the `option` property configuration item |
|
|
|
|
|
|
|
|
|
| Parameter | Description | type | Default value | |
|
|
|
|
| ------------------- | ------------------------------------------------------------ | ----------------- | ------------- | |
|
|
|
|
| ------------------- | ------------------------------------------------------------ | ------------------------- | ------------- | |
|
|
|
|
| width | The width of the video container (required) | `number` | required | |
|
|
|
|
| height | The height of the video container (required) | `number` | required | |
|
|
|
|
| videoSrc | Video address (required) | `string` | required | |
|
|
|
@ -70,14 +70,14 @@ The following attributes come from the `option` property configuration item |
|
|
|
|
| poster | Video cover image | `string` | - | |
|
|
|
|
| setEndPlayContent | Customize what is displayed at the end of the video | `React.ReactNode` | - | |
|
|
|
|
| setBufferContent | Custom video buffer loading component | `React.ReactNode` | - | |
|
|
|
|
| pausePlacement | The position of the pause button | `bottomRight` | `center` | |
|
|
|
|
| pausePlacement | The position of the pause button | `bottomRight` | `center` | `bottomRight` | |
|
|
|
|
| hideMouseTime | How many milliseconds, without any operation, hide the mouse and controller/ms | `number` | 2000 | |
|
|
|
|
| isShowMultiple | Whether to display the multiplier function | `boolean` | true | |
|
|
|
|
| isShowSet | Whether to display the setting function | `boolean` | true | |
|
|
|
|
| isShowScreenshot | Whether to display the screenshot function | `boolean` | true | |
|
|
|
|
| isShowPicture | Whether to show picture-in-picture | `boolean` | true | |
|
|
|
|
| isShowWebFullScreen | Whether to display the full screen of the webpage | `boolean` | true | |
|
|
|
|
| language | Language | `zh` | `en` | |
|
|
|
|
| language | Language | `zh` | `en` | `zh` | |
|
|
|
|
|
|
|
|
|
#### Method |
|
|
|
|
|
|
|
|
|