如何使用RTSP在ReactJS中播放实时摄像头视图。我有RTSP URL来播放IP摄像头的视频,如何播放
mv1qrgav1#
import React from "react"; import RTSPPlayer from "react-rtsp-player"; const CameraView =()=>{ return ( <RTSPPlayer url="rtsp://<camera-ip-address>:<port>/<stream>" controls={true} /> ); } export default CameraView;
1条答案
按热度按时间mv1qrgav1#