Skip to content

Add Support for Creating a Receiver Starting from the Beginning of the Buffer in the Broadcast Module #7313

@xjd34456

Description

@xjd34456

I would like to request a feature in the broadcast module to allow the creation of a Receiver that starts reading from the beginning of the buffer (header).

Use Case:
The broadcast module could be used as a short-term buffer for audio/video streaming. When a new client connects and starts requesting data, it would be ideal to create a Receiver that starts reading from the beginning of the buffer to serve the client with the initial cached data.

Proposed Solution:
Add an API or an option that enables the creation of such a Receiver, starting from the header of the buffer, instead of the current behavior, which starts from the tail.

Benefits:
This feature would enhance the flexibility of the broadcast module.
It would enable use cases such as media streaming where clients need to start playback from already buffered data.
Thank you for considering this request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-requestCategory: A feature request.M-syncModule: tokio/sync

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions