c#获取RTSP摄像头转WEB网页播放视频

2024-01-02 17:02:58

jimm98y/SharpRTSPtoWebRTC: A C# implementation of the RTSP to WebRTC gateway that allows you to stream RTSP from various sources to the web browser. It is implemented in netstandard2.0 without any native dependencies. Supports H264 and H265 re-streaming (H265 in WebRTC is only available in Safari). Audio transcoding from AAC to Opus is also supported. (github.com)

1.先修改配置文件appsettings.json,把海康威视的视频地址到配置文件里面

2.编译项目,启动c#服务端。

3.进入ClientApp目录,start npm,启动播放器页面。注意要提前安装npm之类的环境。

测试视频性能良好,无延迟,适合在局域网中使用。

文章来源:https://blog.csdn.net/ccagy/article/details/135342212
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。