Skip to content

Commit

Permalink
Code autogenerated from Kurento/doc-kurento@248bbfb
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkinskurento committed Jun 26, 2020
1 parent 3f5d4bb commit 089151d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/user/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ The solution is to ensure that both peers are able to find a match in their supp

This issue is commonly caused by setting an invalid ID to any of the client method calls. The usual solution is to provide a null identifier, forcing the server to generate a new one for the object.

For example, a Node application wanting to use the ImageOverlayFilter might try to provide an ID in the ``addImage()`` call:
For example, a Node application wanting to use the *ImageOverlayFilter* (`Java API <https://doc-kurento.readthedocs.io/en/latest/_static/client-javadoc/org/kurento/client/ImageOverlayFilter.html>`__, `JavaScript API <https://doc-kurento.readthedocs.io/en/latest/_static/client-jsdoc/module-filters.ImageOverlayFilter.html>`__) might mistakenly try to provide an invalid ID in the `addImage() <https://doc-kurento.readthedocs.io/en/latest/_static/client-jsdoc/module-filters.ImageOverlayFilter.html#.addImage>`__ call:

.. code-block:: js
const filter = await pipeline.create("ImageOverlayFilter");
await filter.addImage("IMAGE_ID", "https://IMAGE_URL", 0.5, 0.5, 0.5, 0.5, true, true );
await filter.addImage("IMAGE_ID", "https://IMAGE_URL", 0.5, 0.5, 0.5, 0.5, true, true);
await webRtcEndpoint.connect(filter);
await filter.connect(webRtcEndpoint);
Expand All @@ -418,11 +418,11 @@ This will fail, causing a *MARSHALL_ERROR* in the media server, and showing the
[...]
at WebsocketStream.onMessage (node_modules/websocket-stream/index.js:45:15) code: 40001, data: { type: 'MARSHALL_ERROR' } }
The solution is simply using ``null`` for the ID:
The solution is to simply use ``null`` for the first argument of the method:

.. code-block:: js
await filter.addImage(null, "https://IMAGE_URL", 0.5, 0.5, 0.5, 0.5, true, true );
await filter.addImage(null, "https://IMAGE_URL", 0.5, 0.5, 0.5, 0.5, true, true);
Expand Down

0 comments on commit 089151d

Please sign in to comment.