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

Add Support for Placeholder and Loading Indicator during Video Load #100

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

Comments

@abbasnaqvi200
Copy link

Feature Request:
It would be great if the GSPlayer library could include support for displaying a placeholder image and a loading indicator (e.g., UIActivityIndicatorView) when a video is taking 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 significantly improve the user experience by providing visual feedback. This is particularly useful for scenarios where videos take longer to load due to slow internet connections.

Suggested Implementation:

Add properties or methods to VideoPlayerView 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.
This feature would make the library more robust and improve its usability in scenarios where video loading times can vary.

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