Skip to content

Commit

Permalink
Seeking now supported on all devices
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasguyer committed Sep 24, 2024
1 parent 16dde87 commit d6e1e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cspot/src/DeviceStateHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,10 @@ void DeviceStateHandler::parseCommand(std::vector<uint8_t>& data) {
sendCommand(CommandType::SKIP_PREV);

} else if (command->at("endpoint") == "seek_to") {

#ifdef CONFIG_BELL_NOCODEC
needsToBeSkipped = false;
#endif
if (command->at("relative") == "beginning") { //relative
this->device.player_state.has_position_as_of_timestamp = true;
this->device.player_state.position_as_of_timestamp =
Expand Down
2 changes: 1 addition & 1 deletion targets/esp32/main/EspPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void EspPlayer::runTask() {
tracks.at(0)->trackMetrics->endTrack();
this->handler->ctx->playbackMetrics->sendEvent(tracks[0]);
}
lastHash = chunk->trackHash;
lastHash = current_hash;
tracks.at(0)->trackMetrics->startTrackPlaying(
tracks.at(0)->requestedPosition);
this->handler->putPlayerState();
Expand Down

0 comments on commit d6e1e6f

Please sign in to comment.