I recently implemented a HTML 5 media player from https://github.com/Selz/plyr. I learned that it can be initialized on a page by using:
plyr.setup();
However, I encountered an issue when dynamically loading an element (<video>
). It seems that the player needs to be re-initialized each time. Can anyone provide guidance on how to achieve this? Your help is much appreciated. Thank you.