Paratii-Video / paratii-player

Probably the world's 1st in-player token wallet (v0.0.1 of the Paratii embeddable web player).
http://paratii.video
GNU General Public License v3.0
41 stars 11 forks source link

Search pagination boundaries #303

Closed geckoslair closed 7 years ago

geckoslair commented 7 years ago

I need help to manage pagination boundaries in search results. In playlist pagination it's easy because i know the length of videos.

Ideas?

geckoslair commented 7 years ago

ref #260

jellegerbrandy commented 7 years ago

I'm not sure what you mean, @geckoslair ?

geckoslair commented 7 years ago

@jellegerbrandy

Playlists videos and search results have pagination. Each list need controllers for hasNextPage hasPrevPage, i call these controller "boundaries".

Playlists videos the controller (already implemented) it's easy because i know the total items within the playlist (it's an array inside the playlist).

Search results it's hard because i'm subscribing to a pubblication passing the current page. I miss the total items number.

Known options: