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

本地部署没有问题,一旦部署服务器就录音就开始不了 #40

Closed
MostWantedZJ opened this issue Apr 8, 2020 · 6 comments

Comments

@MostWantedZJ
Copy link

部署服务器后start()就直接异常了。8号之前是没有问题的但有第一次出现异常的时候是我在录屏的时候开启了你的录音然后服务器部署情况下就一直开始不了

@2fps
Copy link
Owner

2fps commented Apr 9, 2020

有开启https么?端口或域名访问的话,getusermedia需要在https下才支持的

@2fps
Copy link
Owner

2fps commented Apr 9, 2020

错了,是IP地址(非本地地址)或域名访问

@2fps
Copy link
Owner

2fps commented Apr 9, 2020

应该是录音设备冲突了吧?录音也是chrome底层调设备的麦克风的,所以可能是设备不空闲造成的。start方法里的error回调打印了什么内容?

@MostWantedZJ
Copy link
Author

我在本地nginx部署的项目可以开始录音,但是在服务器上nginx部署就会报错。我好像没有用https,我只用了http。该怎么解决呢

@2fps
Copy link
Owner

2fps commented Apr 10, 2020

安装证书,可以去平台供应商那边申请免费的https证书,安装后,在https下访问页面。

@MostWantedZJ
Copy link
Author

好的谢谢作者

@2fps 2fps closed this as completed Apr 15, 2020
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