navidrome / navidrome

🎧☁️ Modern Music Server and Streamer compatible with Subsonic/Airsonic
https://www.navidrome.org
GNU General Public License v3.0
10.16k stars 783 forks source link

[Bug]: IOS device unable to play #2944

Closed icfy-dmc closed 1 week ago

icfy-dmc commented 1 month ago

I confirm that:

Version

0.51.1 (6d253225)

Current Behavior

Unable to play any tracks after logging in with iOS device Always loading image

Expected Behavior

Normal playback

Steps To Reproduce

  1. Login
  2. Click on any song

Environment

- OS: Ubuntu 22.04.1 LTS (GNU/Linux 5.17.15-edge x86_64)
- Browser: ios safari、ios chrome、WeChat browser
- Client:

How Navidrome is installed?

Docker

Configuration

version: "3"
services:
  navidrome:
    image: deluan/navidrome:0.51.1
    container_name: navidrome
    user: 1000:1000 # should be owner of volumes
    ports:
      - 4533:4533
    restart: unless-stopped
    environment:
      ND_SCANSCHEDULE: 1h
      ND_LOGLEVEL: info  
      ND_SESSIONTIMEOUT: 24h
      ND_BASEURL: ""
      ND_DEFAULTLANGUAGE: zh-Hans
      ND_DEFAULTTHEME: Ligera
    volumes:
      - /root/navidrome/data:/data
      - /mnt/nas/music:/music:ro

Relevant log output

time="2024-04-08T08:05:56Z" level=info msg="Streaming file" artist="陈楚生,王栎鑫,陆虎,张远,俞灏明" bitRate=0 cached=false format=raw originalBitRate=320 originalFormat=mp3 requestId=3b95411af9af/hVdmz4iKnr-018606 title="直到世界尽头 (Live)" transcoding=false user=guestDemo username=guestDemo
time="2024-04-08T08:05:56Z" level=info msg="Streaming file" artist="陈楚生,王栎鑫,陆虎,张远,俞灏明" bitRate=0 cached=false format=raw originalBitRate=320 originalFormat=mp3 requestId=3b95411af9af/hVdmz4iKnr-018607 title="直到世界尽头 (Live)" transcoding=false user=guestDemo username=guestDemo
time="2024-04-08T08:05:56Z" level=info msg="Streaming file" artist="陈楚生,王栎鑫,陆虎,张远,俞灏明" bitRate=0 cached=false format=raw originalBitRate=320 originalFormat=mp3 requestId=3b95411af9af/hVdmz4iKnr-018608 title="直到世界尽头 (Live)" transcoding=false user=guestDemo username=guestDemo

Anything else?

No response

Code of Conduct

icfy-dmc commented 1 month ago

I tested other brands of mobile phones, and the functionality is normal Samsung and Xiaomi

happyTonakai commented 1 month ago

What client app are you using? It seems the server works well according to the log output.

fl4co commented 1 month ago

I have the same problem, endless spinning as shown in the picture by OP and song never starts. No errors in the logs, neither original nor transcoded will play.

It happens only in the Web UI (tested Safari and Firefox), iOS clients such as substreamer or Amperfy work fine.

fl4co commented 1 month ago

I can add more details: if shared files are opened in a iOS browser (Safari tested), the playback won't start. However, if downloading is allowed in the sharing options then the playback will start when the download button is activated, instead of triggering a file download.

icfy-dmc commented 1 month ago

What client app are you using? It seems the server works well according to the log output.

I tried both iPhone 15 Pro and iPhone 13 Mini and it didn't play (iOS 17.4.1) But I tried to use the iPad and found it to be normal

stephenleegreenhalgh commented 1 month ago

The issue started with iOS 17.4.1. The iPad works but iPhone 13 Pro doesn’t. I tried different browsers but this happens on Chrome and Safari. Using Amperfy as a workaround so still loving Navidrome on iOS.

estebanmedinao commented 4 weeks ago

any solution for the problem, iOS is not playing

MonzterDev commented 3 weeks ago

Can confirm this as well.

YesThatAllen commented 3 weeks ago

We're having this as well.. our site is hosted on Pikapod. 0.51.1

I wonder if people are experiencing this only on recent iOS, or if it's a recent change in navidrome… edit: it seems to be an iOS issue.

I can sometimes get Chrome to play after refreshing, but I can't get Safari to play at all:

time="2024-04-24T02:50:23Z" level=info msg="Streaming file" artist="Lead Tracks" bitRate=0 cached=false format=raw originalBitRate=192 originalFormat=mp3 requestId=d2695c99c40c/gJ8Dym2IqZ-014566 title="Little Patch Of Heaven - Lead Predominant" transcoding=false user=UNKNOWN

I restarted the pod, but that didn't seem to have an affect.

estebanmedinao commented 3 weeks ago

I also have it hosted on pikapods, I thought that might be the only problem there, but even the navidrome demo on the official website doesn't work on iOS either.

deluan commented 3 weeks ago

For those with this issue, this is the problem:

The issue started with iOS 17.4.1. The iPad works but iPhone 13 Pro doesn’t. I tried different browsers but this happens on Chrome and Safari.

We are not looking into fix this, as we are working on a new UI, with a new player. So, unless someone wants to jump in and try to fix it, the workaround is to use a native client for iOS. Some options:

play:Sub substreamer Amperfy iSub

estebanmedinao commented 2 weeks ago

I was able to get the web player to work on iOS 17.4.1 in Safari settings functions, disable "alternate WebM Player"

With that it loads without problems in iOS 17.4.1

[ IMG_0303] (https://github.com/navidrome/navidrome/assets/8879013/ed40784f-2d28-4145-8899-6ad8b42312b0)

johnelliott commented 1 week ago

I was able to get the web player to work on iOS 17.4.1 in Safari settings functions, disable "alternate WebM Player"

With that it loads without problems in iOS 17.4.1

IMG_0303

Thanks so much, this was super annoying and I took to debugging mobile safari with a USB cable to see that the stream just wasn't working. This fixed it for me.

Joesepherus commented 1 week ago

I was able to get the web player to work on iOS 17.4.1 in Safari settings functions, disable "alternate WebM Player"

With that it loads without problems in iOS 17.4.1

[ IMG_0303] (https://github.com/navidrome/navidrome/assets/8879013/ed40784f-2d28-4145-8899-6ad8b42312b0)

Very nice! That's working for me. I knew safari was doing something crazy again. Thanks!

sharpsteelsoftware commented 4 days ago

This is happening to my friend too she has iOS 11. Plays fine on all her other devices (tablet, windows) and on my devices (linux, mac, android) but on iOS she gets loading spinner and no sound. Ios 17.4.1