html5 - https协议下的getUserMedia在安卓微信端不能成功调用手机摄像头,请指教!
高洛峰
高洛峰 2017-04-17 13:27:30
0
2
980

我要实现的功能是,在安卓微信端通过调用getUserMedia接口来调用手机摄像头,进而拍照。

如上图,现在若是想使用getUserMedia的话,需要在https协议之下才可以。

然后我在开发之前找了一些https协议下,使用getUserMedia的demo进行测试,发现不能支持安卓微信端。
特请指点!

以下是测试demo的地址(有可能需要翻墙)
demo1

demo2

demo3

demo4

demo5

我是使用魅族mx4与坚果进行测试的,测试结果大概如下:

  • 坚果自带的浏览器可以支持

  • 魅族mx4上的UC浏览器可以支持

  • 安卓微信端不能支持

  • 魅族自带浏览器,百度浏览器,QQ浏览器,360浏览器等都不支持

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
巴扎黑

Look at this and you’ll understand:
Can I use getUserMedia?

Peter_Zhu

Friends, how can I solve this photo problem? The webapp I made here currently uses the file control for image uploading, but it is not compatible. In Android, you can only select album pictures but not take pictures (android version 4.3). On iOS, it is normal to select pictures when taking pictures. How did you solve the problem of taking photos and uploading pictures in WeChat?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!