Closed JunusErgin closed 4 years ago
Hi @JunusErgin ,
Thank you for your question. So, to sum up, are you saying that the code snippet you posted works on all other OSs except for Windows 10 Home? Please let me know if that is indeed the case.
Thanks,
Manjesh Malavalli JSDK Team
We are experiencing the same issue. @JunusErgin were you able to resolve this. The error occurs intermitantly. User can't connect to the room but after refreshing the page a couple of times, they can connect.
Same issue here — track
is not an instance of options.MediaStreamTrack
:
@mertkokusen @JunusErgin were you guys able to workaround this issue?
Code to reproduce the issue: Hello, i'm trying to get my local video with the following code:
Expected behavior:
I should get a LocalVideoTrack.
Actual behavior: I'm getting the following error:
This error occurs only in the Chrome browser and only on one of my computers (Medion Akoya S3409, ~ 2 years old, Latest Windows 10 Home). I debuged the twilio-video-min.js file (v1.11.1) in order to reproduce the error. First, twilio tries to get the user media: This works successfully: In the next step, Twilio-video tries to convert the MediaStreamTrack into a local track with the function:
Twilios function
asLocalTrack(track, options)
now throws my error that is mentioned above:TypeError: track must be a LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack
i tried to debug the function as well: My console gave out:
For some reason, your line
if (track instanceof options.MediaStreamTrack) {...
returns ´false´for some reason. Even if aMediaStreamTrack
is provided in the first parameter it seems to differ from the one that is provided in the options.Ad mentioned, my code works on all other computers. It also works on Opera, Vivaldi, Firefox and Edge on the current computer. Software versions:
Thanks for your help in advance, Junus