libgpac
Documentation of the core library of GPAC
Loading...
Searching...
No Matches
python.libgpac.libgpac.RMTHandler Class Reference

RMTHandler object handling the callbacks for rmtws events. More...

Public Member Functions

 on_new_client (self, RMTClient client)
 called when a new client connects to the websocket
 on_client_close (self, RMTClient client)
 called when a client disconnects from the websocket
 on_client_data (self, RMTClient client, data)
 called when a client receives data on its websocket

Detailed Description

RMTHandler object handling the callbacks for rmtws events.

to be passed to set_rmt_handler()

Member Function Documentation

◆ on_new_client()

python.libgpac.libgpac.RMTHandler.on_new_client ( self,
RMTClient client )

called when a new client connects to the websocket

Parameters
clientan object of type RMTClient representing the new client

◆ on_client_close()

python.libgpac.libgpac.RMTHandler.on_client_close ( self,
RMTClient client )

called when a client disconnects from the websocket

Parameters
clientan object of type RMTClient representing the client

◆ on_client_data()

python.libgpac.libgpac.RMTHandler.on_client_data ( self,
RMTClient client,
data )

called when a client receives data on its websocket

Parameters
clientan object of type RMTClient representing the client
datathe received data, can be either str or bytes depending on the exchanged data