SpringRadio icon indicating copy to clipboard operation
SpringRadio copied to clipboard

How to load from Json list file.

Open dardaniaa0 opened this issue 5 years ago • 1 comments

my json

{
    "title": "Radio1",
    "category": "Featured",
    "city": "",
    "state": "",
    "id": 1,
    "isFeatured": true,
    "isFavorite": false,
    "streamURL": "http://dardanialive.duckdns.org:8000/radio.mp3",        //<---------- here!!!
    "park": "Descriptions TEST",
    "coordinates": {
        "longitude": 0,
        "latitude": 0
    },
    "imageName": "1"
},

Thank you...

dardaniaa0 avatar Nov 06 '20 23:11 dardaniaa0

The class Streamer has a property url. You just need to assign your url in json to it, like audioPlayer.url = url. If you use my AudioPlayer, you need to deserialise your json to the model protocol Playable.

jacklandrin avatar Mar 02 '21 21:03 jacklandrin