livekit / server-sdk-kotlin

Apache License 2.0
32 stars 15 forks source link

Timeout error in mutePublishedTrack #6

Closed ShubhamJuIT closed 1 year ago

ShubhamJuIT commented 1 year ago

Describe the bug I am trying to mute audio of remote participant using mutePublishedTrack but i everytime i am getting timout eror

Expected behavior It should return success or error if anything goes wrong on livekit server

Device Info:

Additional context NA

davidzhao commented 1 year ago

@ShubhamJuIT please include snippet of the call you are making. are you using LiveKit Cloud?

ShubhamJuIT commented 1 year ago

Here is my code snipppet. Yes i am using livekit cloud.

public LivekitModels.TrackInfo mutePublishedTrack(LivekitRoom.MuteRoomTrackRequest request) {
    Call<LivekitModels.TrackInfo> call = liveKitClient.mutePublishedTrack(request.getRoom(), request.getIdentity(), request.getTrackSid(), request.getMuted());
    try {
        Response<LivekitModels.TrackInfo> response = call.execute();
        LivekitModels.TrackInfo rooms = response.body();
        return rooms;
    } catch (IOException e) {
        log.error("Exception in muting participant", e);
        return null;
    }
}
davidliu commented 1 year ago

@ShubhamJuIT this seems like either a connectivity issue or a livekit cloud issue. Closing since it can't be reproduced locally.