|
|
@ -164,7 +164,6 @@ export default class {
|
|
|
|
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
|
|
|
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.setOutputDevice();
|
|
|
|
this.setOutputDevice();
|
|
|
|
// this._updatePositionState();
|
|
|
|
|
|
|
|
this._howler.once("end", () => {
|
|
|
|
this._howler.once("end", () => {
|
|
|
|
this._nextTrackCallback();
|
|
|
|
this._nextTrackCallback();
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -281,15 +280,6 @@ export default class {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// _updatePositionState() {
|
|
|
|
|
|
|
|
// if ('setPositionState' in navigator.mediaSession) {
|
|
|
|
|
|
|
|
// navigator.mediaSession.setPositionState({
|
|
|
|
|
|
|
|
// duration: this._currentTrack.dt / 1000,
|
|
|
|
|
|
|
|
// playbackRate: 1,
|
|
|
|
|
|
|
|
// position: this.seek(),
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
_nextTrackCallback() {
|
|
|
|
_nextTrackCallback() {
|
|
|
|
this._scrobble(true);
|
|
|
|
this._scrobble(true);
|
|
|
|
if (this.repeatMode === "one") {
|
|
|
|
if (this.repeatMode === "one") {
|
|
|
|