comment on live stream

Discussion in 'General Discussion' started by Sekh Jiyaur, Oct 7, 2019.

  1. Sekh Jiyaur

    Sekh Jiyaur New Member

    We want display text on live stream how could we do that is any way in shoket to send and receive text message on particular stream . i will give you some image for more clarity .
    i try to upload image but i am getting server error
  2. Max

    Max Administrator Staff Member

    Good day.
    Maximum size of upload file to forum is 1 Mb. Please reduce file size or send link to it.
  3. Max

    Max Administrator Staff Member

    You can display text on live stream on two methods:
    1. Data exchange (OnDataEvent) to backend:
    - Client send an arbitrary data-object to server using the direct method session.sendData().
    - WCS will invoke REST-method /OnDataEvent on backend (web-server).
    - Backend send data to connected client /data/send on WCS.
    - WCS sending /OnDataEvent to connected second client.
    Details with connection diagrams and method examples - in the documentation.

    2. Working with chat rooms (roomApi). This example does not require an additional backend for handling REST hooks; all functions are available in roomApi. Details with using the Conference example - in the documentation.
  4. Sekh Jiyaur

    Sekh Jiyaur New Member

    Thank you Max to give us your precious time.
    we are using live stream not the Conference. Is this supported for stream also? if yes can you please more elaborate so our development quickly move forward
    Thank you
  5. Max

    Max Administrator Staff Member

    Good day.
    In working with chat rooms (roomApi) - you can use usual live stream. For example, Two-way Streaming -> Publish.
    Below is the call flow when using the Conference example.
  6. Sekh Jiyaur

    Sekh Jiyaur New Member


    D/WebSocketChannelClient: WSS->C: {"message":"ping","data":[]} why this log continuing pring
  7. Max

    Max Administrator Staff Member

    Good day.
    When establishing connection with server and creating a session, going on messaging flow.
    Server periodically sends ping, if there are no other messages received from client, on which client must respond with pong. Please see documentation for details about raw WebSocket API.
    Last edited: Oct 21, 2019 at 1:57 PM

Share This Page