mirror of
https://github.com/koel/koel.git
synced 2026-04-25 00:36:03 +03:00
[GH-ISSUE #1206] Playback error when trying to log in #685
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#685
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mncn on GitHub (Apr 11, 2020).
Original GitHub issue: https://github.com/koel/koel/issues/1206
Sometimes when I try to login I get the message:
TypeError: Cannot read property 'media' of undefined
referring to this line at playback.js
this.listenToMediaEvents(this.player.media);
It's weird 'cause it's not every time. Sometimes it works and I'm able to login, sometimes it doesn't and it shows this message.
A few times I'm actually able to login but nothing is loaded, it seems like the event KOEL_READY is not fired (I force it to test it inside the albums-list.vue and it worked).
Usually when it happens, the 2nd time I try I'm able to login.
As far as I checked, that happens 'cause the:
this.player = plyr.setup({
controls: []
})[0]
returns undefined for this.player.
any ideas?
Environment
Thanks!
@phanan commented on GitHub (Apr 21, 2020):
This is a race condition that's hopefully fixed in the latest version. Can you upgrade and see if the problem persists?
@BrookeDot commented on GitHub (May 5, 2020):
Hi @mncn were you able to upgrade?
@mncn commented on GitHub (Jul 27, 2020):
Yes, it's working now! Thank you and sorry for the late reply.