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:
parent
4f1d25a928
commit
f89a04e644
4 changed files with 104 additions and 177 deletions
11
src/utils/player.ts
Normal file
11
src/utils/player.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue