Skip to content

Instantly share code, notes, and snippets.

View mikeyledoux's full-sized avatar

Mike LeDoux mikeyledoux

View GitHub Profile
function(instance, properties, context) {
console.log('Updating OME Player');
const HowlerPlayer = window.HowlerPlayer;
if (!instance.data.player) {
console.log('Creating a new player instance');
instance.data.player = new HowlerPlayer(
properties.audiofile,
function(instance, context) {
class HowlerPlayer {
constructor(audioUrl, title, artist, album, artworkSrc) {
const _audioUrl = audioUrl;
const _title = title;
const _artist = artist;
const _album = album;