2016-06-02, 13:50
(2016-06-01, 22:57)teepean Wrote: I was looking through the Android Areena player's source code and found this. I have no idea if it is useful or not.
Code:{
"pixelUrl": "https://dax.yle.fi/yle/app/s?",
"metricsApiUrl": "https://metrics.api.yle.fi/v2/",
"channelsUrlNew": "https://areena.api.yle.fi/v1/config",
"categoriesUrlNew": "https://areena.api.yle.fi/v1/config",
"appUIUrl": "https://areena.api.yle.fi",
"areenaApiBaseUrl": "https://areena.api.yle.fi/v1/",
"programsApiBaseUrl": "https://programs.api.yle.fi/v1/",
"mediaApiBaseUrl": "https://media.api.yle.fi/v1/",
"locationsApiBaseUrl": "http://locations.api.yle.fi/v1/",
"shareBaseUrl": "http://areena.yle.fi/",
"shareBaseUrlSv": "http://arenan.yle.fi/",
"imageApiBaseUrl": "https://images.cdn.yle.fi/image/upload",
"loginApiBaseUrlNew": "https://login.api.yle.fi/v1/",
"liveRadioQualities": [
{
"bitrate": 64000,
"title": {
"fi": "Matala",
"sv": "LÃ¥g",
"en": "Low"
}
},
{
"bitrate": 128000,
"title": {
"fi": "Normaali",
"sv": "Normal",
"en": "Normal"
}
}
],
"videoBitrates":[
450000,
800000,
1200000,
1600000,
3000000
],
"maxVideoBitrate": 0,
"playerToUse": "akamai",
"playerToUseLive": "akamai",
"useOMX": "true",
"minVer": 1036,
"pkgNameOfNewVer": "com.yle.webtv",
"useSpring": "true",
"springAppName": "areena/android",
"springPrefix": "areena/",
"specialConfigs": [
{
"manufacturer": "sample",
"model": "model",
"version": "1.4.4",
"maxVideoBitrate":9000000,
"playerToUse":"akamai"
},
{
"name": "lollipop",
"version": "5",
"playerToUse":"akamai",
"useOMX":"false"
},
{
"name": "Samsung",
"manufacturer": "Samsung",
"playerToUse":"native",
"playerToUseLive":"akamai"
}
],
"resolutionLimits":{
"801": 1200000,
"1280": 1600000
},
"useSola": "true",
"solaConfigUrl": "http://ma520-r.analytics.edgesuite.net/config/beacon-6641.xml",
"solaLiveConfigUrl": "http://ma520-r.analytics.edgesuite.net/config/beacon-6641.xml",
"solaOnDemandConfigUrl": "http://ma648-r.analytics.edgesuite.net/config/beacon-7920.xml",
"metricsTimeout": 10
}
http://yle.fi/global/apps/android/areena...ation.json
I played today with the developer API. It seems that most of the stuff in Areena are still under internal API like Android API above. There is absolutely no documentation how to get live streams for radio or TV. I tried many combinations without success. Your GENRE_ID list is really great but also uses internal API. Hopefully external official API receives some additions to become more useful.