Resume
The resume action allows you to resume a previously paused WebSocket streaming connection in a Piopiy call session. This action is useful when you have paused media streaming or other real-time operations and want to resume the stream without terminating the call.
- Node.js
- Python
To use PCMO, you need to create an instance of the StreamAction
class and define the actions you want to perform. The resume()
method can be used to remove all defined actions from the current session before executing any new actions.
const { StreamAction } = require("piopiy");
const stream = new StreamAction();
stream.resume()
To use PCMO, you need to create an instance of the StreamAction
class and define the actions you want to perform. The resume()
method can be used to remove all defined actions from the current session before executing any new actions.
from piopiy import StreamAction
stream = StreamAction()
stream.resume()