Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. const room = await connect(accessToken.video, options);
  2. this.localPreview();
  3.  
  4. console.log(room);
  5. if (room) {
  6. room._participants.forEach(participant => {
  7. console.log(participant);
  8. if (participant.tracks) {
  9. // this.attachParticipantTracks(participant);
  10. participant.videoTracks.forEach(publication => {
  11. console.log('toto je publication');
  12. console.log(publication);
  13. console.log('toto je publication.track');
  14. console.log(publication._track);
  15. // if (publication.isSubscribed) {
  16. // const track = publication._track;
  17. // this.remoteVideo.nativeElement.appendChild(track.attach());
  18. // }
  19. });
  20. }
  21. });
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement