OpenViduPublisher

OpenViduPublisher class.

class pyopenvidu.openvidupublisher.OpenViduPublisher(session: requests_toolbelt.sessions.BaseUrlSession, session_id: str, data: dict)[source]

Bases: object

Direct instantiation of this class is not supported! Use OpenViduConnection.publishers to get an instance of this class.

force_unpublish()[source]

Forces some user to unpublish a Stream. OpenVidu Browser will trigger the proper events on the client-side (streamDestroyed) with reason set to “forceUnpublishByServer”. After this call, the instace of the object and the parent OpenViduConnection instance should be considered invalid. Remember to call fetch() after this call to fetch the current actual properties of the Session from OpenVidu Server!

https://docs.openvidu.io/en/2.16.0/reference-docs/REST-API/#delete-openviduapisessionsltsession_idgtstreamltstream_idgt