Re: [discuss-webrtc] Releasing the webcam and closing local-video

51 views
Skip to first unread message

José Luis Millán

unread,
May 17, 2013, 3:45:25 AM5/17/13
to discuss...@googlegroups.com
Hi,

How about 'stop()' method of localMediaStream?


2013/5/16 <d.m...@flexperto.com>
Hello guys,

a colleague and I are trying to implement video-chat-functionality to our platform with webrtc. Most things just work fine, but at the moment we have one problem:
After finishing the video-chat the webcam is still on. We could pause the video-element and remove the source of it to hide the local video but at a notebook where the webcam is only activated when in use it's not that good if it's on all the time, just because we can't release the webcam. Is there any way to accomplish this?

Refreshing the page is not an option ;)

Thank you for your answers,

Regards,
Daniel

--
 
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
José Luis Millán

Vikas

unread,
May 17, 2013, 1:22:40 PM5/17/13
to discuss-webrtc
That's correct you can use the stop() method on localmediastream.

/Vikas

On May 17, 12:45 am, José Luis Millán <jmil...@aliax.net> wrote:
> Hi,
>
> How about 'stop()' method of localMediaStream?
>
> 2013/5/16 <d.me...@flexperto.com>
>
>
>
>
>
>
>
>
>
> > Hello guys,
>
> > a colleague and I are trying to implement video-chat-functionality to our
> > platform with webrtc. Most things just work fine, but at the moment we have
> > one problem:
> > After finishing the video-chat the webcam is still on. We could pause the
> > video-element and remove the source of it to hide the local video but at a
> > notebook where the webcam is only activated when in use it's not that good
> > if it's on all the time, just because we can't release the webcam. Is there
> > any way to accomplish this?
>
> > Refreshing the page is not an option ;)
>
> > Thank you for your answers,
>
> > Regards,
> > Daniel
>
> > --
>
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "discuss-webrtc" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to discuss-webrt...@googlegroups.com.
> > For more options, visithttps://groups.google.com/groups/opt_out.
>
> --
> José Luis Millán
Reply all
Reply to author
Forward
0 new messages