lovegaoshi / azusa-player-mobile

移动端的第三方b站音乐播放器
https://azusa-player-mobile.vercel.app/
GNU Affero General Public License v3.0
558 stars 19 forks source link

[bug] iOS playback error collection #184

Closed lovegaoshi closed 5 months ago

lovegaoshi commented 12 months ago

rarely android gets one of these, iOS seems to be plagued by it. to be fair sometimes its not ios' fault but still, screw you apple. APM hypothesizes its AVPlayer not supporting some formats, very notably MPEGDASH, causing some media to not play. there is also https://www.bilibili.com/read/cv14674639/ that does seem relevant. APM attempts to resolve this issue by using the bundled FFMPEG to re-encode whatever bilibili has into mp3 to make it playable. also CDN kamaized.net seems fine but bilivideo.com is not.

lovegaoshi commented 12 months ago

here's one BV1Pv4y1B7JV that seems to have a moov problem that fails ffmpeg transcoding:

fethcVideoPlayURL: https://api.bilibili.com/x/player/playurl?cid=941098697&bvid=BV1Pv4y1B7JV&qn=64&fnval=16 with AudioUrl
[SongResolveURL] Valhalla Calling is resolved to https://upos-hz-mirrorakam.akamaized.net/upgcxcode/97/86/941098697/941098697_nb3-1-16.mp4
Event.PlaybackState {"error": {"code": "ios_failed_to_load_resource", "message": "Failed to load resource"}, "state": "error"}
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fafb547c330] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fafb547c330] moov atom not found

also seems to break my emulator

lovegaoshi commented 5 months ago

ios can suck it