profile
viewpoint

Ask questionsNo videos appear on Safari

Your environment.

  • Version: d7110cc5fae5d793d78e280d8599c34cbcd623f2
  • Browser: iOS Safari 13

What did you do?

I started ion and ion-app-web on my vm. It worked fine on Chrome on my Mac.

What did you expect?

I expected to see my local video and the remote video.

What happened?

The widgets came up but no videos were visible.

IMG_0580

pion/ion-app-web

Answer questions ijt

The debugging breakage was due to trying to debug a production deployment. Running ion-app-web from npm start has non-minified sources suitable for debugging.

It's actually stream.publish which the minifier had abbreviated to t.publish. That's a LocalStream object from ion-sdk-js, which extends Stream also from ion-sdk-js, which extends MediaStream (https://developer.mozilla.org/en-US/docs/Web/API/MediaStream). In Chrome, the stream has a publish method as defined in LocalStream:

Screen Shot 2020-06-06 at 9 52 10 PM

In Safari for some reason it is missing that method, along with some others:

Screen Shot 2020-06-06 at 9 51 56 PM

One possibility is that Safari does not allow subclassing MediaStream. @jbrady42 , what do you think?

useful!

Related questions

No questions were found.
Github User Rank List