@@ -63,6 +63,9 @@ FullscreenContentPage {
63
63
onFileLoaded: {
64
64
console .log (" onFileLoaded" )
65
65
var count = renderer .getProperty (" track-list/count" )
66
+
67
+ var item = {mpvid: {" mpvid" : - 1 , " langid" : " " , " title" : " no" }}
68
+ subs .push (item)
66
69
for ( var i = 0 ; i < count; i++ ){
67
70
var type = renderer .getProperty (" track-list/" + i + " /type" )
68
71
if (type == " " )
@@ -224,8 +227,8 @@ FullscreenContentPage {
224
227
icon .source : " image://theme/icon-m-browser-popup"
225
228
onClicked: {
226
229
if (current_mpvid == - 1 ){
227
- current_mpvid = subs[0 ][" mpvid" ][" mpvid" ]
228
- Notices .show (subs[0 ][" mpvid" ][" langid" ] + " " + subs[0 ][" mpvid" ][" title" ], Notice .Short , Notice .Center )
230
+ current_mpvid = subs[1 ][" mpvid" ][" mpvid" ]
231
+ Notices .show (subs[1 ][" mpvid" ][" langid" ] + " " + subs[1 ][" mpvid" ][" title" ], Notice .Short , Notice .Center )
229
232
}else {
230
233
var myflag = false
231
234
for (var value in subs){
@@ -244,7 +247,11 @@ FullscreenContentPage {
244
247
Notices .show (subs[0 ][" mpvid" ][" langid" ] + " " + subs[0 ][" mpvid" ][" title" ], Notice .Short , Notice .Center )
245
248
}
246
249
}
247
- renderer .setProperty (" sub" , current_mpvid)
250
+ if (current_mpvid == - 1 )
251
+ renderer .setProperty (" sub" , " no" )
252
+ else {
253
+ renderer .setProperty (" sub" , current_mpvid)
254
+ }
248
255
// renderer.setProperty("sub", 2)
249
256
}
250
257
}
0 commit comments