Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Support for Placeholder and Loading Indicator, and Extend Compatibility to MP4 Videos #1

Open
abbasnaqvi200 opened this issue Sep 2, 2024 · 0 comments

Comments

@abbasnaqvi200
Copy link

Feature Request:
It would be beneficial if the HLS-Video-Reels library could include support for displaying a placeholder image and a loading indicator (e.g., UIActivityIndicatorView) when videos take time to load or buffer.

Use Case:
When loading videos, especially from a remote URL, there can be a delay before the video is ready to play. During this delay, showing a placeholder image or an activity indicator would improve the user experience by providing visual feedback. This is particularly important when videos take longer to load due to slow internet connections.

Suggested Implementation:

Add properties or methods to set a placeholder image and a loading indicator.
Use the player's state (e.g., buffering, readyToPlay) to toggle the visibility of the placeholder and loading indicator.

Expected Behavior:

A placeholder image should be visible until the video starts playing.
A loading indicator should be displayed when the video is buffering or loading and hidden once the video is ready to play.
Additionally, the library currently only works with HLS video streams. It would be great if it could be extended to work with MP4 video formats as well. This would allow developers to use a wider range of video sources in their applications.

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

No branches or pull requests

1 participant