YinHangCode / homebridge-mi-gateway-fm

XiaoMi Gateway FM plugin for HomeBridge.
42 stars 4 forks source link

URL format and audio requirements ? #2

Open neshala opened 7 years ago

neshala commented 7 years ago

Is there some specs which URL format is valid, i have tried several and none is working except those provided in README - that one works fine for me?

I tried the following:

http://109.206.96.197:443/;&type=mp3
http://streaming.karolina.rs:8000/karolina
http://streaming.tdiradio.com:8000/tdiradio

It would be good to know is there some requirements in term of audio format and bitrate that needs to be satisfied in order to play FM.

YinHangCode commented 7 years ago

In my submission, this url must "m3u8" file. you can try refer to the "m3u8" file rule and test it.

neshala commented 7 years ago

I found this one for example:

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/master.m3u8

which have this content

`#EXTM3U

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=48000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_48_a-p.m3u8?sd=10&rebase=on

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=48000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_48_a-b.m3u8?sd=10&rebase=on

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_64_a-p.m3u8?sd=10&rebase=on

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_64_a-b.m3u8?sd=10&rebase=on

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=96000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_96_a-p.m3u8?sd=10&rebase=on

EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=96000,CODECS="mp4a.40.2"

http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/index_96_a-b.m3u8?sd=10&rebase=on `

It works from browser but it does not work when i provide it as URL param in config.json

Any idea what could be wrong? I don't see anything in output log related to this plugin.

And for your sample URL provided in README i see this content http://live.xmcdn.com/live/1005/64.m3u8

`#EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:7

EXT-X-MEDIA-SEQUENCE:10528209

EXTINF:7,

http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_852.aac

EXTINF:7,

http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_853.aac

EXTINF:7,

http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_854.aac `

So should i put some aac LINK to playlist file with extension m3u8 in order to make this FM working?

YinHangCode commented 7 years ago

It should be so, try acc file.

Solusan commented 6 years ago

Hi everyone.

I'm trying to get stable treams in .m3u8 (now I see that .aac also works). I made some searches but the url are really not stable. English and I'd like to get some stream from stations like KISS FM. That kind of.

Some advice about it?

Also I0m wondering if I could stream AirPLay at home in *.m3u8 then I could make a kind of "bluetooth speaker". What do you think about?

Thanks a lot for your Wonderful work @YinHangCode :) Thanks all :)

ghost commented 6 years ago

Hi!!!

I'm using this custom url: http://a3live-lh.akamaihd.net/i/auhds/geoeuropafm_1@430327/master.m3u8 But it's not working...

I only can make the gateway works with the default url showed in the tutorial.

Any help??

Thanks a lot for your Wonderful work @YinHangCode :) +100 😄

paqpaqpaq commented 5 years ago

And for your sample URL provided in README i see this content http://live.xmcdn.com/live/1005/64.m3u8

#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:7 #EXT-X-MEDIA-SEQUENCE:10528209 #EXTINF:7, http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_852.aac #EXTINF:7, http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_853.aac #EXTINF:7, http://live.xmcdn.com/192.168.3.136/live/1005/64/170901_000046_854.aac

So should i put some aac LINK to playlist file with extension m3u8 in order to make this FM working?

Dit you get this part to work @neshala ?

ahmadnazirafiq commented 3 years ago

Same... I'm trying to find a working .m3u8 url to replace the default one but to no avail. At this point I'd appreciate if there's any .m3u8 link that streams english songs.

LennyLip commented 2 years ago

it look like Live playlist with aac streams https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/live_playlist_sliding_window_construction and https://en.wikipedia.org/wiki/HTTP_Live_Streaming