0.0.2 • Published 4 years ago

@twincitiespublictelevision/libsyn-embed v0.0.2

Weekly downloads
24
License
Apache-2.0
Repository
github
Last release
4 years ago

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