This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(instance, context) { | |
| class HowlerPlayer { | |
| constructor(audioUrl, title, artist, album, artworkSrc) { | |
| const _audioUrl = audioUrl; | |
| const _title = title; | |
| const _artist = artist; | |
| const _album = album; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |