Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

太好用了,碰到了点小问题 #3

Open
imamiao opened this issue Jan 25, 2021 · 1 comment
Open

太好用了,碰到了点小问题 #3

imamiao opened this issue Jan 25, 2021 · 1 comment

Comments

@imamiao
Copy link

imamiao commented Jan 25, 2021

  1. 把代码拉下来在VSCode中直接 go run 运行,既没有视频数据,API接口也没有响应。编译打包成exe之后,再执行功能就正常了。不知道这是什么原因?
  2. websocket-rtsp为什么列为实验功能嘞,我试下来效果很好啊,也很稳定。
  3. websocket-rtsp测试页面里有一个rtsp.dev.js是大佬自己写的吗?在网上没有找到相关信息
@cnotch
Copy link
Owner

cnotch commented Jan 25, 2021

如果项目对您有用,那么开源就有价值。

  1. 这个不好回答,可能是服务端口或没有配置视频源等原因。您可以单步调试一下找找具体原因
  2. websocket-rtsp列为实验,是因为我本人对web端编程不会。只能做到这个程度,难有完善的能力;或学习js的动力不足。
  3. websocket-rtsp 的js代码来自于 https://github.com/Streamedian/html5_rtsp_player ;我修改而来,这里忘了写来源了。本来就是实验一下服务端支持 websocket rtsp用的没有当做正式产品的一部分
  4. 其实原本还直接支持 https://github.com/Streamedian/html5_rtsp_player 的代理协议,但感觉有点多余就删除了

也就是初衷就是实验服务端的websocket rtsp直连模式;同时它的js客户端比 flv.js 实现的要差不少。如果有 js 高手可以写一个flv.js的websocket-rtsp数据源 bind 到 MSE上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants