0

I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35. There available examples in /examples/api/ folder: media_stream_audio and media_stream_video.

The audio example works fine - requests access to microphone and shows some kind of preview.

The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect, and Chrome asks for the web camera access. When I click “allow” - webcam indicator lights-up, chrome show that web page uses the web camera, and I see the camera settings icon. But the preview doesn't work, there still red rectangle instead.

I checked this on Windows 8.1, Windows 7 and Mac OS X, with five different webcams, and have no idea what can be wrong.

Maybe someone already encountered with the same problem?

Aleksei2414904
  • 143
  • 1
  • 2
  • 7
  • Show us the relevant code. – Xan Sep 09 '14 at 14:36
  • What version of Chrome are you running? Are you running stable/beta/canary? Is there any output in the JavaScript console? – binji Sep 09 '14 at 17:22
  • I use Chrome 37.0.2062.120 m (it's stable version) and pepper_35 NaCl SDK (currently it is the latest stable version). The JavaScript console is empty when I work with this video sample. – Aleksei2414904 Sep 10 '14 at 08:19

1 Answers1

0

Installing the pepper_37(dev) version of NaCl SDK solved the problem. Looks like it is unstable version currently, but it works.

Aleksei2414904
  • 143
  • 1
  • 2
  • 7