Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of react 视频

Public visualization

Viewing a saved revision (read-only)

991553117f8d4138b2f0c2f2916ae958

Fork of react 视频

0 stars0🌍 Public
DDanier
Last edited Nov 3, 2021
Created on Oct 29, 2021
Forked from react 视频

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.