Start/stop publishing video/audio while still keep other data in the local stream

Hi,

Once we have published the local stream over the room, is there any way to
stop (and start later) publishing only video or audio while still keep the
local stream connected?

Thanks,
Son

Hi,

I’ve found a way to do that after spending some time on the eziroClient
source code.
To stop publishing audio:
localStream.stream.getAudioTracks()[0].enabled = fasle;
And stop publishing video:
localStream.stream.getVideoTracks()[0].enabled = false;

Son

Vào 15:13:40 UTC+7 Thứ tư, ngày 18 tháng mười hai năm 2013, Son Nguyen đã
viết:>

Hi,

Once we have published the local stream over the room, is there any way to
stop (and start later) publishing only video or audio while still keep the
local stream connected?

Thanks,
Son

but if you create two streams, then the user would be asked twice, first to
share his microfone, and later to share his video, right ? is there any way
to use two streams but ask the user only one question about sharing his
audio AND his video ?On Tuesday, January 28, 2014 10:00:18 PM UTC+1, Álvaro Alonso wrote:

Using the erizoClient API the way to do that is creating two streams, one
for the video and other for the audio. Thus you can stop/start them
whenever you want

BR
Álvaro

2013-12-24 Son Nguyen <sonn...@gmail.com <javascript:>>

Hi,

I’ve found a way to do that after spending some time on the eziroClient
source code.
To stop publishing audio:
localStream.stream.getAudioTracks()[0].enabled = fasle;
And stop publishing video:
localStream.stream.getVideoTracks()[0].enabled = false;

Son

Vào 15:13:40 UTC+7 Thứ tư, ngày 18 tháng mười hai năm 2013, Son Nguyen đã
viết:

Hi,

Once we have published the local stream over the room, is there any way
to stop (and start later) publishing only video or audio while still keep
the local stream connected?

Thanks,
Son


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

Using the erizoClient API the way to do that is creating two streams, one
for the video and other for the audio. Thus you can stop/start them
whenever you want

BR
Álvaro2013-12-24 Son Nguyen sonnh273@gmail.com

Hi,

I’ve found a way to do that after spending some time on the eziroClient
source code.
To stop publishing audio:
localStream.stream.getAudioTracks()[0].enabled = fasle;
And stop publishing video:
localStream.stream.getVideoTracks()[0].enabled = false;

Son

Vào 15:13:40 UTC+7 Thứ tư, ngày 18 tháng mười hai năm 2013, Son Nguyen đã
viết:

Hi,

Once we have published the local stream over the room, is there any way
to stop (and start later) publishing only video or audio while still keep
the local stream connected?

Thanks,
Son


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