Bunny Stream selector pagination and items_per_page filter

We use Presto Player with Bunny Stream on a large LearnDash membership site with 2,000+ videos (and growing). Right now, when editors open the Bunny video selector, Presto calls: /wp-json/presto-player/v1/bunny/stream/videos?type=public&items_per_page=500 This means the editor always pulls up to 500 videos at once, even when only one video is needed. On a big library, this single 500-item request makes the LearnDash lesson editor slow and heavy to load, and there is not much we can optimize on our side while the UI keeps requesting that many items in one shot. I understand the REST endpoint already supports page and items_per_page parameters. What would really help sites like ours is: 1. Add pagination or lazy loading to the Bunny video selector UI - For example: load the first 50 items, then let the editor click “Load more” or paginate to see more results. - This would keep the initial request small and make the editor much more responsive for large libraries. 2. Add a filter or setting to control the default items_per_page value - Right now the selector uses 500 by default. - A filter like presto_player_bunny_items_per_page (or similar) would let us reduce that to 50 or 100 for our site, even before a full UI change is released. Our videos are already organized into Bunny Collections and folders, but with a daily drip training course over several years, we still end up with some collections that need to hold 1,000+ items. In this situation, changing how many items the selector loads at once and supporting pagination would be a big performance win for the admin area and make Presto Player scale better for large Bunny libraries. Thanks for your consideration.
Cesar Pinto posted 5 months ago

Discussion

Voters