SetAutoPlay
Sets whether to enable autoplay.
void SetAutoPlay(bool auto_play, Error *err = nullptr)
- Since
- Available since v4.4.0.
Before calling OpenWithUrl to open the media stream, you can call this method to set whether to enable autoplay. If not set, autoplay is enabled by default.
Timing
This method must be called before calling OpenWithUrl.
Parameters
- auto_play
- Whether to enable autoplay:
- true: (default) Enable autoplay.
- false: Do not enable autoplay.
- err
- Output parameter indicating status or error information. See Error.