0

I am using twilio for P2P video call in angular. Video call is working fine between Chrome 2 chrome but not between safari to chrome. When using safari, remote participant's video & audio is not visible in safari. I have already tried to change codec to H264 but didn't worked.

Here I am attaching github repository link to reproduce scenario.

https://github.com/ashishgehlot/Twilio-issue-reporduction

I also investigated that below code always return false in safari case.

participant.tracks.forEach(publication => {
          if (publication.isSubscribed) { // always false

and it never logged in console

      publication.on('subscribed', track => {
        console.log('==================subscribed'); // not triggered  
4

2 回答 2

0

这些 polyfill 解决了我的问题。

import 'zone.js/dist/zone-patch-user-media';
import 'zone.js/dist/webapis-rtc-peer-connection';
于 2020-04-19T06:24:16.123 回答
0

请检查此功能。

  participant.tracks.forEach(publication => {
      if (publication.isSubscribed)
        console.log(publication.track);

      if (!publication.isSubscribed)
        publication.on('subscribed', track => {
          console.log(track);
        });
    });

也许这可以帮助你。

于 2020-04-16T18:30:32.947 回答