25.02.2017, 22:38
(This post was last modified: 25.02.2017, 23:14 by Erwin van der Zwart.)
Hi Josep,
No, currently the protocolInfo is detecting only "x-rincon-mp3radio" and "aac" as mediatype 'radio', all others are mediatype 'track'
What you could do is check the first part of the trackuri, it holds the protocolInfo as start..
Use this to fetch it:
BR,
Erwin
No, currently the protocolInfo is detecting only "x-rincon-mp3radio" and "aac" as mediatype 'radio', all others are mediatype 'track'
What you could do is check the first part of the trackuri, it holds the protocolInfo as start..
Use this to fetch it:
Code:
var protocolinfo = res_parsed[5].trackuri.match("x(.*)://");
//console.log(protocolinfo[0])
if (protocolinfo[0] == 'yourdetectedprotocoltype'){
//do your action
}
BR,
Erwin