@twincitiespublictelevision/libsyn-embed

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @twincitiespublictelevision/libsyn-embed

Weekly Downloads

0

Version

0.0.2

License

Apache-2.0

Unpacked Size

14.6 kB

Total Files

9

Last publish

Collaborators

  • augustuswm
  • cwood821
  • tptwebmaster