Church-Plugins / cp-library

GNU General Public License v2.0
0 stars 0 forks source link

Use persistent player in Talks #18

Closed vleong2332 closed 3 years ago

vleong2332 commented 3 years ago

If the persistent layer is active, use that instead of the individual player. If not, then use the individual player.

When going back to the list of talks from an individual talk, if the audio is still playing, hand it off to the persistent player. There's a slight kink in that transition as we only update the progress every so often. Lowering the progress update interval can give us smoother transition but may have performance impact. Adjust cautiously.

is where all the syncing and communicating happen between the persistent player app and the consumer. It always use the top-most window to support the iframe navigation trick.

https://user-images.githubusercontent.com/11132446/137343482-7055db44-53b7-46a2-abac-0b3e87da05bf.mp4