This repository has been archived on 2022-09-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
tlaternet-templates/src/music/player/player.js
2020-02-29 15:23:20 +00:00

15 lines
459 B
JavaScript

import $ from "jquery";
import AudioManager from "./audio_manager";
import Controls from "./controls";
import Display from "./display";
class Player {
constructor(src = "https://tlater.net/assets/Mseq_-_Journey.mp3") {
this._ui = $("#playerUI");
this._audioManager = new AudioManager(src);
this._controls = new Controls(this._audioManager);
this._display = new Display(this._audioManager);
}
}
export default Player;