Skip to content
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

Blank video from second call onwards. #39

Closed
JPCTechnologies opened this issue Aug 8, 2015 · 3 comments
Closed

Blank video from second call onwards. #39

JPCTechnologies opened this issue Aug 8, 2015 · 3 comments

Comments

@JPCTechnologies
Copy link

When trying to make a call from iPhone to Web . First call works perfectly.
From second call onwards , it shows a blank video on the iPhone but the audio works and Video on Web works too.
We are using "onaddstream" function of "window.RTCPeerConnection" to display the video in

Can it be problem of "onaddstream" , as it is not implemented in this plugin?

@ibc
Copy link
Collaborator

ibc commented Aug 9, 2015

This must be a wrong usage as I've never experimented such an issue. Once the second call is done, call cordova.plugins.iosrtc.dump() and check the iOS/Xcode stdout. You should see a MediaStreamRenderer for each HTML video element in which you have properly attached a MediaStream. Otherwise you are doing something wrong in your code.

BTW the "addstream" / "onaddstream" event is fully implemented in the RTCPeerConnection object.

This is not a bug in the plugin. If you don't solve it yet, please continue in the public mailing list. Thanks.

@ibc ibc closed this as completed Aug 9, 2015
@JPCTechnologies
Copy link
Author

Turns out the problem is with the Firefox. When calling from web to iPhone from Firefox, the video is blank(on second call).
The second call works from chrome but not from firefox(39.0.3)

@ibc
Copy link
Collaborator

ibc commented Aug 12, 2015

2015-08-12 15:31 GMT+02:00 JPC Technologies notifications@github.com:

Turns out the problem is with the Firefox. When calling from web to iPhone
from Firefox, the video is blank(on second call).
The second call works from chrome but not from firefox(39.0.3)

Firefox (at least in latest versions in OSX) sometimes displays black video
and also sends black video to the peer. It seems to be an unconfirmed bug
(IMHO).

Nothing we can do in the plugin side. As said before, we use the plugin to
make tons of serial calls and the error you describe never happens.

Iñaki Baz Castillo
ibc@aliax.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants