tl-rtc-file icon indicating copy to clipboard operation
tl-rtc-file copied to clipboard

WebRTC P2P online web media streaming tool (for files, video, screen, live streaming, text) with management and statistical monitoring capabilities.

tl-rtc-file-tool

背景 : 20年毕设的题目相关整理出来的

简介 : (tl webrtc datachannel filetools)用webrt在web端传输文件,支持传输超大文件。

优点 : 分片传输,跨终端,不限平台,方便使用,内网不限速,支持私有部署

体验 : https://im.iamtsm.cn/file

qq交流群 : 624214498

image

准备

安装node,npm后进入项目目录

npm install

进入build目录 : cd build/webpack/  

安装一些依赖 : npm install


修改res目录, 保持后台开启即可

npm run dev 打包开发环境min

npm run pro 打包生产环境min

测试环境

本地启动file-res : npm run dev

本地启动file-socket : npm run devsocket

线上环境 (需要配置wss)

公网环境启动file-res : npm run svr 

公网环境启动file-socket : npm run svrsocket

配置db

修改conf/cfg.json中相应db配置即可, 如open, dbName, host, port, user, pwd 等

配置wss

修改conf/cfg.json中相应ws配置即可,如port, ws_online等

配置turnserver (私有部署)

ubuntu:

1. sudo apt-get install coturn  #安装coturn 

2. cp conf/turn/turnserver.conf /etc/turnserver.conf    #修改配置文件, 文件内容按需修改

3. chomd +x bin/genTurnUser.sh && ./genTurnUser.sh     #文件内容按需修改

4. chomd +x bin/startTurnServer.sh && ./startTurnServer.sh     #启动turnserver,文件内容按需修改

Docker

修改conf/cfg.json中的ws_online的ip地址(有更好的办法可以反馈下)

docker build -t iamtsm/tl-rtc-file .

docker run -p 9092:9092 -p 8444:8444 --name local -d iamtsm/tl-rtc-file

访问 : http://localhost:9092 或者 http://本机ip:9092

概述图

image

引用致谢

scroxt

layui

webpack

swiper

License

Apache License 2.0