Future<void> seekTo(Duration position) async { try { await player.seek(position).timeout(Duration(seconds: 10)); } catch (e) { // Handle timeout or other errors print('Seek failed: $e'); } }