Found the bloody aarch64 bug!!!! Should be fixed?!
This commit is contained in:
+30
-23
@@ -11,7 +11,7 @@ MediaPlayer {
|
||||
property string _stationuuid: ""
|
||||
property string _name: ""
|
||||
property string _favicon: ""
|
||||
property string _countrycode: ""
|
||||
property string _cc: ""
|
||||
property string _tags: ""
|
||||
property string _codec: ""
|
||||
property string _bitrate: ""
|
||||
@@ -55,7 +55,10 @@ MediaPlayer {
|
||||
|
||||
onPlaying: if (!playerPageOpen) pageStack.push("../pages/RadioPlayerPage.qml")
|
||||
|
||||
on_CcChanged: console.log(_cc)
|
||||
|
||||
onMetaInfoChanged: {
|
||||
console.log( " *** MetaInfo")
|
||||
if (metaInfo.search(" - ") > -1) {
|
||||
var res = metaInfo.split(" - ")
|
||||
radioArtist = res[0]
|
||||
@@ -67,6 +70,7 @@ MediaPlayer {
|
||||
}
|
||||
|
||||
onStationOkChanged: {
|
||||
console.log(" *** StationOk "+stationOk)
|
||||
if (stationOk === 1) {
|
||||
setStationClick()
|
||||
getStationFavorite(_stationuuid)
|
||||
@@ -78,7 +82,8 @@ MediaPlayer {
|
||||
}
|
||||
|
||||
on_StationuuidChanged: {
|
||||
radioCountryName = radioBrowser.getCountryName(_countrycode)
|
||||
console.log(" *** StationuuidChanged: "+_cc)
|
||||
radioCountryName = radioBrowser.getCountryName(_cc)
|
||||
stop()
|
||||
source = ""
|
||||
radioVideo = false
|
||||
@@ -186,7 +191,7 @@ MediaPlayer {
|
||||
_stationuuid = ""
|
||||
_name = ""
|
||||
_favicon = ""
|
||||
_countrycode = ""
|
||||
_cc = ""
|
||||
_tags = ""
|
||||
_codec = ""
|
||||
_bitrate = ""
|
||||
@@ -238,7 +243,7 @@ MediaPlayer {
|
||||
|
||||
|
||||
function setStationClick() {
|
||||
Favorites.setStationClicked(JsFunctions.getTimeStamp(),_stationuuid,_name,_countrycode,_homepage,_url_resolved,_favicon,_tags,_codec,_bitrate,_hls,_favorite)
|
||||
Favorites.setStationClicked(JsFunctions.getTimeStamp(),_stationuuid,_name,_cc,_homepage,_url_resolved,_favicon,_tags,_codec,_bitrate,_hls,_favorite)
|
||||
}
|
||||
|
||||
function setStationFavorite(stationuuid,name,countrycode,homepage,url_resolved,favicon,tags,codec,bitrate,hls,favorite) {
|
||||
@@ -262,7 +267,7 @@ MediaPlayer {
|
||||
if (playlist.get(playlistIndex).url_resolved) {
|
||||
_favicon = playlist.get(playlistIndex).favicon
|
||||
_name = playlist.get(playlistIndex).name
|
||||
_countrycode = playlist.get(playlistIndex).countrycode
|
||||
_cc = playlist.get(playlistIndex).countrycode
|
||||
_tags = playlist.get(playlistIndex).tags
|
||||
_codec = playlist.get(playlistIndex).codec//getCodec(model.codec)
|
||||
_bitrate = playlist.get(playlistIndex).bitrate //getBitrate(model.bitrate)
|
||||
@@ -280,23 +285,25 @@ MediaPlayer {
|
||||
}
|
||||
|
||||
function loadRecentPlay(){
|
||||
if (playHistory.get(0).url_resolved) {
|
||||
_favicon = playHistory.get(0).favicon
|
||||
_name = playHistory.get(0).name
|
||||
_countrycode = playHistory.get(0).countrycode
|
||||
_tags = playHistory.get(0).tags
|
||||
_codec = playHistory.get(0).codec//getCodec(model.codec)
|
||||
_bitrate = playHistory.get(0).bitrate //getBitrate(model.bitrate)
|
||||
_hls = playHistory.get(0).hls
|
||||
_url_resolved = playHistory.get(0).url_resolved
|
||||
_homepage = playHistory.get(0).homepage
|
||||
_stationuuid = playHistory.get(0).stationuuid
|
||||
_favorite = playHistory.get(0).favorite
|
||||
isPlaying = false
|
||||
isPaused = true
|
||||
///if (_favorite) playlistCount = Favorites.getSetting("playlistIndex",-1)
|
||||
//playlistIndex = allradioSettings.value("currentFavorite",-1)
|
||||
// pageStack.push("RadioPlayerPage.qml")
|
||||
if (playHistory.count > 0) {
|
||||
if (playHistory.get(0).url_resolved) {
|
||||
_favicon = playHistory.get(0).favicon
|
||||
_name = playHistory.get(0).name
|
||||
_cc = playHistory.get(0).countrycode
|
||||
_tags = playHistory.get(0).tags
|
||||
_codec = playHistory.get(0).codec//getCodec(model.codec)
|
||||
_bitrate = playHistory.get(0).bitrate //getBitrate(model.bitrate)
|
||||
_hls = playHistory.get(0).hls
|
||||
_url_resolved = playHistory.get(0).url_resolved
|
||||
_homepage = playHistory.get(0).homepage
|
||||
_stationuuid = playHistory.get(0).stationuuid
|
||||
_favorite = playHistory.get(0).favorite
|
||||
isPlaying = false
|
||||
isPaused = true
|
||||
///if (_favorite) playlistCount = Favorites.getSetting("playlistIndex",-1)
|
||||
//playlistIndex = allradioSettings.value("currentFavorite",-1)
|
||||
// pageStack.push("RadioPlayerPage.qml")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,7 +312,7 @@ MediaPlayer {
|
||||
if (playlist.get(rnd).url_resolved) {
|
||||
_favicon = playlist.get(rnd).favicon
|
||||
_name = playlist.get(rnd).name
|
||||
_countrycode = playlist.get(rnd).countrycode
|
||||
_cc = playlist.get(rnd).countrycode
|
||||
_tags = playlist.get(rnd).tags
|
||||
_codec = playlist.get(rnd).codec//getCodec(model.codec)
|
||||
_bitrate = playlist.get(rnd).bitrate //getBitrate(model.bitrate)
|
||||
|
||||
Reference in New Issue
Block a user