[Fiware-creatifi-coaching] [CreatiFI Benelx Hub] Kurento: Detecting Connection failed in Kurento

Andrea Maestrini amaestrini at create-net.org
Mon Jun 13 15:44:30 CEST 2016


Dear FIWARE coach,
following the applicant contact: paul.davies at uxpro.be

BR

On Fri, Jun 10, 2016 at 11:24 AM, Andrea Maestrini <
amaestrini at create-net.org> wrote:

> Dear FIWARE coach,
> we forward you an update from the applicant related to the issue, we are
> not able to solve.
> Please let us know if you need direct contact with the submitter.
> Thanks.
>
> ********************************
>
> I want to add some update to this:
>
> I see that the ICE candidates get to a FAILED state. Can we know why this
> happens? Can we know why it happens only some times?
>
> I am attaching a log if that is helpful:
>
> {"level":"debug","message":"starting webcam pipeline:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.801Z"}
> {"level":"debug","message":"webcam pipeline created:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.804Z"}
> {"level":"debug","message":"RecorderEndpoint created:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.807Z"}
> {"level":"debug","message":"WebRtcEndpoint created:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.809Z"}
> {"level":"debug","message":"Endpoints connected created:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.816Z"}
> {"level":"debug","message":"Offer processed:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.823Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"GATHERING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540784\",\"type\":\"OnIceComponen
> tStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.898Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"GATHERING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540784\",\"type\":\"OnIceComponen
> tStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.898Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"CONNECTING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540784\",\"type\":\"OnIceCompone
> ntStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.899Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"CONNECTING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540784\",\"type\":\"OnIceCompone
> ntStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:44.899Z"}
> {"level":"debug","message":"host received:
> http://test.uxpro.be","timestamp":"2016-06-10T06:39:44.900Z
> <http://test.uxpro.be%22%2C%22timestamp%22:%222016-06-10t06:39:44.900Z/>"}
> {"status":"ok","hasErrors":false,"warning":[],"error":[],"hasWarnings":false,"payload":[{"hasQuota":1,"hasMediaQuota":0}],"level":"debug","message":"","timesta
> mp":"2016-06-10T06:39:45.024Z"} {"level":"debug","message":"account has
> quota:
> e90b7e40-ca8b-11e5-a800-d59fdbfce805","timestamp":"2016-06-10T06:39:45.024Z"}
> {"level":"debug","message":"starting screen pipeline:
> 1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:45.024Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"GATHERING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540785\",\"type\":\"OnIceComponen
> tStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:45.110Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"GATHERING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540785\",\"type\":\"OnIceComponen
> tStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:45.110Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"CONNECTING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540785\",\"type\":\"OnIceCompone
> ntStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:45.110Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"CONNECTING\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540785\",\"type\":\"OnIceCompone
> ntStateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:45.111Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"FAILED\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540789\",\"type\":\"OnIceComponentSt
> ateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:49.028Z"}
> {"level":"debug","message":"screen
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/2bd878d
>
> 3-dd12-4789-98e6-1437ce845f9a_kurento.WebRtcEndpoint\",\"state\":\"FAILED\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540789\",\"type\":\"OnIceComponentSt
> ateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:49.029Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":1,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"FAILED\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540792\",\"type\":\"OnIceComponentSt
> ateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:52.083Z"}
> {"level":"debug","message":"webcam
> OnIceComponentStateChanged{\"componentId\":2,\"source\":\"c7b0b144-37d0-4ed5-b64d-cb7d4290374c_kurento.MediaPipeline/b3331f9
>
> 0-86f0-4c14-8c83-af4a907ad7dc_kurento.WebRtcEndpoint\",\"state\":\"FAILED\",\"streamId\":1,\"tags\":[],\"timestamp\":\"1465540792\",\"type\":\"OnIceComponentSt
> ateChanged\"},1959ec40-7e64-4b6f-8823-9c2c00c3e3b0","timestamp":"2016-06-10T06:39:52.084Z"}
> {"level":"debug","message":"connection
> closed","timestamp":"2016-06-10T06:40:13.747Z"}
> {"level":"debug","message":"connection
> closed","timestamp":"2016-06-10T06:40:16.733Z"}
>
> ********************************
>
>
> On Thu, Jun 9, 2016 at 4:58 PM, Andrea Maestrini <
> amaestrini at create-net.org> wrote:
>
>> Dear FIWARE coach,
>> we forward you a support request received from a CreatiFI applicant we
>> are not able to solve.
>> Please let us know if you need direct contact with the submitter.
>> Thanks.
>>
>> *********************************
>>
>> We are using kurento to stream and save videos of users webcams and
>> screens. We have this working but it is not always working. Sometimes we
>> get a failure but we do not have indication in the client that the
>> connection failed. Sometimes we have the screen record but the webcam
>> fails, sometimes the reverse, sometimes both fail.
>>
>> We have a nodejs app in front of our kurento server managing the
>> connection. We listen to OnIceComponentStateChanged and MediaStateChanged
>> of the WebRtcEndpoint. Sometimes I see in my logs that the
>> OnIceComponentStateChanged goes GATHERING, CONNECTING and then nothing past
>> this and does not get to READY.
>>
>> Question is - how can we detect that the connection cannot happen and
>> properly notify in the client?
>>
>> In my client I use the kurento utils and with
>> WebRtcPeer.WebRtcPeerSendonly I pass an error function but I do not see
>> this being called.
>>
>> thanks
>> Paul
>>
>> *********************************
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-creatifi-coaching/attachments/20160613/d1906662/attachment.html>


More information about the Fiware-creatifi-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy