Преглед изворни кода

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
dev1
Anees Hikmat Abu-hamid пре 4 година
родитељ
комит
fb15078d66
1 измењених фајлова са 7 додато и 5 уклоњено
  1. 7
    5
      doc/API.md

+ 7
- 5
doc/API.md Прегледај датотеку

@@ -446,20 +446,22 @@ Throws NetworkError or InvalidStateError or Error if the operation fails.
446 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 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 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 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 461
     - `propertyKey` - string - custom property name
460 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 466
 JitsiTrack
465 467
 ======

Loading…
Откажи
Сачувај