sceyt-call 1.3.5 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -292,12 +292,6 @@ Host participants can mute, disable video, or update permissions for other parti
292
292
  // Mute a specific participant (soft-mute — they can unmute themselves)
293
293
  call.muteRemoteParticipant('user1');
294
294
 
295
- // Hard-mute: revoke publish-audio permission (they cannot unmute)
296
- call.disableRemoteParticipantAudio('user1');
297
-
298
- // Restore audio permission (allow them to unmute)
299
- call.enableRemoteParticipantAudio('user1');
300
-
301
295
  // Mute all participants at once
302
296
  call.muteAllRemoteParticipants();
303
297
  ```
@@ -305,14 +299,10 @@ call.muteAllRemoteParticipants();
305
299
  ### Disable Video for Remote Participants
306
300
 
307
301
  ```typescript
308
- // Turn off a specific participant's video
302
+ // Disable video for a specific participant
309
303
  call.disableRemoteParticipantVideo('user1');
310
- // or equivalently:
311
- call.videoOffRemoteParticipant('user1');
312
304
 
313
- // Turn off video for all participants
314
- call.videoOffAllRemoteParticipants();
315
- // or equivalently:
305
+ // Disable video for all participants
316
306
  call.disableAllRemoteParticipantsVideo();
317
307
  ```
318
308
 
@@ -335,19 +325,7 @@ The host can lock audio or video at the call level, preventing all participants
335
325
  ```typescript
336
326
  import type { ICallPermissions } from 'sceyt-call';
337
327
 
338
- // Lock audio for the entire call
339
- call.disableCallAudio();
340
-
341
- // Restore audio for the entire call
342
- call.enableCallAudio();
343
-
344
- // Lock video for the entire call
345
- call.disableCallVideo();
346
-
347
- // Restore video for the entire call
348
- call.enableCallVideo();
349
-
350
- // Update both at once
328
+ // Update call permissions
351
329
  call.updateCallPermissions({ allowPublishAudio: false, allowPublishVideo: true });
352
330
  ```
353
331
 
package/index.d.ts CHANGED
@@ -826,18 +826,10 @@ export declare class Call extends TypedEventEmitter<CallEventMap> {
826
826
  */
827
827
  mute(mute: boolean, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
828
828
  muteAllRemoteParticipants(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
829
- videoOffAllRemoteParticipants(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
830
829
  disableAllRemoteParticipantsVideo(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
831
830
  updateParticipantPermissions(id: string, permissions: IParticipantPermissions, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
832
831
  muteRemoteParticipant(id: string, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
833
- disableRemoteParticipantAudio(id: string, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
834
- enableRemoteParticipantAudio(id: string, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
835
- enableCallAudio(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
836
- disableCallAudio(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
837
832
  disableRemoteParticipantVideo(id: string, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
838
- videoOffRemoteParticipant(id: string, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
839
- disableCallVideo(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
840
- enableCallVideo(errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
841
833
  updateCallPermissions(permissions: ICallPermissions, errorCallback?: (result: CallClientResult<boolean>) => void): CallClientResult<boolean>;
842
834
  /**
843
835
  * Put the call on hold or resume it.