Fix adv when on boot

This commit is contained in:
wanlop run 2024-07-12 09:18:44 +07:00
parent ed414e748b
commit 4130450c48
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,7 @@
Var AdvTaobinHome = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_"
Var HeadVideoFilename = "-"
If VideoAdvIndex = 1 Then
Var HeadVideoFilename = AdvTaobinHome + video_menu_0
EndIf
@ -39,6 +40,11 @@
DEBUGVAR video_main_5
EndIf
If HeadVideoFilename = "-" Then
DEBUGVAR HeadVideoFilename
Var HeadVideoFilename = "/mnt/sdcard/coffeevending/taobin_project/adv/taobin_adv_menu_00"
EndIf
Var HeadVideoFilename = HeadVideoFilename + ".mp4"
DEBUGVAR VideoAdvIndex