RuurdBijlsma / Music

Music player using Spotify API
61 stars 1 forks source link

The audio playback icon keeps spinning and the sound doesn't play #3

Closed xiperfect closed 10 months ago

xiperfect commented 10 months ago

I logged in successfully via Spotify, but when playing any audio content (it does not work) and the icon just rotates

like this

287468147-d4c87c7d-b3b0-40c6-a24e-e6e0567083c1

RuurdBijlsma commented 10 months ago
  1. What OS are you using?
  2. if you're not using windows do you have ffmpeg in your PATH?
  3. could you post logs? ctrl shift i to open dev tools, then click the log tab
senolfndk commented 10 months ago

same problem. Windows 11 Pro

xiperfect commented 10 months ago
  1. What OS are you using?
  2. if you're not using windows do you have ffmpeg in your PATH?
  3. could you post logs? ctrl shift i to open dev tools, then click the log tab
  1. Windows 10 Pro - 64bit
  2. I opened the window you mentioned, but where do I get the logs from? Is it from the recorder tab?

image

RuurdBijlsma commented 10 months ago

sorry i meant console tab, but i can see it in your screenshot. there's no error there so the error message must be in the node logs, which isnt visible from here. If you run the program in dev mode you will be able to see the log and I might be able to fix it or help you.

To do this you need to have Node and Git installed.

In a terminal

  1. clone the repo: git clone https://github.com/ruurdbijlsma/Music
  2. cd Music
  3. npm install
  4. npm run dev

The program will now start, try to play something and if it doesnt work again copy the log from the terminal where you started the program from. There should be an error there.

xiperfect commented 10 months ago

image

The sound worked when I opened the program in development mode

C:\Users\Farouk\Music\Music>npm run dev

> ruurd-music@6.8.3 dev
> electron-vite dev

vite v4.5.0 building for development...
                                                                     ✓ 16 modules transformed.
out/main/index.js  26.04 kB
✓ built in 242ms

build the electron main process successfully

-----

vite v4.5.0 building for development...
✓ 1 modules transformed.
out/preload/index.js  4.17 kB
✓ built in 90ms

build the electron preload files successfully

-----

dev server running for the electron renderer process at:

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose

start electron app...

{
  urls: {
    ffmpeg: 'https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v4.4.1/ffmpeg-4.4.1-win-64.zip',
    ffplay: 'https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v4.4.1/ffplay-4.4.1-win-64.zip',
    ffprobe: 'https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v4.4.1/ffprobe-4.4.1-win-64.zip'
  },
  missingComponents: [
    {
      component: 'ffmpeg',
      filePath: 'C:\\Users\\Farouk\\AppData\\Roaming\\ruurd-music-files\\ffmpeg.exe',
      zipPath: 'C:\\Users\\Farouk\\AppData\\Local\\Temp\\ruurd-music\\ffmpeg.zip',
      tempFilePath: 'C:\\Users\\Farouk\\AppData\\Local\\Temp\\ruurd-music\\ffmpeg.exe'
    }
  ]
}
Skip checkForUpdates because application is not packed and dev update config is not forced
checkForUpdatesAndNotify called, downloadPromise is null
١:٥٩:٠٨ ص [vite] ✨ new dependencies optimized: vuetify/lib/components/VProgressLinear/index.mjs, vuetify/lib/components/VTabs/index.mjs, vuetify/lib/components/VWindow/index.mjs
١:٥٩:٠٨ ص [vite] ✨ optimized dependencies changed. reloading
(node:12372) UnhandledPromiseRejectionWarning: Error: ERR_ABORTED (-3) loading 'http://localhost:5173/#/'
    at rejectAndCleanup (node:electron/js2c/browser_init:2:84559)
    at WebContents.navigationListener (node:electron/js2c/browser_init:2:84870)
    at WebContents.emit (node:events:514:28)
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:12372) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
youtube  Extracting URL: https://www.youtube.com/watch?v=wi6L6QmmrHE
youtube  wi6L6QmmrHE: Downloading webpage
youtube  wi6L6QmmrHE: Downloading ios player API JSON
youtube  wi6L6QmmrHE: Downloading android player API JSON
youtube  wi6L6QmmrHE: Downloading m3u8 information
info  wi6L6QmmrHE: Downloading 1 format(s): 251
download  Destination: C:\Users\Farouk\AppData\Local\Temp\ruurd-music\Bara Jarhik - ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜.mp3.temp.webm
download    0.0% of    2.89MiB at  999.12KiB/s ETA 00:02
download    0.1% of    2.89MiB at    2.93MiB/s ETA 00:00
download    0.2% of    2.89MiB at    3.41MiB/s ETA 00:00
download    0.5% of    2.89MiB at    4.88MiB/s ETA 00:00
download    1.0% of    2.89MiB at    7.57MiB/s ETA 00:00
download    2.1% of    2.89MiB at    6.83MiB/s ETA 00:00
download    4.3% of    2.89MiB at    9.54MiB/s ETA 00:00
download    8.6% of    2.89MiB at   11.86MiB/s ETA 00:00
download   17.3% of    2.89MiB at   13.49MiB/s ETA 00:00
download   34.6% of    2.89MiB at   14.91MiB/s ETA 00:00
download   69.2% of    2.89MiB at   17.38MiB/s ETA 00:00
download  100.0% of    2.89MiB at   19.14MiB/s ETA 00:00
download  100% of    2.89MiB in 00:00:00 at 14.67MiB/s
ExtractAudio  Destination: C:\Users\Farouk\AppData\Local\Temp\ruurd-music\Bara Jarhik - ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜ي┐╜.mp3.temp.mp3
youtube  Extracting URL: https://www.youtube.com/watch?v=KQphfimiuoY
youtube  KQphfimiuoY: Downloading webpage
youtube  KQphfimiuoY: Downloading ios player API JSON
youtube  KQphfimiuoY: Downloading android player API JSON
youtube  KQphfimiuoY: Downloading m3u8 information
info  KQphfimiuoY: Downloading 1 format(s): 251
download  Destination: C:\Users\Farouk\AppData\Local\Temp\ruurd-music\Stay With Me - O.WHEN.mp3.temp.webm
download    0.0% of    3.47MiB at  142.85KiB/s ETA 00:24
download    0.1% of    3.47MiB at  374.88KiB/s ETA 00:09
download    0.2% of    3.47MiB at  874.72KiB/s ETA 00:04
download    0.4% of    3.47MiB at    1.63MiB/s ETA 00:02
download    0.9% of    3.47MiB at    1.78MiB/s ETA 00:01
download    1.8% of    3.47MiB at  807.58KiB/s ETA 00:04
download    3.6% of    3.47MiB at    1.02MiB/s ETA 00:03
download    7.2% of    3.47MiB at    1.27MiB/s ETA 00:02
download   14.4% of    3.47MiB at    1.76MiB/s ETA 00:01
download   28.8% of    3.47MiB at    2.66MiB/s ETA 00:00
download   57.5% of    3.47MiB at    4.23MiB/s ETA 00:00
download  100.0% of    3.47MiB at    6.19MiB/s ETA 00:00
download  100% of    3.47MiB in 00:00:00 at 3.89MiB/s
ExtractAudio  Destination: C:\Users\Farouk\AppData\Local\Temp\ruurd-music\Stay With Me - O.WHEN.mp3.temp.mp3
RuurdBijlsma commented 10 months ago

hmm interesting, not sure how to fix it then :( I do see that a long playlist name breaks the UI so i'll try to fix that

xiperfect commented 10 months ago

hmm interesting, not sure how to fix it then :( I do see that a long playlist name breaks the UI so i'll try to fix that

It seems that the launch of the program was a few days ago. Problems are likely to occur. Do not worry and continue. We support you. Thank you and I wish you good luck.

Note: after closing developer mode and opening it normally, the problem returned again, knowing that it does not apply to long playlists only, all content in all lists.