Coder Social home page Coder Social logo

Songs won't play about player HOT 13 OPEN

koel avatar koel commented on September 27, 2024
Songs won't play

from player.

Comments (13)

pandalanax avatar pandalanax commented on September 27, 2024

did you check storage/logs/laravel.log for anything?

from player.

nickian avatar nickian commented on September 27, 2024

Nothing happens there. I tried tail -f storage/logs/laravel.log and tried interacting with the app in my desktop browser and iOS. Nothing comes up in the log.

from player.

nickian avatar nickian commented on September 27, 2024

Everything works fine on desktop, but I do see this error in the console. I don't know if it's related:

Uncaught (in promise) Error: Request failed with status code 404
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2

from player.

phanan avatar phanan commented on September 27, 2024

This really doesn't have enough information for me to even start to debug. Please give more info e.g., What version are you using? OS? Does your server have HTTPS? What do your files look like?

from player.

AngelPone avatar AngelPone commented on September 27, 2024

It happens to me, too. I also can not play music sometimes, even I saw 206 status code in apache log about the request.

from player.

phanan avatar phanan commented on September 27, 2024

Not saying that this is the reason to our specific case here, but typically files need to be bueffered first. Currently Koel has the limitation of not displaying the footer Now Playing panel right away (due to the library we're using), but it has to wait for some buffering to be done first. This limitation is at the top of my list.

from player.

nickian avatar nickian commented on September 27, 2024

I'm running v5.18 on Ubuntu 20.04 with PHP-FPM 7.4 and NGINX.

I'm not sure if these errors are related. In the browser, music plays, but I see these errors in the console:

XHR GET https://music.mydomain.com/api/6a647fecf76b5d0772a3c0ef417a01f8/info [HTTP/2 404 Not Found 44ms]
Uncaught (in promise) Error: Request failed with status code 404
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    promise callback*jXzy/c.prototype.request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    n https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    <anonymous> https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    SONG_STARTED https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    $emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    restart https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
app.js:2:222668
Error: Promised response from onMessage listener went out of scope 5 background.js:8:59712

Nothing shows up when I tail -f to the webserver log or the laravel log while interacting with the app in the browser or on my iPhone.

from player.

nickian avatar nickian commented on September 27, 2024

Does Koel use a standard Laravel NGINX virtual host, or do you have to do something custom? Why aren't there any virtual host examples listed in the Documentation?

from player.

phanan avatar phanan commented on September 27, 2024

from player.

nickian avatar nickian commented on September 27, 2024

Ah, I see it now. Thanks. Mine was slightly different, so I updated it, but nothing changed with the phone app behavior.

Could this be related to the newest iOS? Have you tested with 15.1.1?

from player.

phanan avatar phanan commented on September 27, 2024

from player.

vesubian avatar vesubian commented on September 27, 2024

I am also unable to play anything from the iOS app, but it works fine through browser and on desktop.
Is TLS required on the server for it to work?

from player.

phanan avatar phanan commented on September 27, 2024

from player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.