@signageos/front-applet 7.1.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +5 -5
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +316 -0
- package/docs/index.md +18 -85
- package/docs/sos/browser.md +210 -0
- package/docs/sos/command.md +68 -0
- package/docs/sos/debug.md +25 -0
- package/docs/sos/deviceInfo.md +49 -0
- package/docs/sos/display.md +21 -0
- package/docs/sos/fileSystem.md +594 -0
- package/docs/sos/hardware/barcodeScanner.md +40 -0
- package/docs/sos/hardware/index.md +64 -0
- package/docs/sos/hardware/led.md +14 -0
- package/docs/sos/index.md +82 -0
- package/docs/sos/input.md +73 -0
- package/docs/sos/monitors.md +21 -0
- package/docs/sos/native/index.md +5 -0
- package/docs/sos/native/mdc.md +240 -0
- package/docs/sos/offline/cache.md +183 -0
- package/docs/sos/offline/index.md +188 -0
- package/docs/sos/osd.md +13 -0
- package/docs/sos/proofOfPlay.md +37 -0
- package/docs/sos/stream.md +960 -0
- package/docs/sos/sync.md +298 -0
- package/docs/sos/video.md +285 -0
- package/docs/sos_management/app.md +102 -0
- package/docs/sos_management/audio.md +29 -0
- package/docs/sos_management/debug.md +33 -0
- package/docs/sos_management/firmware.md +86 -0
- package/docs/sos_management/index.md +212 -0
- package/docs/sos_management/network.md +197 -0
- package/docs/sos_management/os.md +54 -0
- package/docs/sos_management/package.md +33 -0
- package/docs/sos_management/power.md +136 -0
- package/docs/sos_management/proxy.md +41 -0
- package/docs/sos_management/remoteControl.md +72 -0
- package/docs/sos_management/screen.md +198 -0
- package/docs/sos_management/security.md +47 -0
- package/docs/sos_management/time.md +101 -0
- package/docs/sos_management/wifi.md +366 -0
- package/es6/FrontApplet/Browser/Browser.d.ts +61 -8
- package/es6/FrontApplet/Browser/Browser.js +92 -40
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +2 -2
- package/es6/FrontApplet/Browser/events.d.ts +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Browser/messages.d.ts +2 -2
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +52 -23
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -2
- package/es6/FrontApplet/Connect/Connect.d.ts +19 -0
- package/es6/FrontApplet/Connect/Connect.js +162 -0
- package/es6/FrontApplet/Connect/Connect.js.map +1 -0
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +4 -0
- package/es6/FrontApplet/{Stream/streamListeners.js → Connect/IConnectMessage.js} +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.js.map +1 -0
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +28 -18
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +15 -9
- package/es6/FrontApplet/Debug/debugDecorator.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +23 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +36 -27
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js +1 -2
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +25 -3
- package/es6/FrontApplet/Display/Display.js +35 -19
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +3 -1
- package/es6/FrontApplet/Error/AppletCommandError.js +12 -3
- package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletError.js +10 -2
- package/es6/FrontApplet/Error/AppletError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletHardwareError.js +12 -3
- package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -2
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletResourcesError.js +12 -3
- package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletSecurityError.js +12 -3
- package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletStreamError.js +10 -2
- package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletVideoError.js +12 -3
- package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js +4 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorSuggestions.js +1 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -1
- package/es6/FrontApplet/Error/FileNotFoundError.js +10 -2
- package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -1
- package/es6/FrontApplet/Error/SosError.js +5 -1
- package/es6/FrontApplet/Error/SosError.js.map +1 -1
- package/es6/FrontApplet/Error/errorHelper.js +5 -6
- package/es6/FrontApplet/Error/errorHelper.js.map +1 -1
- package/es6/FrontApplet/Exchange/Exchange.js +7 -14
- package/es6/FrontApplet/Exchange/Exchange.js.map +1 -1
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +156 -1
- package/es6/FrontApplet/FileSystem/FileSystem.js +318 -195
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Input/IKeyUpEventListener.js → FileSystem/HashAlgorithm.js} +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.js.map +1 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -1
- package/es6/FrontApplet/FrontApplet.d.ts +57 -4
- package/es6/FrontApplet/FrontApplet.js +129 -49
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +2 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +35 -54
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
- package/es6/FrontApplet/Hardware/Hardware.d.ts +16 -2
- package/es6/FrontApplet/Hardware/Hardware.js +31 -19
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
- package/es6/FrontApplet/Hardware/IHardware.d.ts +2 -2
- package/es6/FrontApplet/Hardware/ISerialPort.d.ts +16 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +1 -1
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +8 -0
- package/es6/FrontApplet/Hardware/Led/Led.js +22 -20
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.d.ts +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.js +15 -23
- package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -1
- package/es6/FrontApplet/Hash/generator.js +2 -3
- package/es6/FrontApplet/Hash/generator.js.map +1 -1
- package/es6/FrontApplet/Iframe/Iframe.d.ts +9 -8
- package/es6/FrontApplet/Iframe/Iframe.js +10 -0
- package/es6/FrontApplet/Iframe/Iframe.js.map +1 -1
- package/es6/FrontApplet/Input/IInput.d.ts +1 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +32 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.js +32 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +19 -3
- package/es6/FrontApplet/Input/Input.js +44 -23
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/Management/App/App.d.ts +48 -10
- package/es6/FrontApplet/Management/App/App.js +45 -30
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/App/IApp.d.ts +3 -1
- package/es6/FrontApplet/Management/Audio/Audio.d.ts +16 -0
- package/es6/FrontApplet/Management/Audio/Audio.js +30 -22
- package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +15 -22
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.d.ts +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +5 -2
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Debug/Debug.d.ts +19 -0
- package/es6/FrontApplet/Management/Debug/Debug.js +37 -30
- package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +37 -10
- package/es6/FrontApplet/Management/Firmware/Firmware.js +34 -30
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/IFirmware.d.ts +1 -2
- package/es6/FrontApplet/Management/IManagement.d.ts +3 -1
- package/es6/FrontApplet/Management/Management.d.ts +106 -15
- package/es6/FrontApplet/Management/Management.js +191 -113
- package/es6/FrontApplet/Management/Management.js.map +1 -1
- package/es6/FrontApplet/Management/Network/INetworkInfo.d.ts +2 -2
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +86 -68
- package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
- package/es6/FrontApplet/Management/OS/OS.d.ts +20 -0
- package/es6/FrontApplet/Management/OS/OS.js +34 -27
- package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +20 -0
- package/es6/FrontApplet/Management/Package/Package.js +37 -22
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.d.ts +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +5 -2
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js +15 -22
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +64 -0
- package/es6/FrontApplet/Management/Power/Power.js +160 -115
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +21 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +41 -35
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +43 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +63 -39
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Screen/IOrientation.d.ts +1 -1
- package/es6/FrontApplet/Management/Screen/Screen.d.ts +127 -0
- package/es6/FrontApplet/Management/Screen/Screen.js +197 -89
- package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
- package/es6/FrontApplet/Management/Security/Security.d.ts +20 -5
- package/es6/FrontApplet/Management/Security/Security.js +33 -31
- package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +31 -5
- package/es6/FrontApplet/Management/Time/Time.js +49 -40
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.d.ts +19 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js +19 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +108 -7
- package/es6/FrontApplet/Management/Wifi/Wifi.js +162 -86
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +1 -1
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js +8 -6
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -3
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +9 -0
- package/es6/FrontApplet/Monitors/Monitors.js +16 -16
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +52 -3
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +79 -38
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +12 -2
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
- package/es6/FrontApplet/OSD/OSD.js +15 -15
- package/es6/FrontApplet/OSD/OSD.js.map +1 -1
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +91 -2
- package/es6/FrontApplet/Offline/Cache/Cache.js +193 -131
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +18 -26
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +5 -5
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/IFileType.d.ts +1 -1
- package/es6/FrontApplet/Offline/ISaveFile.js +5 -2
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/Offline.d.ts +79 -8
- package/es6/FrontApplet/Offline/Offline.js +119 -59
- package/es6/FrontApplet/Offline/Offline.js.map +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +19 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +41 -29
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/FrontApplet/Sensors/Proximity.d.ts +4 -3
- package/es6/FrontApplet/Sensors/Proximity.js +13 -5
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +3 -1
- package/es6/FrontApplet/Sensors/Sensors.js +9 -2
- package/es6/FrontApplet/Sensors/Sensors.js.map +1 -1
- package/es6/FrontApplet/Stream/IStream.d.ts +10 -10
- package/es6/FrontApplet/Stream/IStreamMessage.d.ts +1 -1
- package/es6/FrontApplet/Stream/IStreamTrackInfo.d.ts +2 -2
- package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +262 -163
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Stream/streamEvents.d.ts +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +199 -115
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Sync/syncEvents.d.ts +3 -1
- package/es6/FrontApplet/Sync/syncMessages.js +1 -1
- package/es6/FrontApplet/Sync/syncMessages.js.map +1 -1
- package/es6/FrontApplet/Timing/Timing.d.ts +1 -0
- package/es6/FrontApplet/Timing/Timing.js +9 -2
- package/es6/FrontApplet/Timing/Timing.js.map +1 -1
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +1 -1
- package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +9 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js +16 -18
- package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -1
- package/es6/FrontApplet/Touch/Touch.d.ts +3 -0
- package/es6/FrontApplet/Touch/Touch.js +13 -3
- package/es6/FrontApplet/Touch/Touch.js.map +1 -1
- package/es6/FrontApplet/Validate/Validate.d.ts +5 -5
- package/es6/FrontApplet/Validate/Validate.js +27 -24
- package/es6/FrontApplet/Validate/Validate.js.map +1 -1
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js +7 -2
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +8 -1
- package/es6/FrontApplet/Video/IVideo.d.ts +8 -8
- package/es6/FrontApplet/Video/IVideoEvent.d.ts +1 -1
- package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/IVideoMessage.d.ts +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +196 -137
- package/es6/FrontApplet/Video/Video.js.map +1 -1
- package/es6/FrontApplet/createFrontApplet.js +5 -2
- package/es6/FrontApplet/createFrontApplet.js.map +1 -1
- package/es6/Monitoring/Console/consoleCommands.d.ts +1 -1
- package/es6/Monitoring/Display/displayCommands.d.ts +1 -1
- package/es6/Monitoring/Display/handleDisplayRequests.d.ts +2 -2
- package/es6/Monitoring/Display/handleDisplayRequests.js +5 -15
- package/es6/Monitoring/Display/handleDisplayRequests.js.map +1 -1
- package/es6/Monitoring/EmptyObject.d.ts +1 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +10 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +3 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.d.ts +2 -2
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +41 -45
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.d.ts +2 -2
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js +4 -14
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js.map +1 -1
- package/es6/Monitoring/Management/App/applicationCommands.d.ts +1 -1
- package/es6/Monitoring/Management/App/handleApplicationRequests.d.ts +2 -2
- package/es6/Monitoring/Management/App/handleApplicationRequests.js +9 -19
- package/es6/Monitoring/Management/App/handleApplicationRequests.js.map +1 -1
- package/es6/Monitoring/Management/Audio/audioCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Audio/handleAudioRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js +7 -17
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js.map +1 -1
- package/es6/Monitoring/Management/AutoRecovery/autoRecoveryCommands.d.ts +1 -1
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Debug/debugCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Debug/handleDebugRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js +9 -19
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js.map +1 -1
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +11 -21
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
- package/es6/Monitoring/Management/Network/managementNetworkCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Os/managementOsRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Os/managementOsRequests.js +9 -19
- package/es6/Monitoring/Management/Os/managementOsRequests.js.map +1 -1
- package/es6/Monitoring/Management/Os/osCommands.d.ts +1 -1
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/PeerRecovery/peerRecoveryCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Power/handlePowerRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Power/handlePowerRequests.js +19 -29
- package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/powerCommands.d.ts +1 -1
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.d.ts +2 -2
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js +15 -25
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js.map +1 -1
- package/es6/Monitoring/Management/RemoteControl/remoteControlCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js +19 -29
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
- package/es6/Monitoring/Management/Screen/screenCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Security/handleSecurityCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js +9 -19
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js.map +1 -1
- package/es6/Monitoring/Management/Security/securityCommands.d.ts +1 -1
- package/es6/Monitoring/Management/Time/handleTimeCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Time/handleTimeCommands.js +9 -19
- package/es6/Monitoring/Management/Time/handleTimeCommands.js.map +1 -1
- package/es6/Monitoring/Management/Time/timeCommands.d.ts +1 -1
- package/es6/Monitoring/Management/handleManagementRequests.d.ts +2 -2
- package/es6/Monitoring/Management/handleManagementRequests.js +23 -33
- package/es6/Monitoring/Management/handleManagementRequests.js.map +1 -1
- package/es6/Monitoring/Management/managementCommands.d.ts +1 -1
- package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/Monitoring.js +83 -0
- package/es6/Monitoring/Monitoring.js.map +1 -0
- package/es6/Monitoring/NativeCommands/handleNativeCommands.d.ts +2 -2
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js +5 -15
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js.map +1 -1
- package/es6/Monitoring/NativeCommands/nativeMdcCommands.d.ts +1 -1
- package/es6/Monitoring/OSD/handleOsdRequests.d.ts +2 -2
- package/es6/Monitoring/OSD/handleOsdRequests.js +5 -15
- package/es6/Monitoring/OSD/handleOsdRequests.js.map +1 -1
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.d.ts +2 -2
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js +23 -33
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js.map +1 -1
- package/es6/Monitoring/Video/handleVideoRequests.d.ts +2 -2
- package/es6/Monitoring/Video/handleVideoRequests.js +36 -9
- package/es6/Monitoring/Video/handleVideoRequests.js.map +1 -1
- package/es6/Monitoring/handleMonitoringRequests.d.ts +2 -2
- package/es6/Monitoring/handleMonitoringRequests.js +6 -16
- package/es6/Monitoring/handleMonitoringRequests.js.map +1 -1
- package/es6/Monitoring/monitoringCommands.d.ts +1 -1
- package/es6/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.d.ts +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.d.ts +11 -0
- package/es6/Util/Console/enhancer.js +23 -0
- package/es6/Util/Console/enhancer.js.map +1 -0
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +12 -5
- package/es6/bundle.js.map +1 -1
- package/es6/fpath.d.ts +1 -1
- package/es6/fpath.js +34 -1
- package/es6/fpath.js.map +1 -1
- package/es6/utils/types.d.ts +1 -0
- package/es6/{FrontApplet/Video/IVideoEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +28 -26
- package/CHANGELOG.md +0 -480
- package/docs/applet-basics.md +0 -272
- package/docs/content/js-applet-resources.md +0 -154
- package/docs/content/js-browser.md +0 -163
- package/docs/content/js-command.md +0 -154
- package/docs/content/js-debug.md +0 -36
- package/docs/content/js-device-info.md +0 -56
- package/docs/content/js-display.md +0 -56
- package/docs/content/js-file-system.md +0 -670
- package/docs/content/js-fonts.md +0 -115
- package/docs/content/js-hardware.md +0 -55
- package/docs/content/js-iframes.md +0 -66
- package/docs/content/js-input.md +0 -71
- package/docs/content/js-offline-cache-media-files.md +0 -257
- package/docs/content/js-offline-cache-simple-data.md +0 -129
- package/docs/content/js-osd.md +0 -32
- package/docs/content/js-proof-of-play.md +0 -60
- package/docs/content/js-sensors.md +0 -70
- package/docs/content/js-serial.md +0 -165
- package/docs/content/js-sync-playback.md +0 -384
- package/docs/content/js-video-inputs-internal-ports.md +0 -131
- package/docs/content/js-video-stream.md +0 -618
- package/docs/content/js-video.md +0 -232
- package/docs/management/js-management-application.md +0 -107
- package/docs/management/js-management-audio.md +0 -44
- package/docs/management/js-management-debug.md +0 -40
- package/docs/management/js-management-firmware.md +0 -93
- package/docs/management/js-management-management.md +0 -178
- package/docs/management/js-management-monitoring-commands.md +0 -107
- package/docs/management/js-management-monitors.md +0 -55
- package/docs/management/js-management-native-commands-mdc.md +0 -90
- package/docs/management/js-management-network.md +0 -223
- package/docs/management/js-management-os.md +0 -62
- package/docs/management/js-management-package.md +0 -48
- package/docs/management/js-management-power.md +0 -175
- package/docs/management/js-management-proxy.md +0 -81
- package/docs/management/js-management-remote-control.md +0 -58
- package/docs/management/js-management-screen.md +0 -225
- package/docs/management/js-management-security.md +0 -71
- package/docs/management/js-management-time.md +0 -161
- package/docs/management/js-management-wifi.md +0 -341
- package/es6/FrontApplet/Command/ICommandEventListener.d.ts +0 -6
- package/es6/FrontApplet/Command/ICommandEventListener.js +0 -3
- package/es6/FrontApplet/Command/ICommandEventListener.js.map +0 -1
- package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +0 -5
- package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +0 -1
- package/es6/FrontApplet/Management/Firmware/FirmwareType.d.ts +0 -4
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js +0 -9
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js.map +0 -1
- package/es6/FrontApplet/Stream/streamListeners.d.ts +0 -10
- package/es6/FrontApplet/Stream/streamListeners.js.map +0 -1
- package/es6/FrontApplet/Video/IVideoEventListener.d.ts +0 -5
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
- package/es6/Monitoring/Montoring.js +0 -131
- package/es6/Monitoring/Montoring.js.map +0 -1
package/docs/content/js-fonts.md
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Fonts
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 22.11.2018
|
|
5
|
-
type: js-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
description: "[Content JS API] When working with custom font families, you should use this method that downloads fonts into offline storage and generates the appropriate font-face definition."
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Loading fonts
|
|
15
|
-
When working with custom font families, you should use this method that downloads fonts into offline storage and generates the appropriate font-face definition.
|
|
16
|
-
|
|
17
|
-
## All methods
|
|
18
|
-
|
|
19
|
-
| Method | Description | Supported since |
|
|
20
|
-
| ------ | -------- | :----------: |
|
|
21
|
-
| `addFont()` | Load additionally font into applet cache | 2.0.0 |
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## addFont()
|
|
25
|
-
|
|
26
|
-
Load your custom fonts into the Applet.
|
|
27
|
-
|
|
28
|
-
### Parameters
|
|
29
|
-
| Param | Type | Required | Description |
|
|
30
|
-
| ------- | --------- | :----------: | ------ |
|
|
31
|
-
| `uid` | string | <div class="red">Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
32
|
-
| `append` | HTMLElement | <div class="red">Yes</div> |Reference to HTMLElement where the generated font-face will resist |
|
|
33
|
-
| `fontFamily` | string | <div class="yellow">No</div> | Font family that can be referenced from your CSS |
|
|
34
|
-
| `formats` | object | <div class="yellow">No</div> | URI where these formats will be downloaded from |
|
|
35
|
-
| `fontStretch` | string | <div class="yellow">No</div> | Allows you to make text wider or narrower |
|
|
36
|
-
| `fontStyle` | string | <div class="yellow">No</div> | Apecifies the font stlye for a text |
|
|
37
|
-
|^^|^^|^^| Types: `normal`, `italic`, `oblique`, `initial`, `inherit` |
|
|
38
|
-
| `fontWeight` | string | <div class="yellow">No</div> | Sets how thick or thin characters in text should be displayed |
|
|
39
|
-
| `unicodeRage` | string | <div class="yellow">No</div> | Defines the range of unicode characters the font supports, default value is "U+0-10FFFF"
|
|
40
|
-
|
|
41
|
-
### Formats parameters
|
|
42
|
-
| Param | Type | Required | Description |
|
|
43
|
-
| ------- | --------- | :----------: | ------ |
|
|
44
|
-
| `woff2` | String | <div class="yellow">No</div> | URI points to woff2 file |
|
|
45
|
-
| `woff` | String | <div class="yellow">No</div> | URI points to woff file |
|
|
46
|
-
| `svg` | String | <div class="yellow">No</div> | URI points to svg file |
|
|
47
|
-
| `ttf` | String | <div class="yellow">No</div> | URI points to ttf file |
|
|
48
|
-
| `eot` | String | <div class="yellow">No</div> | URI points to eot file |
|
|
49
|
-
|
|
50
|
-
### Javascript Example
|
|
51
|
-
```javascript
|
|
52
|
-
await sos.offline.addFont({
|
|
53
|
-
uid: 'my-tondo-font',
|
|
54
|
-
fontFamily: 'tondo',
|
|
55
|
-
fontStretch: 'normal',
|
|
56
|
-
fontStyle: 'normal',
|
|
57
|
-
fontWeight: 'bold',
|
|
58
|
-
unicodeRange: 'U+0-10FFFF',
|
|
59
|
-
formats: {
|
|
60
|
-
woff2: 'https://mycms.signageos.io/fonts/tondo-woff2',
|
|
61
|
-
eot: 'https://mycms.signageos.io/fonts/tondo-eot',
|
|
62
|
-
ttf: 'https://mycms.signageos.io/fonts/tondo-ttf',
|
|
63
|
-
svg: 'https://mycms.signageos.io/fonts/tondo-svg',
|
|
64
|
-
woff: 'https://mycms.signageos.io/fonts/tondo-woff',
|
|
65
|
-
},
|
|
66
|
-
append: document.body,
|
|
67
|
-
})
|
|
68
|
-
.then(() => {
|
|
69
|
-
console.log('Generated');
|
|
70
|
-
});
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
:::info
|
|
74
|
-
Most properties follow the official CSS properties found on [Mozilla Developer Page](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face)
|
|
75
|
-
:::
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:::note[GitHub Example]
|
|
79
|
-
[Example of Applet that load custom fonts](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/fonts)
|
|
80
|
-
:::
|
|
81
|
-
|
|
82
|
-
## Usage with Typescript
|
|
83
|
-
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
84
|
-
|
|
85
|
-
```typescript
|
|
86
|
-
addFont(
|
|
87
|
-
uid: string;
|
|
88
|
-
append: HTMLElement;
|
|
89
|
-
fontFamily: string;
|
|
90
|
-
formats: {
|
|
91
|
-
woff2: string;
|
|
92
|
-
woff?: string;
|
|
93
|
-
svg?: string;
|
|
94
|
-
ttf?: string;
|
|
95
|
-
svg?: string;
|
|
96
|
-
},
|
|
97
|
-
fontStretch?: string;
|
|
98
|
-
fontStyle?: 'normal' | 'italic' | 'oblique' | 'initial' | 'inherit';
|
|
99
|
-
fontWeight?: string;
|
|
100
|
-
unicodeRange?: string;
|
|
101
|
-
);
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## Errors
|
|
105
|
-
Although we are doing our best, following errors may occur when working with the Applet Resources.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
| Code | Type | Message |
|
|
109
|
-
| ---- | ---- | ------- |
|
|
110
|
-
| 40105 | AppletResourcesError | Already loading file: `$$FILE_NAME$$` |
|
|
111
|
-
|^^|^^| Please, check your code for multiple occurrences of addFile/s methods. |
|
|
112
|
-
| 40106 | AppletResourcesError | Already existing file: `$$FILE_NAME$$` |
|
|
113
|
-
|^^|^^| Please, check your code for occurrences of addFile/s methods on lines before this error. |
|
|
114
|
-
| 49901 | AppletResourceError | Please, check if the used URL is correct. |
|
|
115
|
-
| 49902 | FileNotFoundError | File was not found `$$FILE_ID$$`
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Hardware
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 22.11.2018
|
|
5
|
-
type: js-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- philips
|
|
11
|
-
- led
|
|
12
|
-
- js_api
|
|
13
|
-
description: "[Content JS API] Some platforms support special hardware, that can be easily managed by JS using sOS hardware API."
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# Hardware
|
|
17
|
-
Some platforms support special hardware, that can be easily managed by JS using sOS hardware API.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## LED
|
|
21
|
-
|
|
22
|
-
Some Philips brand devices have LED lights built into them. The color of lights can be changed or disabled:
|
|
23
|
-
|
|
24
|
-
### All methods
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
| Method | Description | Supported since |
|
|
28
|
-
| ------ | -------- | :---------: |
|
|
29
|
-
| `setColor()` | Method supports a string in hexa format to display color of LED light or null value to not be disabled | 1.0.1
|
|
30
|
-
|
|
31
|
-
### setColor()
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
| Param | Type | Required | Description |
|
|
35
|
-
| ------ | ------ | :--------: | -------- |
|
|
36
|
-
| `color` | string | <div class="red">Yes</div> | Color of LED to be set in CSS hexa format `#000000`. To disable LED pass null value instead.
|
|
37
|
-
|
|
38
|
-
#### Javascript example
|
|
39
|
-
```javascript
|
|
40
|
-
sos.hardware.led.setColor("#00FF00"); // For GREEN light
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
:::note[GitHub Example]
|
|
44
|
-
[Example of Applet with LED usage](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/hardware-led)
|
|
45
|
-
:::
|
|
46
|
-
|
|
47
|
-
## Errors
|
|
48
|
-
Although we are doing our best, following errors may occur when working with the hardware.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
| Code | Type | Message |
|
|
52
|
-
| ---- | ---- | ------- |
|
|
53
|
-
| 50601 | InternalHardwareError | Unexpected error occurred when working with hardware. |
|
|
54
|
-
| 40601 | AppletHardwareError | Color must be string |
|
|
55
|
-
| 40602 | AppletHardwareError | Color must be in format #000000 or null, allowed are `/^[a-zA-Z0-9\.\-_]+$/g`
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Iframes
|
|
3
|
-
author: Josef Král
|
|
4
|
-
date: 7.9.2020
|
|
5
|
-
type: js-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
- iframe
|
|
12
|
-
description: "[Content JS API] We **do not recommend** to use iframes inside your Applet. However, if you have to use it, you can add full support of the sOS JS API to every one of your iframe. Just add the JS snippet script below to every page load in iframe before ending </body>. Everything will be prepared, and you can call the very same methods as described for Applet."
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Iframes
|
|
16
|
-
We **recommend limiting the use of iframes** inside your Applet to avoid performance hiccups. However, if you you are leveraging iframes, you can also add full support of the sOS JS API within the iframe context. Add the JS snippet script below to every page load in iframe before ending </body>. Everything will be prepared, and you can call the very same methods as described for Applet.
|
|
17
|
-
|
|
18
|
-
:::warning
|
|
19
|
-
The signageOS Snippet and API works **ONLY** if the iframe is served from the display's internal storage - `<iframe src="file://...`. If your iframe is served from a live URL - `<iframe src="https://your-iframe-url"...` the snippet and signageOS API will **NOT** work. This is a security limitation to prevent random site took advantage of the API and alter the display behavior. There is a simple way to [save and load your iframe from the internal storage](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/iframes). Just make sure you are using full paths in your iframe for linking javascripts and css instead of the relative ones.
|
|
20
|
-
|
|
21
|
-
If your device can not load a file stored in local storage, such as an html, you can try to use an alternative instead of python to zip the file when you are preparing the applet.
|
|
22
|
-
:::
|
|
23
|
-
|
|
24
|
-
## Create applet
|
|
25
|
-
First applet, what will be as iframe in main applet. There is also **required event listener** to work iframes in an applet. Insert this snippet on bottom of iframe applet code.
|
|
26
|
-
```javascript
|
|
27
|
-
<script type="text/javascript">
|
|
28
|
-
// sOS JS API loader
|
|
29
|
-
!function(){window.addEventListener("message",function(t){
|
|
30
|
-
if(t.source===window.parent&&"hug.api_js_uri"===t.data.type) {
|
|
31
|
-
var e=t.data.uri;
|
|
32
|
-
if(!e)throw new Error("Front applet JS is not set.");
|
|
33
|
-
var a=document.createElement("script");
|
|
34
|
-
a.setAttribute("type","text/javascript"),a.setAttribute("src",e),a.onload=a.onreadystatechange=function(){
|
|
35
|
-
this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(window.sos.apiJsUri=t.data.uri,window.dispatchEvent(new Event("hug.loaded")),window.dispatchEvent(new Event("sos.loaded")))},document.head.appendChild(a)}}),window.parent.postMessage({type:"hug_loader.ready"},"*")}();
|
|
36
|
-
</script>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
:::note[GitHub Example]
|
|
40
|
-
[Applet that will be in Iframe](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/iframes)
|
|
41
|
-
:::
|
|
42
|
-
|
|
43
|
-
## Finally, use created applet in another applet as iframe.
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
window.addEventListener('sos.loaded', () => {
|
|
47
|
-
sos.onReady().then(() => {
|
|
48
|
-
const contentElement = document.getElementById('index');
|
|
49
|
-
const iframeElement = document.getElementById('iframe');
|
|
50
|
-
sos.onReady();
|
|
51
|
-
|
|
52
|
-
// Download created iframe into main applet
|
|
53
|
-
const iframeUri = sos.config.iframeUri || 'https://raw.githubusercontent.com/signageos/applet-examples/master/examples/iframes/iframe.html';
|
|
54
|
-
const { filePath } = sos.offline.cache.loadOrSaveFile('iframe.html', iframeUri);
|
|
55
|
-
|
|
56
|
-
// Setup iframe
|
|
57
|
-
contentElement.innerHTML = '';
|
|
58
|
-
iframeElement.src = filePath;
|
|
59
|
-
iframeElement.style.display = 'block';
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
:::note[GitHub Example]
|
|
65
|
-
[How to use Iframes in Applet](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/iframes)
|
|
66
|
-
:::
|
package/docs/content/js-input.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: IR Remote Control Input
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 22.11.2018
|
|
5
|
-
type: js-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
description: "[Content JS API] For the specific logic of an application (games for example), binding the remote control inputs can be helpful."
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# IR Remote Control Input
|
|
15
|
-
For the specific logic of an application (games for example), binding the remote control inputs can be helpful.
|
|
16
|
-
Only a subset of all remote control keys is supported on the specific device. Only numerical digits are guaranteed to be supported.
|
|
17
|
-
This feature must be tested by users on real devices.
|
|
18
|
-
|
|
19
|
-
## Event onKeyUp()
|
|
20
|
-
|
|
21
|
-
### Parameters
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
| Parameters | Type | Required | Description | Supported Since |
|
|
25
|
-
| ------ | ------ | :--------: | -------- | :-----: |
|
|
26
|
-
| event (in listener) | Object | <div class="red">Yes</div> | Plain JS object containing keyCode as number and keyName as string and type of event (always keyup string) | 1.3.0
|
|
27
|
-
|
|
28
|
-
### Javascript syntax
|
|
29
|
-
```javascript
|
|
30
|
-
await sos.input.onKeyUp((keyUpEvent) => {
|
|
31
|
-
console.log(`Pressed: ${keyUpEvent.keyCode} (${keyUpEvent.keyName})`);
|
|
32
|
-
});
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Map of keyCodes:
|
|
36
|
-
| Name | Key code | Name | Key Code |
|
|
37
|
-
| ---- | :----: | ----- | :----: |
|
|
38
|
-
| UNKNOWN | 0 | OK | 15 |
|
|
39
|
-
| NUM_0 | 1 | YELLOW | 16 |
|
|
40
|
-
| NUM_1 | 2 | BLUE | 17 |
|
|
41
|
-
| NUM_2 | 3 | RED | 18 |
|
|
42
|
-
| NUM_3 | 4 | GREEN | 19 |
|
|
43
|
-
| NUM_4 | 5 | VOLUME_DOWN | 20 |
|
|
44
|
-
| NUM_5 | 6 | VOLUME_UP | 30 |
|
|
45
|
-
| NUM_6 | 7 | POWER | 31 |
|
|
46
|
-
| NUM_7 | 8 | POWER_OFF | 32 |
|
|
47
|
-
| NUM_8 | 9 | HOME | 33 |
|
|
48
|
-
| NUM_9 | 10 | EXIT | 34 |
|
|
49
|
-
| ARROW_LEFT | 11 | RETURN | 35 |
|
|
50
|
-
| ARROW_UP | 12 | BACKSPACE | 36 |
|
|
51
|
-
| ARROW_RIGHT | 13 | LOCK | 37 |
|
|
52
|
-
| ARROW_DOWN | 14 | | |
|
|
53
|
-
|
|
54
|
-
## Usage with Typescript
|
|
55
|
-
You can also use all these methods with [signageOS TypeScript](https://docs.signageos.io/hc/en-us/articles/4405069154962#signageos-typescript).
|
|
56
|
-
|
|
57
|
-
```typescript
|
|
58
|
-
interface IKeyUpEvent {
|
|
59
|
-
type: 'keyup';
|
|
60
|
-
keyCode: number;
|
|
61
|
-
keyName: string;
|
|
62
|
-
}
|
|
63
|
-
interface IKeyUpEventListener {
|
|
64
|
-
(event: IKeyUpEvent): void;
|
|
65
|
-
}
|
|
66
|
-
onKeyUp(listener: IKeyUpEventListener): void;
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
:::note[GitHub Example]
|
|
70
|
-
[IR Input handling](https://github.com/signageos/applet-examples/tree/master/examples/content-js-api/remote-control)
|
|
71
|
-
:::
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Offline Cache for media files
|
|
3
|
-
author: Miroslav Behina
|
|
4
|
-
date: 22.11.2018
|
|
5
|
-
type: js-api
|
|
6
|
-
tags:
|
|
7
|
-
- applet
|
|
8
|
-
- applet_api
|
|
9
|
-
- api
|
|
10
|
-
- js_api
|
|
11
|
-
description: "[Content JS API] File API allows files (video files, media files etc.) to be stored for offline usage."
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Offline Cache for media files (File API)
|
|
15
|
-
File API allows files (video files, media files etc.) to be stored for offline usage.
|
|
16
|
-
|
|
17
|
-
## All methods
|
|
18
|
-
|
|
19
|
-
| Methods | Description | Supported since |
|
|
20
|
-
| ------ | -------- | :-------------: |
|
|
21
|
-
| `listFiles()` | Return list of files of existing directory | 2.0.0 |
|
|
22
|
-
| `saveFile()` | Download file to selected directory | 1.0.3 |
|
|
23
|
-
| `loadFile()` | Load file from cache | 1.0.3 |
|
|
24
|
-
| `loadOrSaveFile()` | Download and load file from directory | 1.0.9 |
|
|
25
|
-
| `deleteFile()` | Delete file from directory | 2.0.0 |
|
|
26
|
-
| `getChecksumFile()` | Get checksum of a file | 2.0.0 |
|
|
27
|
-
| `validateChecksumFile()` | Validate that file's checksum matches expected value | 2.0.0 |
|
|
28
|
-
| `decompressFile()` | Decompress a compressed file or archive | 2.1.0 |
|
|
29
|
-
|
|
30
|
-
:::warning
|
|
31
|
-
Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
32
|
-
:::
|
|
33
|
-
|
|
34
|
-
## listFiles()
|
|
35
|
-
This method is used to get a list of uids of all files, saved by the current applet.
|
|
36
|
-
|
|
37
|
-
### Javascript example
|
|
38
|
-
```javascript
|
|
39
|
-
// List uids of all files
|
|
40
|
-
await sos.offline.cache.listFiles().then((fileUids) => {
|
|
41
|
-
console.log("Loaded", fileUids);
|
|
42
|
-
}).catch((error) => { console.error(error); });
|
|
43
|
-
```
|
|
44
|
-
### Returns
|
|
45
|
-
```javascript
|
|
46
|
-
["video-3", "video-2", "video-1", "image-9", "image-8", "image-7", "image-6", "image-5", "image-4", "image-3", "image-2", "image-13", "image-12", "image-11", "image-10", "image-1"]
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## saveFile()
|
|
51
|
-
Method `saveFile()` is used to save files from remote a destination into the device internal memory.
|
|
52
|
-
|
|
53
|
-
### Parameters
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| Param | Type | Required | Description |
|
|
57
|
-
| ---------------- | --------------------- | :------: |---------------------------------------------- |
|
|
58
|
-
| `uid` | string | <div class="red">Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters, slash / is supported since Front-display version 6.0.0 |
|
|
59
|
-
| `uri` | string | <div class="red">Yes</div> | URL address to retrieve the file |
|
|
60
|
-
| `headers` | object | <div class="yellow">No</div> | Key, value pairs of HTTP headers to send along with the request. Used when the target file is protected by a password or if any other specific headers are needed to access it.
|
|
61
|
-
|
|
62
|
-
:::warning
|
|
63
|
-
`headers` has to be a JSON object. If you are passing the value, make sure you use `JSON.parse()`.
|
|
64
|
-
:::
|
|
65
|
-
|
|
66
|
-
:::warning
|
|
67
|
-
`uid` should have the same file extension (e.g.: mp4, svg, jpg) as the original file.
|
|
68
|
-
:::
|
|
69
|
-
|
|
70
|
-
### Javascript example
|
|
71
|
-
```javascript
|
|
72
|
-
// Example saving files into internal memory, unique id could be salted md5 hash, uri directs to our CDN
|
|
73
|
-
await sos.offline.cache.saveFile('9d66725ba2105f1833731ade5b7f334e.mp4', 'https://cdn.my-cms.com/files/video.mp4', { "Authorization": "Basic Zm9vOmJhcg==" })
|
|
74
|
-
.then(() => { console.log('Saved'); })
|
|
75
|
-
.catch((error) => { console.error(error); });
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
:::info
|
|
79
|
-
Local device file path differs from device to device. It can point to file:// or http://localhost etc.
|
|
80
|
-
:::
|
|
81
|
-
|
|
82
|
-
## loadFile()
|
|
83
|
-
Method `loadFile()` is used for individual file retrieval from internal memory.
|
|
84
|
-
|
|
85
|
-
### Parameters
|
|
86
|
-
|
|
87
|
-
| Param | Type | Required | Description |
|
|
88
|
-
| --------- | ------------ | :---------: | --------------- |
|
|
89
|
-
| `uid` | string | <div class="red">Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
90
|
-
|
|
91
|
-
:::warning
|
|
92
|
-
`uid` should have the same file extension (e.g.: mp4, svg, jpg) as the original file.
|
|
93
|
-
:::
|
|
94
|
-
|
|
95
|
-
### Javascript Example
|
|
96
|
-
```javascript
|
|
97
|
-
await sos.offline.cache.loadFile('9d66725ba2105f1833731ade5b7f334e.mp4')
|
|
98
|
-
.then((file) => { console.log('Loaded', file); })
|
|
99
|
-
.catch((error) => { console.error(error); });
|
|
100
|
-
|
|
101
|
-
// Logs into console
|
|
102
|
-
{
|
|
103
|
-
filePath: '/real/device/path/to/file/9d66725ba2105f1833731ade5b7f334e.mp4',
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
:::info
|
|
108
|
-
Local device file path differs from device to device. It can point to file:// or http://localhost etc.
|
|
109
|
-
:::
|
|
110
|
-
|
|
111
|
-
### Returns
|
|
112
|
-
* SUCCESS: File object
|
|
113
|
-
* FAIL: No file of such uid is available, it throws error into promise
|
|
114
|
-
|
|
115
|
-
## loadOrSaveFile()
|
|
116
|
-
Method `loadOrSaveFile()` is used for individual file retrieval & save in case when file is not saved in local storage yet.
|
|
117
|
-
To get file from internal memory & save it when not yet exists we prepared `loadOrSaveFile()` method:
|
|
118
|
-
|
|
119
|
-
:::info
|
|
120
|
-
* The file URI has to return the file. If your URI leads to a 303 redirect (e.g. from http to http**s**), the API will not work.
|
|
121
|
-
* Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
122
|
-
:::
|
|
123
|
-
|
|
124
|
-
### Parameters
|
|
125
|
-
|
|
126
|
-
| Param | Type | Required | Description |
|
|
127
|
-
| --------------- | -------------- | :-------: |---------------------------------------------- |
|
|
128
|
-
| `uid` | string | <div class="red">Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
129
|
-
| `uri` | string | <div class="red">Yes</div> | URL address where to get the file |
|
|
130
|
-
| `headers` | object | <div class="yellow">No</div> | Key, value pairs of HTTP headers to send along with the request. Used when the target file is protected by a password or if any other specific headers are needed to access it. |
|
|
131
|
-
|
|
132
|
-
:::warning
|
|
133
|
-
`uid` should have the same file extension (e.g.: mp4, svg, jpg) as the original file.
|
|
134
|
-
:::
|
|
135
|
-
|
|
136
|
-
### Javascript Example
|
|
137
|
-
```javascript
|
|
138
|
-
await sos.offline.cache.loadOrSaveFile('9d66725ba2105f1833731ade5b7f334e.mp4', 'https://cdn.my-cms.com/files/video.mp4', { "Authorization": "Basic Zm9vOmJhcg==" })
|
|
139
|
-
.then((file) => { console.log('Loaded or Saved', file); })
|
|
140
|
-
.catch((error) => { console.error(error); });
|
|
141
|
-
|
|
142
|
-
// Logs into console
|
|
143
|
-
{
|
|
144
|
-
filePath: '/real/device/path/to/file/9d66725ba2105f1833731ade5b7f334e.mp4',
|
|
145
|
-
}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
:::info
|
|
149
|
-
Local device file path differs from device to device. It can point to file:// or http://localhost etc.
|
|
150
|
-
:::
|
|
151
|
-
|
|
152
|
-
### Returns
|
|
153
|
-
* SUCCESS: File object
|
|
154
|
-
* FAIL: No file of such uid is available, it will download it to local storage & then return saved file.
|
|
155
|
-
|
|
156
|
-
:::note[GitHub Example]
|
|
157
|
-
- [Example of managing offline files](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/offline-files)
|
|
158
|
-
- [Example of playing video in loop](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/video-loop-offline)
|
|
159
|
-
:::
|
|
160
|
-
|
|
161
|
-
## deleteFile()
|
|
162
|
-
Method `deleteFile()` is used for deleting previously saved file from internal memory.
|
|
163
|
-
|
|
164
|
-
### Parameters
|
|
165
|
-
|
|
166
|
-
| Param | Type | Required | Description |
|
|
167
|
-
| -------------- | -------------| :-------: |-------------------------------------------- |
|
|
168
|
-
| `uid` | string | <div class="red">Yes</div> | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
169
|
-
|
|
170
|
-
### Javascript example
|
|
171
|
-
```javascript
|
|
172
|
-
await sos.offline.cache.deleteFile('9d66725ba2105f1833731ade5b7f334e.mp4')
|
|
173
|
-
.then(() => { console.log('Deleted'); })
|
|
174
|
-
.catch((error) => { console.error(error); });
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## getChecksumFile()
|
|
178
|
-
Method `getChecksumFile()` is used for getting the checksum of file from internal memory.
|
|
179
|
-
|
|
180
|
-
### Parameters:
|
|
181
|
-
| Param | Type | Required | Description |
|
|
182
|
-
| -------------- | ----------------| :-------: |-------------------------------------------- |
|
|
183
|
-
| `uid` | string | <div class="red">Yes</div> |Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
184
|
-
| `hashType` | string | <div class="red">Yes</div> |Type of checksum has. Currently supported hashType is just md5 |
|
|
185
|
-
|
|
186
|
-
### Javascript example
|
|
187
|
-
```javascript
|
|
188
|
-
await sos.offline.cache.getChecksumFile('9d66725ba2105f1833731ade5b7f334e.mp4', 'md5')
|
|
189
|
-
.then((checksum) => { console.log('MD5 checksum is ' + checksum); })
|
|
190
|
-
.catch((error) => { console.error(error); });
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
:::note[GitHub Example]
|
|
194
|
-
[Example of checking checksum of file](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/md5-checksum)
|
|
195
|
-
:::
|
|
196
|
-
|
|
197
|
-
## validateChecksumFile()
|
|
198
|
-
Method `validateChecksumFile()` is used for validating the checksum of the previously saved file in from internal memory.
|
|
199
|
-
|
|
200
|
-
### Parameters:
|
|
201
|
-
|
|
202
|
-
| Param | Type | Required | Description |
|
|
203
|
-
| -------------- | -----------------| :-------: |-------------------------------------------- |
|
|
204
|
-
| `uid` | string | <div class="red">Yes</div> |Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters |
|
|
205
|
-
| `hash` | string | <div class="red">Yes</div> |Hexa decimal representation of file checksum to be validated against |
|
|
206
|
-
| `hashType` | string | <div class="red">Yes</div> |Type of checksum hash. Currently supported hashType is just md5 |
|
|
207
|
-
|
|
208
|
-
### Javascript example
|
|
209
|
-
```javascript
|
|
210
|
-
// validate file checksum against internal memory
|
|
211
|
-
await sos.offline.cache.validateChecksumFile(uid, '23dc936691f46d2bbef631f18a02f94f', 'md5')
|
|
212
|
-
.then((valid) => { console.log('MD5 checksum is ' + (valid ? 'valid' : 'not valid')); })
|
|
213
|
-
.catch((error) => { console.error(error); });
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
## decompressFile() (ZIP)
|
|
217
|
-
Method `decompressFile()` is used to decompress (extract ZIP) file previously saved to internal memory.
|
|
218
|
-
|
|
219
|
-
### Parameters
|
|
220
|
-
|
|
221
|
-
| Param | Type | Required | Description |
|
|
222
|
-
| --------------- | ------------ | :-------: |----------------------------------------------------------------- |
|
|
223
|
-
| `zipUid` | string | <div class="red">Yes</div> | Unique file identifier of a previously downloaded ZIP file |
|
|
224
|
-
| `destinationUid` | string | <div class="red">Yes</div> | Unique directory identifier (prefix of file) to extract ZIP file to |
|
|
225
|
-
| `method` | string | <div class="red">Yes</div> | Method of compression algorithm, currently only zip is supported |
|
|
226
|
-
|
|
227
|
-
### Javascript example
|
|
228
|
-
```javascript
|
|
229
|
-
// validate file checksum against internal memory
|
|
230
|
-
await sos.offline.cache.decompressFile(zipUid, destinationDirectoryUid, 'zip')
|
|
231
|
-
.then(() => { console.log('ZIP file extracted'); })
|
|
232
|
-
.catch((error) => { console.error(error); });
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
:::note[GitHub Example]
|
|
236
|
-
- [Example of decompressing ZIP files](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/offline-zip-decompress
|
|
237
|
-
- [Managing files](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/file-system)
|
|
238
|
-
- [Sample applet from Box](https://github.com/signageos/applet-examples/blob/master/index.html)
|
|
239
|
-
- All other examples are available in Knowledge Base under [Applet Examples](https://github.com/signageos/applet-examples/)
|
|
240
|
-
:::
|
|
241
|
-
|
|
242
|
-
## Errors
|
|
243
|
-
Although we are doing our best, following errors may occur when working with the offline cache.
|
|
244
|
-
|
|
245
|
-
| Code | Type | Message |
|
|
246
|
-
| ---- | ---- | ------- |
|
|
247
|
-
| 40105 | AppletResourceError | Already loading file: `$$FILE_NAME$$` |
|
|
248
|
-
|^^|^^| Please, check your code for multiple occurrences of addFile/s methods. |
|
|
249
|
-
| 40106 | AppletResourceError | Already existing file: `$$FILE_NAME$$` |
|
|
250
|
-
|^^|^^| Please, check your code for occurrences of addFile/s methods on lines before this error. |
|
|
251
|
-
| 49902 | FileNotFoundError | File was not found `$$FILE_ID$$` |
|
|
252
|
-
| 40901 | AppletOfflineCacheError | Uid contains invalid characters, allowed: `$$ALLOWED_CHARS$$`, got `$$ACTUAL_UID$$` |
|
|
253
|
-
|^^|^^| Please, check if the used URL is correct. |
|
|
254
|
-
| 40902 | AppletOfflineCacheError | Invalid headers `$$HEADERS$$` |
|
|
255
|
-
| 50901 | InternalOfflineCacheError | Couldn't not read the files from the offline cache. |
|
|
256
|
-
| 50902 | InternalOfflineCacheError | File wasn't saved correctly. |
|
|
257
|
-
| 50903 | InternalOfflineCacheError | Reading the file from the offline cache failed. |
|