Fork of react 视频
✓ Published0🌍 Public
This example demonstrates a React-based video player streaming a live HLS (HTTP Live Streaming) feed from a public m3u8 playlist URL. It shows how to integrate the Video.js library into a React functional component using hooks, specifically initializing the player once via `useEffect` and handling its lifecycle disposal. The code relies on React 16.9, the Video.js 7.6.6 API, and the `video-react`-style wrapper pattern, configuring the player with options like height, controls, and the HLS source type.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed