seekForward method

Future<bool> seekForward(
  1. int seconds
)

Skip forward by specified number of seconds

Implementation

Future<bool> seekForward(int seconds) async {
  try {
    final player = _state.selectedPlayer.isNotEmpty
        ? _state.selectedPlayer
        : null;
    return await _service.seekForward(seconds, player);
  } catch (e) {
    debugPrint('Error seeking forward: $e');
    _updateState(_state.copyWith(errorMessage: 'Failed to seek forward'));
    return false;
  }
}