Firefox and Datachannel - Problem with ice trickle and video with libnice

168 views
Skip to first unread message

Francois Temasys

unread,
Feb 11, 2015, 4:16:45 PM2/11/15
to discuss...@googlegroups.com
Hi,

I just got 2 problems with FF, one in the ice connection process and one once the peer connection ready. I'm using libnice 1.0.7.

1)Ice connection process issue:
In my first try, I was doing the following with libnice:
-Client send offer without candidates 
-Server answer without candidates
-client and server exchange candidates
For an unknown reason - disclaimer: it can be me -  the data transport on ice was failing.
Then I switched to this:
-Client send offer without candidates
-Server gather candidates and answer with candidates
-Client send candidates
And then it worked.

I haven't changed the candidates or the process. I just wait to get them gathered before sending the sdp.
Is there something to take into account for the ice trickle mode?


2) Once connected
Here is the connection I make:
Client <--> Server <--> Client
The server being just a relay.
Now the problem is that Firefox video received are grey. Until I wait a looooonng long (around 1min30) time and then it's fine. I can see from the libnice library that video packets are sent to me.
The sound doesn't give any problem.
If I disable datachannel then the problem never appear.
Can someone from Firefox have an idea about this behaviour?

I don't really know where and what logs from FF I can provide.

Regards,
Francois

Philipp Hancke

unread,
Feb 11, 2015, 4:21:20 PM2/11/15
to discuss...@googlegroups.com
that sounds more like a timing problem than one related to (trickle) ice. The client on the left sends a keyframe to the server which is not relayed to the client on the right because it's not connected yet.
Setting the track's enabled flag to false initially and then changing it when both clients are connected might work.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Francois Temasys

unread,
Feb 11, 2015, 4:33:09 PM2/11/15
to discuss...@googlegroups.com
Thanks Philipp for the quick answer:

The process of connection is the following:
We have client A (Firefox), client B(Firefox), server(Me/libnice)
I start with:
1)A-->  Server (--> is a peer connection)
2)         Server <--B
3)A-->  Server <-->B (<--> are two peer connections)
4)A<-->Server<-->B


My problem was already at:
A-->Server, the peer connection was failing in ice trickle.

Is this keyframe part of webrtc specs?


--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/WGEcP7sbX8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.

Francois Temasys

unread,
Feb 12, 2015, 6:38:48 AM2/12/15
to discuss...@googlegroups.com
I solved the video problem, it was the keyframe that has to be resent from A when B connects.

For the ice trickle thing...to be continued
Reply all
Reply to author
Forward
0 new messages