-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote video not displaying #57
Comments
Were you able to instantiate a WebRTCView in your xml page in nativescript? Mine can't find it. |
@rgill02 yeah, I actually get both streams when the devices are on the same network. Check that xmlns:ui is pointing to the right plugin name..or you can paste your xml code here |
Ok i can paste my code later today when I get home. What version of nativescript are you using? |
@rgill02 Nativescript core, I think the latest one but I will check |
I got my WebRTCViews instantiated by downgrading nativescript from version 7 to 6. I now have the same issue as you. I can see my local stream but don't see anything for the remote stream. My "onTrack" handler where I add the remote stream to the remote view is being called, but nothing is showing up. I'm going to investigate more and see what I find. |
@rgill02 alright, let me know what you find |
The value being passed to onTrack seems to be empty for me. Logging the arg passed in gives this:
|
@rgill02 I think it has something to do with STUN & TURN servers |
I'm just using the google stun servers given in the example. My two devices are on different networks. Should I be using something different? @adekunle11 What are you using for STUN and TURN servers?
|
Thats the issue the plugin is having, it only uses the STUN servers and that will only work when the devices are on the same wifi. I've tried adding turn servers, still didn't work on different networks. The way I think the plugin should work is to keep trying all the servers set until it gets one that works, but it doesn't do that. |
I came up with a very hackish solution. I setup my own VPN server following this guide. I have both clients first connect to the VPN on their phone (using an app like open vpn connect). Then they can run my app while connected to my VPN. Since they are now on the same network the video streaming works. @adekunle11 you are correct about the STUN/TURN servers. |
I should have this covered with the next release seems it’s not respecting the urls especially turn
Sent from Yahoo Mail for iPhone
On Friday, November 27, 2020, 6:06 PM, Ryan Gill <[email protected]> wrote:
I came up with a very hackish solution. I setup my own VPN server following this guide. I have both clients first connect to the VPN on their phone (using an app like open vpn connect). Then they can run my app while connected to my VPN. Since they are now on the same network the video streaming works. @adekunle11 you are correct about the STUN/TURN servers.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Anyone still struggling with this can you please watch my comment on #44 and see whether this solves your issue? |
Hello, thanks for the plugin
I'm adding it to my project right now, The local stream displays so i can see my self, but the remote stream doesn't display
I'm using the example in STANDARD
This is my server code
This is my Server log
I noticed in the exmaple in Standard folder, answerCall() is empty that may be the reason its not working. i don't know what to do there, so i tried emitting
answer
andanswered
insocket.on('call:incoming')
, didn't work eitherThis is my standard-vm.ts
Thanks in advance
The text was updated successfully, but these errors were encountered: