Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Webcam not released on SessionEnd

Avatar

Level 4

We have this prop in our ALCS session:

private var _webcams:WebcamSubscriber;

when the session ends we simply call close:

_webcams.close();

However, the little green light next to the inbuilt cam stays lit on our MBP's.

Is there something else we need do too?

5 Replies

Avatar

Former Community Member

You should call webCamPublisher.stop() to delete a stream and stop the camera. Close() stops you from receiving any event from the network, it doesn't stop your camera.

Thanks

Hironmay Basu

Avatar

Level 4

hey hironmay

i do have a call to _webcamsPublisher.stop(); in my code, amongst many other things (MeetingRoomMediator class is currently 1559 lines long, too much to post all of here)

Avatar

Former Community Member

I called webcamPub.stop() and it stops the in-built cam on my machine and we use this feature all time.

Just try a simple example of running WebcamPub/Sub or WebCamera publishing and then calling stop. If it works fine, then there is some other problem in your code.

Thanks

Hironmay Basu

Avatar

Former Community Member

This could also be a bug on our side - we did have issues causing the

webcam to stop on logout of a session (there are other threads here with

similar problems). Could you possibly narrow down what you're seeing to a

simple app so we can try to reproduce?

thanks!

nigel

Avatar

Level 4

i think this could be my bad nigel. looks that way, will let you know.

dub.