J A V A S C R I P T I N T E G R A T I O N S A M P L E FOR ePero®COCKPIT CO2 API
Test 1: Play ads from custom playlist (.json) Send JSON file to API and play ads. This playlist is valid only for current session.
JSON example:
Test 2: Play ads from custom playlist (JavaScript) Send/pass ads/commercial content from JavaScript, see code for details. This playlist is valid only for current session.
Test 3: Play ads from default playlist Play default playlist. The location of default playlist: "[C:\Program Files (x86)]\SETCCE\ePero\etc\co2playlist.txt" and cannot be moved.
Test 4: Show WEB page WEB page opens on signature display. If WEB URL already exists in configuration file co2.properties, it will be checked in ePero®COCKPIT Toolbox. If not, new checkbox will be added. This checkbox is checked and valid only for the current session. The location of configuration file: "[C:\Program Files (x86)]\SETCCE\ePero\etc\co2.properties" and cannot be moved.
Web Display name:
Web URL:
Test 5: Show Survey Survey page opens in ePero®COCKPIT Preview window and on signature display. If survey URL exists in configuration file co2.properties, it will be checked in ePero® COCKPIT Toolbox. If not, new checkbox will be added. This checkbox is checked and valid only for the current session. The location of configuration file: "[C:\Program Files (x86)]\SETCCE\ePero\etc\co2.properties" and cannot be moved or renamed.
Survey Display name:
Survey URL:
Test 6: Show Anonymous Survey Survey page opens only on signature display. If anonymous survey URL already exists in configuration file co2.properties", it will be also checked in ePero® COCKPIT Toolbox. If not, new checkbox will be added. This checkbox is checked and vaild only for the current session. The location of configuration file: "[C:\Program Files (x86)]SETCCE\ePero\etc\co2.properties" and cannot be moved or renamed.
Anonymous Survey Display name:
Anonymous Survey URL:
Test 7: Upload and show PDF document Uploads and shows PDF document in ePero®COCKPIT Preview window and on signature display. For choosing PDF document from file system, the standard Open dialog window opens.
Test 8: Show PDF document (input is base64 encoded string) Passes PDF document as base64 encoded string format and displays it in ePero®COCKPIT Preview window and on signature display.