Skip to content

Heartbeat request support - #53

Merged
Baraujo25 merged 6 commits into
masterfrom
HEART_BEAT_REQUEST_SUPPORT
Jul 14, 2026
Merged

Heartbeat request support#53
Baraujo25 merged 6 commits into
masterfrom
HEART_BEAT_REQUEST_SUPPORT

Conversation

@Baraujo25

Copy link
Copy Markdown
Collaborator

This pull request introduces support for periodic "heartbeat" requests during streaming playback, enabling more realistic simulation of client behavior (such as analytics beacons or session keep-alives) without the overhead of additional threads. The main changes add a StreamingSliceCoordinator for thread-local coordination between the controller and sampler, a PlaybackSession to persist playback state across slices, and integrate these into the streaming sampler logic. Documentation is updated to explain how to use the new Streaming Parallel Controller.

New streaming parallel playback and heartbeat support:

  • Added a new StreamingSliceCoordinator class to coordinate time-sliced playback and heartbeats within a single thread, allowing the sampler to yield control at slice boundaries and resume playback without restarting.
  • Introduced a PlaybackSession class to persist protocol-specific playback state across slices, preventing unnecessary re-downloads of manifests/playlists when resuming.

Integration with streaming sampler:

  • Updated VideoStreamingSampler and HlsSampler to use the StreamingSliceCoordinator for yielding, session management, and error handling, and to clear playback sessions on errors or interrupts.

Documentation:

  • Expanded the README.md with a detailed section on running periodic requests during playback, including setup instructions, configuration options, and limitations of the Streaming Parallel Controller.

Minor refactoring and formatting:

  • Cleaned up code formatting and improved property handling in VideoStreamingSampler.
    These changes together enable efficient and realistic simulation of streaming clients that send periodic background requests during playback, with clear documentation for users.

@Baraujo25
Baraujo25 merged commit b155915 into master Jul 14, 2026
1 check passed
@Baraujo25
Baraujo25 deleted the HEART_BEAT_REQUEST_SUPPORT branch July 14, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants