Closed schlegz closed 4 years ago
Hello @schlegz, Thank you for writing about this issue.
I looked into our server logs for the track MTacfba868e7c4311e2b4091cadb5afdc7
from the room RM7c783add63c98c4284cdae970b1ca5fa
, and see that there were no bytes sent from the client.
This seems like client side issue on the iOS Safari - Does this issue repro consistently ? Does the same video track look okay on the client side ? To debug further - It would be great if we can get a local repro of this issue. Can you check if the quick-start sample works for the same iOS device ?
Thanks, Makarand
@makarandp0 The sample worked and after refactoring our video component to more closely match the sample, I may have discovered the problem. In calling createLocalVideoTrack
, I was using the following options:
const track = await createLocalVideoTrack({
logLevel: 'debug',
facingMode: 'user',
width: 1920,
height: 1080,
aspectRatio: 1.777777778,
});
Removing all these options allowed iOS/Safari to begin streaming its video properly. I was under the impression that if the specified video dimensions were not available, that it would fallback to the next closest dimensions. These options were working on other browsers, both mobile and desktop, so there is something about how iOS/Safari is interpreting these values.
Thanks @schlegz for the update, and I am glad that you managed to find a solution. Yeah, Safari on iOS acts lot differently than other browsers, You might want to also take a look at our media devices sample, that we try to keep up-to-date against iOS Safari.
I will close this issue now.
Thanks, Makarand
@schlegz thanks for this! I spent a day trying to narrow in on this until i found your comment! I can't believe the Twilio docs do not mention anything like that. At least I did not see anything while I was working on the app for two weeks.
We are having an issue with not being able to see the remote video from an iOS device using Safari 13.3. The receiving client is latest Chrome on OSX. The behavior is as follows:
We have had success with other browser/device combinations.
RemoteVideoTrack log from Chrome client:
Track logs from Chrome client:
Expected behavior:
Chrome client should see the video from iOS Safari.
Actual behavior:
Chrome client does not see the iOS Safari video (but audio works).
Software versions: