1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

experiments with howl

This commit is contained in:
Fedor Katurov 2019-10-11 12:04:14 +07:00
parent 4f1d25a928
commit f89a04e644
4 changed files with 104 additions and 177 deletions

11
src/utils/player.ts Normal file
View file

@ -0,0 +1,11 @@
import { Howl } from 'howler';
Howl.prototype.setSrc = function setSrc(src) {
this.unload();
this._src = src;
this.load();
};
export const Player = new Howl({ src: [''] });
console.log('PLAYER', Player);