blob: ecf240ea04d0c1bb01c56a26e1033e6c9440ef9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
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"
}
}
}
|