Open emresaracoglu opened 3 years ago
You are doing things backwards. Create the audio elements first, and then enhance them with new Plyr(...)
. As written, document.querySelector('.player')
sees nothing as no matching elements exist at the time it's called.
Hi,
I am creating the audio object with the data received with Ajax, but the created object appears like the browser's default player. How can I display the audio/video objects I created with Javascript with Plyr?
Thank you!