문제

I hide (not to kill and hide) XBMC for raspberry pi?

On xbmc I have written only a catalog, clicking on the item you want to run my app, while hide xbmc and start again as my app quits

I try to

xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
os.system('sleep 10') //run my app
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')

I took this code from a plugin that launches the application on MAC OS

도움이 되었습니까?

해결책

like that earned

xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
os.system('sh -c "sudo killall -STOP xbmc.bin && runmyapp && sudo killall -CONT xbmc.bin"') //run my app
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top