mcfisto / homebridge-airtunes-radio

Ability to stream internet radion stream to HomePod/AirTunes2 device.
37 stars 5 forks source link

No play issue #14

Closed rgerr closed 5 years ago

rgerr commented 5 years ago

Hi there, this plug-in has some real potential. I got very excited the minute I saw it, but I have not been able to make it work just yet.

I installed it via sudo npm install -g —unsafe-perm Homebridge-AirTunes-radio (gave errors without unsafe-perm), then added the device in my config. I double checked the right ip for the HomePod and audio link, but when I activate the device in the Home app, no audio is being played. Also deleted the plug-in in full and reinstalled it.

I added the following to my config:

    {
        "accessory": "HomePodRadio",
        "name": "Radio Two",
        "streamUrl": "http://icecast.omroep.nl/radio2-bb-mp3",
        "host": "192.168.1.115",
        "volume": 15,
        "port": 5000
    },

homebridge log:

[7/12/2019, 5:17:03 PM] [Radio Two] Turning Radio Two on Config2: {"accessory":"HomePodRadio","name":"Radio Two","streamUrl":"http://icecast.omroep.nl/radio2-bb-mp3","host":"192.168.1.115","volume":15,"port":5000} Device: {"_events":{},"_eventsCount":1,"udpServers":{"_events":{},"_eventsCount":1,"status":1,"control":{"socket":{"_events":{},"_eventsCount":1,"type":"udp4","fd":null},"port":null,"name":"control"},"timing":{"socket":{"_events":{},"_eventsCount":1,"type":"udp4","fd":null},"port":null,"name":"timing"},"hosts":["192.168.1.115"]},"audioOut":{"_events":{},"_eventsCount":1,"lastSeq":0,"hasAirTunes":true},"type":"airtunes","host":"192.168.1.115","port":5000,"key":"192.168.1.115:5000","rtsp":{"_events":{},"_eventsCount":0,"audioOut":{"_events":{},"_eventsCount":1,"lastSeq":0,"hasAirTunes":true},"status":0,"socket":null,"cseq":0,"announceId":null,"activeRemote":418640421,"dacpId":"603f843ddad1aa93","session":null,"timeout":null,"volume":15,"password":null,"passwordTried":false,"requireEncryption":false,"trackInfo":null,"artwork":null,"artworkContentType":null,"callback":null,"controlPort":null,"timingPort":null,"heartBeat":null},"audioCallback":null,"encoder":{},"audioSocket":{"_events":{},"_eventsCount":0,"type":"udp4","fd":null}} [7/12/2019, 5:17:09 PM] [Radio Two] Turning Radio Two off

saury commented 5 years ago

Maybe your streamUrl is not supported. Try other one. For example: http://listen.181fm.com/181-highway_128k.mp3

rgerr commented 5 years ago

Tried changing the url to the one hou suggested and restarted homebridge, but still nothing, unfortunatly.

Luftloch80 commented 5 years ago

Have the same problem. Do you need to install any other Module? AirTunes, Which npm version which Node Version to use

rgerr commented 5 years ago

I am using node v10.16 and npm V6.10.1

rgerr commented 5 years ago

Also tried installing it on a Raspberry pi 3b, without any luck. Tried several streams, but nothing comes out of my HomePod.

mszf commented 5 years ago

I had some issues at the end got it work but only with very few streams. This is not a answer or solution for this plug-in but in coming version 13 of iOS you can do this natively in HomeKit . I mean start a audio stream from a HomeKit automation or a scene.

rgerr commented 5 years ago

Do you have a screenshot or link for this? Have not heard about this anywhere.

mszf commented 5 years ago

262D4266-1131-42E9-A869-2DA1A752C204

This is not just for HomePods but generally for all AirPlay2 devices. Right now in iOS13 beta you need a newer version of HomePod software to make it work (was working in beta 1) but it already works with Apple TV when running on tvOS beta. iOS13 makes it possible to use any AirPlay2 device in HomeKit scenes, automations and even in Shortcuts.

mszf commented 5 years ago

BF2F4763-0050-4FE4-A433-94B6D94E4B41 B7915CBF-5574-40C2-A8FA-A1FCFBDA2482

rgerr commented 5 years ago

That looks promising, can you play costum audio files or streams?

mszf commented 5 years ago

This is supposed to work with Apple Music with audio and video content and with radio stations. Apple will add in iOS13 support for radio stations from all over the world and you can also upload custom audio content to Apple Music. In Shortcuts you can already use also files stored in your iCloud account or some other 3rd parties cloud services but it is unclear if this part is also going to work in HomeKit

rgerr commented 5 years ago

Ah, so, to be clear, the iOS 13 update will replace this plug-in? And we will be able to add costum audio files via iTunes and have it played via automations in HomeKit on the HomePod?

mszf commented 5 years ago

That's correct. After uploading your custom audio files to Apple Music trough iTunes you will able to play them on HomePod via HomeKit automations or scenes.

rgerr commented 5 years ago

Thanks for sharing this, I’ll just be patient untill september then.