You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how video.js mutates the DOM, integrating video.js with React can be a bit tricky. Especially if you want to support video.js component updates and correctly dispose of any old player.
9
+
Due to how video.js mutates the DOM, integrating video.js with React can be a quite tricky. Especially if you want to support video.js component updates and correctly dispose of any old player.
10
10
11
11
React Hooks helps us package this quite nicely, and all you have to do to use this package is:
12
12
@@ -62,8 +62,6 @@ const App = () => {
62
62
};
63
63
```
64
64
65
-
_Note: Videojs supports adding `<track>` and `<sources>` elements programmatically_
66
-
67
65
### Support for all `<video>` element attributes
68
66
69
67
This hook supports all attributes for the native `<video>` element directly on the `<Video>` component.
@@ -73,5 +71,3 @@ const App = () => {
73
71
return<Video muted autopictureinpicture />;
74
72
};
75
73
```
76
-
77
-
_Note: video.js supports many of these (and registration of listeners) through the player options_
0 commit comments