# RTSP to WebRTC
## Embed your Cameras RTSP Stream via WebRTC
> This is a clone of the [RTSPtoWebRTC Project deepch](https://github.com/deepch/RTSPtoWebRTC)!
Steps to run this project:
1. Install [Go for LINUX, Windows or macOS](https://golang.org/doc/install?download)
2. Download /Clone this Repository [RTSPtoWebRTC](https://github.com/mpolinowski/RTSPtoWebRTC)
3. Enter the folder you downloaded the code into and edit the file `./config.json` to add your personal IP camera URLs, e.g.:
```json
}
"INSTAR_8015_FHD": {
"on_demand": true,
"url": "rtsp://admin:instar@192.168.2.77/11"
},
"INSTAR_9020_FHD": {
"on_demand": true,
"url": "rtsp://admin:instar@192.168.2.117/12"
},
"INSTAR_IN-7011_HD": {
"on_demand": true,
"url": "rtsp://admin:instar@192.168.2.63/11"
}
}
```
4. Now run the following command to run the application in development mode:
```bash
$ go run .
```
or build and run your application:
```bash
$ go build .
$ ./RTSPtoWebRTC
```
> The build command will build the binary release version of your Go application. This file will be called `RTSPtoWebRTC` - without an extension - on LINUX and can be executed from your command line or through a script (make sure that the file is made executable before running). If you run the command on Windows, you end up with an `RTSPtoWebRTC.exe` file that you can execute by double-clicking.
4. Open your Web browser and visit the following URL:
```bash
http://127.0.0.1:8888
```
---
![RTSPtoWebRTC](./webrtc_02.gif)
---
################ ORIGINAL README #####################
---
# RTSPtoWebRTC
RTSP Stream to WebBrowser over WebRTC based on Pion
full native! not use ffmpeg or gstreamer
if you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f
## Team
Deepch - https://github.com/deepch streaming developer
Dmitry - https://github.com/vdalex25 web developer
Now test work on (chrome, safari, firefox) no MAC OS
![RTSPtoWebRTC image](doc/demo4.png)
## Installation
1.
```bash
$ export GO111MODULE=on
$ go get github.com/deepch/RTSPtoWebRTC
```
2.
```bash
$ cd ~/go/src/github.com/deepch/RTSPtoWebRTC
```
3.
```bash
$ go run .
```
or
```bash
$ go build .
$ ./RTSPtoWebRTC
```
4.
```bash
open web browser http://127.0.0.1:8083 work chrome, safari, firefox
```
## Configuration
### Edit file config.json
format:
```bash
{
"server": {
"http_port": ":8083"
},
"streams": {
"demo1": {
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
},
"demo2": {
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
},
"demo3": {
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
}
}
}
```
## Limitations
Video Codecs Supported: H264
Audio Codecs Supported: pcm alaw and pcm mulaw
[![paypal.me/AndreySemochkin](https://ionicabizau.github.io/badges/paypal.svg)](https://www.paypal.me/AndreySemochkin) - You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
没有合适的资源?快使用搜索试试~ 我知道了~
RTSPtoWebRTC:IP Camera RTSP流到您的网页的WebRTC
共38个文件
map:10个
js:7个
css:6个
3星 · 超过75%的资源 需积分: 40 37 下载量 75 浏览量
2021-05-21
18:36:58
上传
评论 4
收藏 2.98MB ZIP 举报
温馨提示
从RTSP到WebRTC 通过WebRTC嵌入相机RTSP流 这是! 运行该项目的步骤: 安装 下载/克隆此存储库 输入将代码下载到的文件夹,然后编辑文件./config.json以添加您的个人IP摄像机URL,例如: } " INSTAR_8015_FHD " : { " on_demand " : true , " url " : " rtsp://admin:instar@192.168.2.77/11 " }, " INSTAR_9020_FHD " : { " on_demand " : true , " url " : " rtsp://admin:instar@192.168.2.117/12 " }, " INSTAR_IN-7011_HD " : { " on_deman
资源详情
资源评论
资源推荐
收起资源包目录
RTSPtoWebRTC-master.zip (38个子文件)
RTSPtoWebRTC-master
go.mod 151B
main.go 374B
go.sum 18KB
doc
demo2.png 403KB
demo4.png 259KB
demo3.png 315KB
web
templates
player.tmpl 1KB
index.tmpl 477B
static
js
jquery-3.4.1.min.js 86KB
bootstrap.bundle.js 218KB
bootstrap.js 129KB
adapter-latest.js 190KB
bootstrap.bundle.min.js 77KB
app.js 2KB
bootstrap.js.map 245KB
bootstrap.min.js.map 186KB
bootstrap.min.js 57KB
bootstrap.bundle.min.js.map 305KB
bootstrap.bundle.js.map 393KB
css
bootstrap-reboot.css 5KB
bootstrap.min.css.map 611KB
bootstrap-reboot.min.css.map 32KB
bootstrap-reboot.css.map 75KB
bootstrap.min.css 152KB
bootstrap-reboot.min.css 4KB
bootstrap-grid.min.css.map 106KB
bootstrap-grid.css 63KB
bootstrap.css.map 481KB
bootstrap-grid.min.css 47KB
bootstrap-grid.css.map 148KB
bootstrap.css 188KB
webrtc_02.gif 1.27MB
LICENSE 1KB
config.json 767B
README.md 3KB
http.go 4KB
stream.go 2KB
config.go 4KB
共 38 条
- 1
狛绝的追随者
- 粉丝: 23
- 资源: 4611
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1