import QtQuick 2.0 import "../AppLink/Com" import "../windowsList.js" as WindowsList import "../AppLink/settingLib.js" as SettingsType import "../layoutList.js" as Layout HMIWindow { id: himalayan_Play title:qsTr("直播") + applinkControl.qsEmptyString //windowImgSource:imagePath + "M8X_full-screen_bk.png" bWithTitle: false property bool bLoading : true property bool bPlayFailed: false property int iPlayIndex: 0 property string sPlayId: "" Component.onCompleted: { bLoading = true windowID = WindowsList.APP_HIMALAYAN_BROADCASTLIVEPLAYER } onSignal_returnClick: { applinkControl.QML_NIF_NET_CancelRequest() ScreenManager.backward(Layout.APPLINK) } Connections{ target:applinkControl onSignal_StartPlayRadioInfoEnd:{ //music_Picture_big.source = imagePath + "M8X_music_Albums_default_304.png" bLoading = false //if(applinkControl.QML_GetIsRadioPause()) //{ // radioPlayButton.istatus=0 //text4.text = applinkControl.QML_GetRadioPlayTime() //} //else //{ // radioPlayButton.istatus=1 //} //接受信号,获取数据 text1.text = radio_name text2.text = program_name applinkControl.QML_NIF_XM_GetRadioPlayStatus() //applinkControl.QML_NIF_XM_RequestPlayRadioIcon() } onSignal_RadioProcessPlugInEnd:{ //bLoading = false bPlayFailed = false //text4.text = qHour+":"+qMin } onSignal_ImageSaveFinishedForPlayer:{ if(visible){ //music_Picture_big.source = strFileName } } onSignal_XM_PlayFailed:{ if(visible){ bLoading = false bPlayFailed = true } } onSignal_RadioStatusInfoEnd:{ if (0 == status) { radioPlayButton.istatus = 1 } else { radioPlayButton.istatus = 0 } } onSignal_GetPlayStatus:{ if(visible) { applinkControl.QML_NIF_XM_GetRadioPlayStatus() } } } HMILabel{ id:text1 x:150 y:470-160 font.pixelSize:30 height:30+4 width:660 text:"" verticalAlignment: Text.AlignTop elide:Text.ElideRight } HMILabel{ id:text2 x:150 y:512-160 font.pixelSize:20 height:20+4 width:660 text:"" verticalAlignment: Text.AlignTop elide:Text.ElideRight } // HMILabel{ // id:text4 // anchors.top: parent.top // anchors.topMargin: 706 - 160 // anchors.horizontalCenter: parent.horizontalCenter // font.pixelSize:26 // height:26 // width:208 // visible: false // text:"00:00" // } // Image{ // x:10 // y:369 - 160 // source:imagePath + "M8X_frequency-spectrum_line.png" // } // Image{ // x:0 // y:169 // source:imagePath + "M8X_frequency-spectrum_1.png" // } // Image{ // x:0 // y:177 // source:imagePath + "M8X_frequency-spectrum_2.png" // } // Image{ // x:0 // y:173 // source:imagePath + "M8X_frequency-spectrum_3.png" // } // HMIRoundBar_big{ // id:main_processbar_big // } // HMIRoundCover // { // id: music_Picture_big // x:328 // y:187 // width:304 // height:304 // border:0 // visible: true // source:imagePath + "M8X_music_Albums_default_304.png" // } HMIRadioPlayCtrlButton { id:radioPlayButton imagePath:himalayan_Play.imagePath } App_Loading{ id:loadingIcon loadingPath: imagePath+"Common/Loading_60/" surname: "M8X_Loading_60_" anchors.horizontalCenter:parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 450 visible:bLoading } App_HMILoadFailed{ id:appLoadingFailed visible:bPlayFailed imagePath: himalayan_Play.imagePath showBg: true onSignal_refreshClick:{ bLoading = true if(bPlayFailed){ bPlayFailed = false iPlayIndex = applinkControl.QML_GetRaidoPlayIndex() if (iPlayIndex >= 0) { applinkControl.QML_NIF_XM_RequestRadioPlay(iPlayIndex, 0) } else { sPlayId = applinkControl.QML_GetRaidoPlayId() applinkControl.QML_NIF_XM_PlayHistory(sPlayId, sPlayId, "0", "1") } } } } //底部功能栏 Row{ id: functionArea y:1041-160 HMIButton{ id: quitBtn btnImgOnPressed: imagePath +"M8X_Function_close_Button_p.png" btnImg: imagePath+"M8X_Function_close_Button.png" btnIcon: imagePath+"M8X_icon_close.png" onClicked:{ applinkControl.QML_CloseAppLink() //ScreenManager.changeForm(Layout.FM_CLOSE,windowID); } } HMIButton{ id: nosw enabled: false btnImgOnPressed: imagePath +"M8X_Function_1_Button_NoSwitch_p.png" btnImg: imagePath+"M8X_Function_1_Button_NoSwitch.png" } } }