Pause
The pause action allows you to temporarily pause the WebSocket streaming connection in a Piopiy call session. This action is particularly useful when handling live media streaming, enabling you to pause the stream while keeping the call connected.
- 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 pause()
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.pause()
To use PCMO, you need to create an instance of the StreamAction
class and define the actions you want to perform. The pause()
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.pause()