Explorar el Código

Add replace track to doc

I see we have an option to use replace track in conference level which its missing in this API. thanks
release-8443
Anees Hikmat Abu-hamid hace 4 años
padre
commit
fb15078d66
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7
    5
      doc/API.md

+ 7
- 5
doc/API.md Ver fichero

446
 33. `pinParticipant(participantId)` - Elects the participant with the given id to be the pinned participant in order to always receive video for this participant (even when last n is enabled).
446
 33. `pinParticipant(participantId)` - Elects the participant with the given id to be the pinned participant in order to always receive video for this participant (even when last n is enabled).
447
     - `participantId` - the identifier of the participant
447
     - `participantId` - the identifier of the participant
448
 
448
 
449
+34. `replaceTrack` - replaces the track currently being used as the sender's source with a new MediaStreamTrack. The new track must be of the same media kind (audio, video, etc) and switching the track should not require negotiation. `replaceTrack(oldTrack, newTrack)`
450
+
449
 Throws NetworkError or InvalidStateError or Error if the operation fails.
451
 Throws NetworkError or InvalidStateError or Error if the operation fails.
450
 
452
 
451
-34. `setReceiverVideoConstraint(resolution)` - set the desired resolution to get from JVB (180, 360, 720, 1080, etc).
453
+35. `setReceiverVideoConstraint(resolution)` - set the desired resolution to get from JVB (180, 360, 720, 1080, etc).
452
     You should use that method if you are using simulcast.
454
     You should use that method if you are using simulcast.
453
 
455
 
454
-35. `setSenderVideoConstraint(resolution)` - set the desired resolution to send to JVB or the peer (180, 360, 720).
456
+36. `setSenderVideoConstraint(resolution)` - set the desired resolution to send to JVB or the peer (180, 360, 720).
455
 
457
 
456
-36. `isHidden` - checks if local user has joined as a "hidden" user. This is a specialized role used for integrations.
458
+37. `isHidden` - checks if local user has joined as a "hidden" user. This is a specialized role used for integrations.
457
 
459
 
458
-37. `setLocalParticipantProperty(propertyKey, propertyValue)` - used to set a custom propery to the local participant("fullName": "Full Name", favoriteColor: "red", "userId": 234). Also this can be used to modify an already set custom property.
460
+38. `setLocalParticipantProperty(propertyKey, propertyValue)` - used to set a custom propery to the local participant("fullName": "Full Name", favoriteColor: "red", "userId": 234). Also this can be used to modify an already set custom property.
459
     - `propertyKey` - string - custom property name
461
     - `propertyKey` - string - custom property name
460
     - `propertyValue` - string - custom property value
462
     - `propertyValue` - string - custom property value
461
 
463
 
462
-38. `getParticipants()` - Retrieves an array of all participants in this conference.
464
+39. `getParticipants()` - Retrieves an array of all participants in this conference.
463
 
465
 
464
 JitsiTrack
466
 JitsiTrack
465
 ======
467
 ======

Loading…
Cancelar
Guardar