@twincitiespublictelevision/libsyn-embed
v0.0.2
Published
A library for wrapping Libsyn iframe embeds
Downloads
1
Readme
libsyn-embed
Library for wrapping embedded podcast players from Libsyn.
Usage
import LibsynPlayer from "@twincitiespublictelevision/libsyn-embed";
let iframes = document.querySelectorAll('iframe[src*="html5-player.libsyn.com"]');
iframes.forEach(iframe => {
let player = new LibsynPlayer(iframe);
player.on("start", function() {
console.log("The player started!");
});
});
Supported Events
start
: When the podcast begins to play