这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@davidliu
Copy link
Contributor

No description provided.

} else {
val remoteParticipants = remoteParticipants.values.toList()
for (participant in remoteParticipants) {
for (pub in participant.videoTracks.values) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UpdateTrackSettings has a disabled field. I am guessing that is set for audio tracks when subscriber mutes the remote audio track. So, I think this should include update on both audio & video tracks?

Copy link
Contributor Author

@davidliu davidliu Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, at the moment the server doesn't seem to be using the disabled field for audio tracks. Not sure if we're meaning to use UpdateTrackSettings for audio tracks? (Though it does make sense for it to.)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be @davidliu . If not, it is a bug.

It applies to both audio and video (the naming could be confusing) - https://github.com/livekit/livekit-server/blob/745939ec24c32562c7c40dfcbbb9fb53625edab8/pkg/rtc/subscribedtrack.go#L90. It calls updateDownTrackMute here (https://github.com/livekit/livekit-server/blob/745939ec24c32562c7c40dfcbbb9fb53625edab8/pkg/rtc/subscribedtrack.go#L101) which will stop the forwarder for that track in the SFU.

override fun onSignalConnected(isReconnect: Boolean) {
if (state == State.RECONNECTING && isReconnect) {
override fun onSignalConnected(isFullReconnect: Boolean) {
if (state == State.RECONNECTING && isFullReconnect) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe sync state is only needed for migration, not full reconnect.

for (participant in remoteParticipants) {
for (pub in participant.videoTracks.values) {
val remotePub = pub as? RemoteTrackPublication ?: continue
remotePub.sendUpdateTrackSettings.invoke()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to send unless it's subscribed.

@davidliu davidliu merged commit 7623f18 into main Feb 1, 2022
@davidliu davidliu deleted the dl/updatetracksettings branch February 1, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants