mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
delete useless code
This commit is contained in:
parent
c74c47564e
commit
498fcf7402
1 changed files with 0 additions and 10 deletions
|
|
@ -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") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue