|
|
|
Philips Pronto Professional Forum - View Post
|
|
|
|
|
|
|
The following page was printed from RemoteCentral.com:
Post 10 made on Wednesday May 30, 2012 at 17:34 |
Sorry for reviving an old thread but would love to do this exact same thing with my Blu-Ray player and going through the developer guide did not help.
Right now I have:
Activity "RF Devices" that contains Page "Blu-ray" that contains the two tagged widget/button Play and Pause.
I added what is required as per LP post #2 but taking into account the above and Firmkey 1 for the activity script:
function doPageStart() { if(System.getGlobal("Blu-ray Play/Pause")=="Play") { GUI.widget("PS_FIRM1").label="Play \uF087"; } else { System.setGlobal("Blu-ray Play/Pause","Pause"); GUI.widget("PS_FIRM1").label="Pause \uF085"; } } // function bdPlayPause() { if(System.getGlobal("Blu-ray Play/Pause")=="Play") { CF.widget("Play","Blu-ray","RF Devices").executeActions(); System.setGlobal("Blu-ray Play/Pause","Pause"); GUI.widget("PS_FIRM1").label="Pause \uF085"; } else { CF.widget("Pause","Blu-ray","RF Devices").executeActions(); System.setGlobal("Blu-ray Play/Pause","Play"); GUI.widget("PS_FIRM1").label="Play \uF087"; } }
Now I'm getting the following error from the console:
ProntoScript error: ActionList Error Offending activity script: Tag: 'Blu-ray' Offending line #17: "CF.widget("Pause","Blu-ray","RF Devices").executeActions();"
Any ideas how I can solve this?
Thanks,
Martin
|
|
|
|
|
|
|