setLoopMode method
Sets the loop mode.
Implementation
@override
Future<SetLoopModeResponse> setLoopMode(SetLoopModeRequest request) => _player
.setPlaylistMode(const {
LoopModeMessage.off: PlaylistMode.none,
LoopModeMessage.one: PlaylistMode.single,
LoopModeMessage.all: PlaylistMode.loop,
}[request.loopMode]!)
.then((_) => SetLoopModeResponse());