Jump to content
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PHP] Obter/Coletar/Extrair dados do ShoutCast e Icecast + Capa iTunes/Apple Music.

Featured Replies

1983311956_Parser(1).png.d092fae0d3627eb6b0a65135e2488abb.png 

É o seguinte pessoal, depois de um tutorial que publiquei aqui a certo tempo, muitos me pediram ajudar para deixar mais sofisticado e tals.  Como estou meio desgostoso de fazer algo de graça, segue abaixo.

Pensando nisso, eu fiz uns 2 arquivos individuais para obter dados das transmissões de streaming da plataforma Icecast e Shoutcast. Além disso, implementei da melhor forma a obtenção da capa do álbum através do iTunes. 

O arquivo não é criptografado, o que permite estudar e editar conforme achar melhor, junto vai 2 arquivos de prefixo "docs", bem simples ensinando com usar os arquivos e implementar ao seu projeto. São arquivos totalmente adaptáveis a qualquer framework, por serem abertos, permite a edição e adaptação.

As variáveis disponíveis são: (A opção de Next Songs está disponível somente no ShoutCast)

Server URL, Title, Next Songs, Server Name, Server Description, Listen URL, Listeners, Artist Name, Track Name, Cover e Cover 500px.

Quem se interessar, está a venda por pagamento único de 30 reais.

Aceito PIX, DOC, TED e no Mercado Pago cobro a taxa.

Interessados, enviar MP.

Abaixo está uma demonstração por array. Porém é possível captar dados só de um string em expecifico ou emitir todos os dados em json diretamente, além de poder adaptar para demais situações de forma bem fácil. Fiz de forma limpa para evitar erros de php e simplificar quem deseja estudar os arquivos.

Testado em php 5.x e 7.x

demo.png.343dbab3113c4f7bc70b93d1806e1c5f.png

Edited by msaulohenrique



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Do you agree with our terms?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.