Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
Fade out downloaded songs from Apple Music

How can I make downloaded Apple Music songs fade out (volume decrease steadily over a few seconds)?

Recently I've been getting into trying to get Apple Music songs to play in my app. I've gotten them to play through the system/application music player of the MPMusicPlayerController. This is all good until I have to fade the music.

I've been able to replicate this fading stuff using an AVPlayer, since I have complete control over the volume of the music. The problem with AVPlayer, though, is that it needs a URL to a file of downloaded music to play it. Apple Music songs are by default locked and it's impossible to get their URLs. I can get the URLs of downloaded iCloud Music Library songs, and I've been able to play those and make them fade out all I want.

It seems the only way to play songs downloaded from Apple Music is through a MPMusicPlayerController (either the application player or system player). The problem with these is that neither of them have volume control and they rely on the system volume to determine how loud to play the music. Therefore, I can't fade the music out with them. (I did try some weird hack to change the system volume by making Apple's custom volume control slider and programmatically changing the values, but it was extremely finicky and I could never get it to fade properly)

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda