Method NextAsync
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
NextAsync(CancellationToken)
Goes to the next item of the playlist of the media input, and returns when OBS Studio has answered.
public Task NextAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token that ends the wait. A change that was not sent yet is not sent.
Returns
- Task
A task that completes when OBS Studio has answered.
Remarks
Only an input that has a playlist (the VLC video source) does anything: a media source plays one file, and OBS Studio 33.0.0 answers the call and does nothing, with no event. What the playlist does to State is read when OBS Studio says that it went to the next item, and the call does not wait for it.
Exceptions
- ObsRemovedException
The input was removed.
- ObsNotConnectedException
There is no connection to OBS Studio. Nothing was changed.
- ObsNotReadyException
OBS Studio is changing its scene collection, or did so after the call. Nothing was changed.
- ObsUnknownOutcomeException
OBS Studio did not answer in time, or the connection ended: it is not known whether it made the change.
- ObsResponseException
OBS Studio refused the change.