Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Webcam example, cam not working

Avatar

Former Community Member
Hi,



When I try the webcam example and the default pods example my
webcam doesn't seem to work. On both when I turn my camera on the
Flex Builder console traces out 'null'. In the pods example chat is
working so I'm pretty sure I have my auth set up correctly, and
I've used the cam with Flash Media Server before.



thanks
8 Replies

Avatar

Former Community Member
Hi KreeK,



This is probably your camera not being detected properly by
the Flash Player. Try right clicking, pulling up the "settings..."
dialog, go to the webcam tab, and select the appropriate cam. The
click on the little camera img to see if it starts working. Once
you've done that, the webcam should start working.



(If you want to write code to display your own UI for camera
selection, you can use the Flash Player's Camera APIs, then set
WebCamera.publisher.cameraNameIndex to set the appropriate camera
for the pod.



Hope that helps,

nigel

Avatar

Former Community Member
Hey Nigel,



I tried my MacBook and using the built in camera could get it
to work. However on with my Desktop and a FireWire DV camera it
wouldn't work even though I can use that camera with sites that use
Flash Media Server.

Avatar

Former Community Member
I have a Lenovo Ideapad Y510 with a builtin webcam. I also
could not get this to work. I tried the following as Nigel
suggested: "
right clicking, pulling up the "settings..." dialog, go to the
webcam tab, and select the appropriate cam. The click on the little
camera img to see if it starts working. Once you've done that, the
webcam should start working


Although the video appears in the flash player thumbnail it
does not then work in the sample app. Nigel can you provide a list
of webcams that the dev/qa team currently work with or at least
seem to work well with cocomo?

Avatar

Level 1
Got the same problem. Weird because I can get the camera
using the MultipleGroups example, as well as from the settings
dialog. It's a built-in Chicony USB 2.



Don't know if this applies, but the code snippet in the api
docs for WebcamPublisher uses <collaboration:>. It may only
be an intellisense thing, but importing com.adobe.rtc.collaboration
has WebcamSubscriber and WebcamPublisher models, whereas
<collaboration:____> only shows ScreenShareSubscriber.

Avatar

Former Community Member
Hi ,



If you are using cocomo.swc , it should automatically use
xmlns:rtc="CocomoNameSpace" which has all the collaborative
classes. You don't have to seperately import the collaboration
namespace.

You can look at any of the examples.

Thanks

Avatar

Level 1
Hi Hironmay, understood. I am only bringing that up as
WebcamSubscriber and WebcamPublisher don't work, whereas the simple
MultipleGroups example does. So, maybe a problem in the abstraction
layer for those classes?

Avatar

Former Community Member
Hmm.. this is very strange. I've never seen this not work in
this sort of way. Any more details that might help us hunt it
down?

Avatar

Level 1
I updated Flex Builder to use Flash player 10 and everything
works like a champ now, so not sure I get you any more info Nigel.
Sorry 'bout that.



BTW, switching to f10 in Flex mid-stream, I had to nuke and
re-create the cocomo example projects after updating the Flex SDK
to flash 10. Now, that could've just been me, but if you think
you've reset all props but just get a blank application, ya might
try creating a new project and move your code into it.