@@ -18,19 +18,19 @@ render(<Player {...props} />)
18
18
19
19
### ` Props `
20
20
21
- | Name | Type | Default | Description |
22
- | --------------------- | ------------------------------------------------ | --------- | ------------------------------------------------------------------------ |
23
- | ` id ` | ` string ` | | Unique identifier of the player instance |
24
- | ` title ` | ` string ` | | Video title |
25
- | ` cover ` | ` string ` | | Video cover image |
26
- | ` duration ` | ` number ` | | Initial video duration. Use actual values after video metadata is loaded |
27
- | ` sources ` | ` sources ` | | Video playback data |
28
- | ` standalone ` | ` boolean ` | ` false ` | Enable standalone mode |
29
- | ` onBeforePlay ` | ` function ` | ` void ` | Callback function before video playback |
30
- | ` shouldObserveResize ` | ` boolean ` | ` false ` | Listen to the window resize |
31
- | ` initialObjectFit ` | ` fill \| contain \| cover \| none \| scale-down ` | ` contain ` | object-fit |
32
- | ` useMSE ` | ` boolean ` | ` false ` | Enable Media Source Extensions™ |
33
- | ` locale ` | ` en \| ja \| zh-Hans \| zh-Hant ` | ` en ` | UI Locale |
21
+ | Name | Type | Default | Description |
22
+ | --------------------- | ------------------------------------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
23
+ | ` id ` | ` string ` | | Unique identifier of the player instance |
24
+ | ` title ` | ` string ` | | Video title |
25
+ | ` cover ` | ` string ` | | Video cover image |
26
+ | ` duration ` | ` number ` | | Initial video duration. Use actual values after video metadata is loaded |
27
+ | ` sources ` | ` sources ` | | Video playback data |
28
+ | ` standalone ` | ` boolean ` | ` false ` | Enable standalone mode |
29
+ | ` onBeforePlay ` | ` function ` | ` void ` | Callback function before video playback |
30
+ | ` shouldObserveResize ` | ` boolean ` | ` false ` | Listen to the window resize |
31
+ | ` initialObjectFit ` | ` fill \| contain \| cover \| none \| scale-down ` | ` contain ` | object-fit |
32
+ | ` useMSE ` | ` boolean ` | ` false ` | Enable Media Source Extensions™ |
33
+ | ` language ` | ` en \| ja \| zh-Hans \| zh-Hant ` | | UI language. If not specified, Griffith will try to detect from ` html ` 's ` lang ` attribute and ` navigator.languages ` and eventually fallback to ` en ` . |
34
34
35
35
` sources ` :
36
36
0 commit comments