/* * Copyright (c) 2025-2026, Gregory Bertilson * * SPDX-License-Identifier: BSD-2-Clause */ #include "PlayingStateHandler.h" #include #include #include #include namespace Media { void PlayingStateHandler::pause() { manager().replace_state_handler(); } void PlayingStateHandler::on_pipeline_status_changed(PipelineStatus status) { if (status == PipelineStatus::Blocked) { manager().replace_state_handler(true); return; } if (status == PipelineStatus::EndOfStream) manager().replace_state_handler(); } }