Home  >  Q&A  >  body text

html5 - https协议下的getUserMedia在安卓微信端不能成功调用手机摄像头,请指教!

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

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

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

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

demo2

demo3

demo4

demo5

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

高洛峰高洛峰2766 days ago1038

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 13:29:30

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:29:30

    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?

    reply
    0
  • Cancelreply