@signageos/front-applet 7.2.0 → 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 +8 -4
- 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 +91 -39
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +49 -20
- 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 +3 -0
- package/es6/FrontApplet/Connect/Connect.js +55 -7
- package/es6/FrontApplet/Connect/Connect.js.map +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +1 -1
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +27 -17
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +13 -7
- 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 +4 -0
- 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 +316 -193
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Stream/streamListeners.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 +55 -4
- package/es6/FrontApplet/FrontApplet.js +124 -47
- 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 +20 -18
- 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 +1 -2
- 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 +43 -22
- 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.js +4 -1
- 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 +1 -1
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +85 -67
- 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.js +4 -1
- 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/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 +18 -0
- 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/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 +51 -2
- 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 +192 -130
- 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 +17 -25
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +4 -4
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +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 +75 -4
- package/es6/FrontApplet/Offline/Offline.js +116 -56
- 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 +12 -4
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +2 -0
- 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/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +229 -130
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +196 -112
- 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.js +14 -11
- 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.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +161 -102
- 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/{Montoring.js → Monitoring.js} +12 -23
- 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/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/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.js +1 -2
- package/es6/Util/Console/enhancer.js.map +1 -1
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +6 -3
- package/es6/bundle.js.map +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/Input/IKeyUpEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +27 -25
- package/CHANGELOG.md +0 -484
- 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 +0 -3
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
- package/es6/Monitoring/Montoring.js.map +0 -1
package/docs/sos/sync.md
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# sync
|
|
2
|
+
|
|
3
|
+
The `sos.sync` API groups together methods for synchronization of multiple devices. Devices are synchronized either through an external
|
|
4
|
+
server or one of the devices becomes a master device.
|
|
5
|
+
|
|
6
|
+
## Methods
|
|
7
|
+
|
|
8
|
+
### broadcastValue()
|
|
9
|
+
|
|
10
|
+
The `broadcastValue()` method sends a key-value pair to all other devices in a specified group.
|
|
11
|
+
|
|
12
|
+
```ts expandable
|
|
13
|
+
broadcastValue({ groupName, key, value }: {
|
|
14
|
+
groupName?: string;
|
|
15
|
+
key: string;
|
|
16
|
+
value: any;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Possible errors
|
|
21
|
+
|
|
22
|
+
The method throws an error if the value can't be sent
|
|
23
|
+
|
|
24
|
+
<Separator />
|
|
25
|
+
|
|
26
|
+
### cancelWait()
|
|
27
|
+
|
|
28
|
+
The `cancelWait()` method aborts a wait on all devices in a group. Sometimes it's necessary to cancel a pending wait. One such
|
|
29
|
+
situation would be when the group has to make a sudden change in content or another behavior but there's a risk that part of the group
|
|
30
|
+
already called wait() and is waiting for the rest but the rest will never call it at this point. In order to gracefully cleanup any
|
|
31
|
+
pending activity, use this method.
|
|
32
|
+
|
|
33
|
+
Any pending wait will be canceled and the promise will be rejected with an error.
|
|
34
|
+
|
|
35
|
+
```ts expandable
|
|
36
|
+
cancelWait(groupName?: string): Promise<void>;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Example
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
sos.sync.wait('someData', 'someRandomNameGroup').catch((err) => {
|
|
43
|
+
// this will happend once cancelWait is called
|
|
44
|
+
console.error('wait failed', err);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// this will cause above wait promise to reject
|
|
48
|
+
await sos.sync.cancelWait('someRandomNameGroup');
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
<Separator />
|
|
52
|
+
|
|
53
|
+
### close()
|
|
54
|
+
|
|
55
|
+
The `close()` method disconnects the device from synchronization server and other devices. Recommended to call this method after the
|
|
56
|
+
synchronization is not required any longer.
|
|
57
|
+
|
|
58
|
+
```ts expandable
|
|
59
|
+
close(): Promise<void>;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<Separator />
|
|
63
|
+
|
|
64
|
+
### connect(options)
|
|
65
|
+
|
|
66
|
+
The `connect()` method initializes the device and connects it to the rest of the devices. This initializes the connection and is
|
|
67
|
+
mandatory to call, since synchronization is an optional feature and doesn’t get initialized by default to save resources and bandwidth.
|
|
68
|
+
You can optionally specify a custom sync server URI in case you are running the sync server in a custom location.
|
|
69
|
+
|
|
70
|
+
:::info
|
|
71
|
+
|
|
72
|
+
All devices, that should be synchronized together, must select the same engine. Otherwise they won't be able to communicate with each
|
|
73
|
+
other.
|
|
74
|
+
|
|
75
|
+
:::
|
|
76
|
+
|
|
77
|
+
```ts expandable
|
|
78
|
+
connect(options?: ConnectSyncServerOptions | ConnectP2PLocalOptions | ConnectUdpOptions): Promise<void>;
|
|
79
|
+
// show-more
|
|
80
|
+
interface ConnectSyncServerOptions {
|
|
81
|
+
engine?: SyncEngine.SyncServer;
|
|
82
|
+
uri?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
enum SyncEngine {
|
|
86
|
+
/** Use external sync server. Device will connect to the server via websocket. */
|
|
87
|
+
SyncServer = "sync-server",
|
|
88
|
+
/** Synchronize directly with other devices in the local network via UDP and TCP. */
|
|
89
|
+
P2PLocal = "p2p-local",
|
|
90
|
+
/**
|
|
91
|
+
* Synchronize directly with other devices in the local network via UDP.
|
|
92
|
+
* @deprecated use {@link P2PLocal}
|
|
93
|
+
*/
|
|
94
|
+
Udp = "udp"
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface ConnectP2PLocalOptions {
|
|
98
|
+
engine: SyncEngine.P2PLocal;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @deprecated use SyncEngine.P2PLocal and ConnectP2PLocalOptions */
|
|
102
|
+
interface ConnectUdpOptions {
|
|
103
|
+
engine: SyncEngine.Udp;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Params
|
|
109
|
+
|
|
110
|
+
| Name | Type | Description |
|
|
111
|
+
|----------------------------|------------------|----------------------------------------------------------------------------------------------------------------|
|
|
112
|
+
| `options.engine` | `SyncEngine.Udp` | Synchronization engine to use. |
|
|
113
|
+
| `options.uri` *(optional)* | `string` | Address of the sync server engine. Only relevant for sync-server. If omitted, the default server will be used. |
|
|
114
|
+
|
|
115
|
+
#### Possible errors
|
|
116
|
+
|
|
117
|
+
The method throws an error if unable to connect.
|
|
118
|
+
|
|
119
|
+
#### Example
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
// use default engine
|
|
123
|
+
await sos.sync.connect();
|
|
124
|
+
|
|
125
|
+
// use sync-server engine and default server
|
|
126
|
+
await sos.sync.connect({ engine: 'sync-server' });
|
|
127
|
+
|
|
128
|
+
// use sync-server engine and custom server
|
|
129
|
+
await sos.sync.connect({ engine: 'sync-server', uri: syncServerUri });
|
|
130
|
+
|
|
131
|
+
// use p2p-local engine
|
|
132
|
+
await sos.sync.connect({ engine: 'p2p-local' });
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
<Separator />
|
|
136
|
+
|
|
137
|
+
### isMaster()
|
|
138
|
+
|
|
139
|
+
Returns true if the device is currently the master of the group.
|
|
140
|
+
|
|
141
|
+
```ts expandable
|
|
142
|
+
isMaster(groupName?: string): Promise<boolean>;
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
#### Params
|
|
146
|
+
|
|
147
|
+
| Name | Type | Description |
|
|
148
|
+
|--------------------------|----------|---------------------------------------------------------------------------|
|
|
149
|
+
| `groupName` *(optional)* | `string` | The group name to check for master status. Defaults to the default group. |
|
|
150
|
+
|
|
151
|
+
<Separator />
|
|
152
|
+
|
|
153
|
+
### joinGroup()
|
|
154
|
+
|
|
155
|
+
The `joinGroup()` method joins a group of other devices. This method has to be called after `connect()` call. Before any communication
|
|
156
|
+
takes place, all participating devices have to be connected and recognize one another. Recommended to call this method early.
|
|
157
|
+
|
|
158
|
+
```ts expandable
|
|
159
|
+
joinGroup(options: {
|
|
160
|
+
groupName?: string;
|
|
161
|
+
deviceIdentification?: string;
|
|
162
|
+
}): Promise<void>;
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
#### Params
|
|
166
|
+
|
|
167
|
+
| Name | Type | Description |
|
|
168
|
+
|---------------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------|
|
|
169
|
+
| `options.groupName` *(optional)* | `string` | By default, all devices will be synced together. To create groups of devices, independent from each other,
|
|
170
|
+
specify a group name. |
|
|
171
|
+
| `options.deviceIdentification` *(optional)* | `string` | Identification of a device connected to `groupName` group. |
|
|
172
|
+
|
|
173
|
+
<Separator />
|
|
174
|
+
|
|
175
|
+
### leaveGroup()
|
|
176
|
+
|
|
177
|
+
The `leaveMethod` method leaves a group of devices.
|
|
178
|
+
|
|
179
|
+
```ts expandable
|
|
180
|
+
leaveGroup(groupName?: string): Promise<void>;
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
<Separator />
|
|
184
|
+
|
|
185
|
+
### onClosed()
|
|
186
|
+
|
|
187
|
+
The `onStatus()` method sets up a listener, which is called whenever the device is disconnected from the sync. If it closed because
|
|
188
|
+
`close()` was called, it will emit without any arguments. if it closed because of an error, it will emit with an error object as the
|
|
189
|
+
first argument.
|
|
190
|
+
|
|
191
|
+
```ts expandable
|
|
192
|
+
onClosed(listener: (error?: Error) => void): void;
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
<Separator />
|
|
196
|
+
|
|
197
|
+
### onStatus()
|
|
198
|
+
|
|
199
|
+
The `onStatus()` method sets up a listener, which is called periodically or whenever there is a change (i.e. new device
|
|
200
|
+
connects/disconnects to/from the group).
|
|
201
|
+
|
|
202
|
+
```ts expandable
|
|
203
|
+
onStatus(listener: (status: StatusEvent) => void): void;
|
|
204
|
+
// show-more
|
|
205
|
+
interface StatusEvent {
|
|
206
|
+
groupName?: string;
|
|
207
|
+
/** Array of device identifications connected to the group. */
|
|
208
|
+
connectedPeers: string[];
|
|
209
|
+
/** True if this device is currently master of the group (this may change over time). */
|
|
210
|
+
isMaster: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
<Separator />
|
|
216
|
+
|
|
217
|
+
### onValue()
|
|
218
|
+
|
|
219
|
+
The `onValue()` method sets up a listener, which is called whenever the device receives a broadcasted message.
|
|
220
|
+
|
|
221
|
+
```ts expandable
|
|
222
|
+
onValue(listener: (key: string, value: any, groupName?: string) => void): void;
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
<Separator />
|
|
226
|
+
|
|
227
|
+
### removeEventListeners()
|
|
228
|
+
|
|
229
|
+
The `removeEventListeners()` method removes all listeners set up on `sos.sync` object.
|
|
230
|
+
|
|
231
|
+
```ts expandable
|
|
232
|
+
removeEventListeners(): void;
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
<Separator />
|
|
236
|
+
|
|
237
|
+
### wait()
|
|
238
|
+
|
|
239
|
+
The `wait()` method synchronizes with other devices by waiting for other devices before proceeding.
|
|
240
|
+
|
|
241
|
+
One way to synchronize devices is to make them wait for each other at a certain moment. This would be most commonly used before the
|
|
242
|
+
device hits “play” on a video, to make it wait for other devices so they all start playing the video at the same time.
|
|
243
|
+
|
|
244
|
+
This method returns a promise that resolves once all the devices meet and are ready to continue together. Any action that results in
|
|
245
|
+
visible synchronized behavior should be triggered immediately after and any related background preparations should be called before to
|
|
246
|
+
prevent delays.
|
|
247
|
+
|
|
248
|
+
Sometimes devices might go out of sync due to unpredictable conditions like loss of internet connection. To ensure re-sync of an out of
|
|
249
|
+
sync device, you can pass some data as the first argument. This can be any data that informs the whole group about what content is
|
|
250
|
+
about to play next. Once all devices are ready, data from the master device is passed to everyone and the rest of the data is ignored.
|
|
251
|
+
Therefore, when implementing your applet you should rely on the result data and not the data that is passed to the wait method as an
|
|
252
|
+
argument.
|
|
253
|
+
|
|
254
|
+
```ts expandable
|
|
255
|
+
wait(data?: any, groupName?: string, timeout?: number): Promise<any>;
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
<Separator />
|
|
259
|
+
|
|
260
|
+
### ~connect(options)~
|
|
261
|
+
|
|
262
|
+
:::danger
|
|
263
|
+
|
|
264
|
+
This method was deprecated. Use `connect({ engine: 'sync-server' })` instead.
|
|
265
|
+
|
|
266
|
+
:::
|
|
267
|
+
|
|
268
|
+
```ts expandable
|
|
269
|
+
connect(options?: string): Promise<void>;
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
<Separator />
|
|
273
|
+
|
|
274
|
+
### ~init()~
|
|
275
|
+
|
|
276
|
+
:::danger
|
|
277
|
+
|
|
278
|
+
This method was deprecated. use `sos.sync.joinGroup()` instead.
|
|
279
|
+
|
|
280
|
+
:::
|
|
281
|
+
|
|
282
|
+
```ts expandable
|
|
283
|
+
init(groupName?: string, deviceIdentification?: string): Promise<void>;
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
<Separator />
|
|
287
|
+
|
|
288
|
+
### ~setValue()~
|
|
289
|
+
|
|
290
|
+
:::danger
|
|
291
|
+
|
|
292
|
+
This method was deprecated. use `sos.sync.broadcastValue()` instead.
|
|
293
|
+
|
|
294
|
+
:::
|
|
295
|
+
|
|
296
|
+
```ts expandable
|
|
297
|
+
setValue(key: string, value: any, groupName?: string): Promise<void>;
|
|
298
|
+
```
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# video
|
|
2
|
+
|
|
3
|
+
The `sos.video` API groups together methods for video playback.
|
|
4
|
+
|
|
5
|
+
:::warning
|
|
6
|
+
First 5 parameters (uri, x, y, width, height) are unique identifiers for playing the video using play, stop, resume and pause methods.
|
|
7
|
+
:::
|
|
8
|
+
|
|
9
|
+
## Methods
|
|
10
|
+
|
|
11
|
+
### onceEnded()
|
|
12
|
+
|
|
13
|
+
The `onceEnded()` method returns a promise which is resolved after the specified video ended.
|
|
14
|
+
|
|
15
|
+
```ts expandable
|
|
16
|
+
onceEnded(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
<Separator />
|
|
20
|
+
|
|
21
|
+
### onceStop()
|
|
22
|
+
|
|
23
|
+
The `onceEnded()` method returns a promise which is resolved after the specified video have been stopped.
|
|
24
|
+
|
|
25
|
+
```ts expandable
|
|
26
|
+
onceStop(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
<Separator />
|
|
30
|
+
|
|
31
|
+
### onEnded()
|
|
32
|
+
|
|
33
|
+
The `onEnded()` method sets up a listener, which is called whenever a video finished playing successfully.
|
|
34
|
+
|
|
35
|
+
```ts expandable
|
|
36
|
+
onEnded(listener: (event: IVideoEvent) => void): void;
|
|
37
|
+
// show-more
|
|
38
|
+
interface IVideoEvent {
|
|
39
|
+
type: VideoEventType;
|
|
40
|
+
srcArguments: IVideoProperties;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
44
|
+
|
|
45
|
+
interface IVideoProperties {
|
|
46
|
+
uri: string;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
<Separator />
|
|
56
|
+
|
|
57
|
+
### onError()
|
|
58
|
+
|
|
59
|
+
The `onError()` method sets up a listener, which is called whenever a video failed to finish playing.
|
|
60
|
+
|
|
61
|
+
```ts expandable
|
|
62
|
+
onError(listener: (event: IVideoEvent) => void): void;
|
|
63
|
+
// show-more
|
|
64
|
+
interface IVideoEvent {
|
|
65
|
+
type: VideoEventType;
|
|
66
|
+
srcArguments: IVideoProperties;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
70
|
+
|
|
71
|
+
interface IVideoProperties {
|
|
72
|
+
uri: string;
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
width: number;
|
|
76
|
+
height: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
<Separator />
|
|
82
|
+
|
|
83
|
+
### onPause()
|
|
84
|
+
|
|
85
|
+
The `onPause()` method sets up a listener, which is called whenever a video is paused
|
|
86
|
+
|
|
87
|
+
```ts expandable
|
|
88
|
+
onPause(listener: (event: IVideoEvent) => void): void;
|
|
89
|
+
// show-more
|
|
90
|
+
interface IVideoEvent {
|
|
91
|
+
type: VideoEventType;
|
|
92
|
+
srcArguments: IVideoProperties;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
96
|
+
|
|
97
|
+
interface IVideoProperties {
|
|
98
|
+
uri: string;
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
width: number;
|
|
102
|
+
height: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
<Separator />
|
|
108
|
+
|
|
109
|
+
### onPlay()
|
|
110
|
+
|
|
111
|
+
The `onPlay()` method sets up a listener, which is called whenever a video starts to play.
|
|
112
|
+
|
|
113
|
+
```ts expandable
|
|
114
|
+
onPlay(listener: (event: IVideoEvent) => void): void;
|
|
115
|
+
// show-more
|
|
116
|
+
interface IVideoEvent {
|
|
117
|
+
type: VideoEventType;
|
|
118
|
+
srcArguments: IVideoProperties;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
122
|
+
|
|
123
|
+
interface IVideoProperties {
|
|
124
|
+
uri: string;
|
|
125
|
+
x: number;
|
|
126
|
+
y: number;
|
|
127
|
+
width: number;
|
|
128
|
+
height: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
<Separator />
|
|
134
|
+
|
|
135
|
+
### onPrepare()
|
|
136
|
+
|
|
137
|
+
The `onPrepare()` method sets up a listener, which is called whenever a video started to be prepared.
|
|
138
|
+
|
|
139
|
+
```ts expandable
|
|
140
|
+
onPrepare(listener: (event: IVideoEvent) => void): void;
|
|
141
|
+
// show-more
|
|
142
|
+
interface IVideoEvent {
|
|
143
|
+
type: VideoEventType;
|
|
144
|
+
srcArguments: IVideoProperties;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
148
|
+
|
|
149
|
+
interface IVideoProperties {
|
|
150
|
+
uri: string;
|
|
151
|
+
x: number;
|
|
152
|
+
y: number;
|
|
153
|
+
width: number;
|
|
154
|
+
height: number;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
<Separator />
|
|
160
|
+
|
|
161
|
+
### onResume()
|
|
162
|
+
|
|
163
|
+
The `onResume()` method sets up a listener, which is called whenever a video is resumed
|
|
164
|
+
|
|
165
|
+
```ts expandable
|
|
166
|
+
onResume(listener: (event: IVideoEvent) => void): void;
|
|
167
|
+
// show-more
|
|
168
|
+
interface IVideoEvent {
|
|
169
|
+
type: VideoEventType;
|
|
170
|
+
srcArguments: IVideoProperties;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
174
|
+
|
|
175
|
+
interface IVideoProperties {
|
|
176
|
+
uri: string;
|
|
177
|
+
x: number;
|
|
178
|
+
y: number;
|
|
179
|
+
width: number;
|
|
180
|
+
height: number;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
<Separator />
|
|
186
|
+
|
|
187
|
+
### onStop()
|
|
188
|
+
|
|
189
|
+
The `onStop()` method sets up a listener, which is called whenever a video has been stopped.
|
|
190
|
+
|
|
191
|
+
```ts expandable
|
|
192
|
+
onStop(listener: (event: IVideoEvent) => void): void;
|
|
193
|
+
// show-more
|
|
194
|
+
interface IVideoEvent {
|
|
195
|
+
type: VideoEventType;
|
|
196
|
+
srcArguments: IVideoProperties;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
type VideoEventType = 'prepare' | 'play' | 'stop' | 'pause' | 'resume' | 'ended' | 'error';
|
|
200
|
+
|
|
201
|
+
interface IVideoProperties {
|
|
202
|
+
uri: string;
|
|
203
|
+
x: number;
|
|
204
|
+
y: number;
|
|
205
|
+
width: number;
|
|
206
|
+
height: number;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
<Separator />
|
|
212
|
+
|
|
213
|
+
### pause()
|
|
214
|
+
|
|
215
|
+
The `pause()` method pauses the video, playback can be resumed with `resume()`.
|
|
216
|
+
|
|
217
|
+
```ts expandable
|
|
218
|
+
pause(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
<Separator />
|
|
222
|
+
|
|
223
|
+
### play()
|
|
224
|
+
|
|
225
|
+
The `play()` method starts the playback of a video previously prepared by `prepare()` method.
|
|
226
|
+
|
|
227
|
+
```ts expandable
|
|
228
|
+
play(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
<Separator />
|
|
232
|
+
|
|
233
|
+
### prepare()
|
|
234
|
+
|
|
235
|
+
The `play()` method loads the video into memory and prepares it for a playback.
|
|
236
|
+
|
|
237
|
+
```ts expandable
|
|
238
|
+
prepare(uri: string, x: number, y: number, width: number, height: number, options?: IOptions): Promise<void>;
|
|
239
|
+
// show-more
|
|
240
|
+
interface IOptions {
|
|
241
|
+
/** @deprecated */
|
|
242
|
+
'4k'?: boolean;
|
|
243
|
+
background?: boolean;
|
|
244
|
+
volume?: number;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
#### Params
|
|
250
|
+
|
|
251
|
+
| Name | Type | Description |
|
|
252
|
+
|-----------------------------------|-----------|-------------------------------------------------------------------------------|
|
|
253
|
+
| `options.` | `boolean` | 4k Support for 4k video (Deprecated since Tizen Core App v2.1.0) |
|
|
254
|
+
| `options.background` *(optional)* | `boolean` | Bring video behind the applet html (similar to z-index: -1) |
|
|
255
|
+
| `options.volume` *(optional)* | `number` | Adjust volume of playing video itself (doesn't adjust display speaker volume) |
|
|
256
|
+
|
|
257
|
+
<Separator />
|
|
258
|
+
|
|
259
|
+
### removeEventListeners()
|
|
260
|
+
|
|
261
|
+
The `removeEventListeners()` method removes all listeners set up for all videos.
|
|
262
|
+
|
|
263
|
+
```ts expandable
|
|
264
|
+
removeEventListeners(): void;
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
<Separator />
|
|
268
|
+
|
|
269
|
+
### resume()
|
|
270
|
+
|
|
271
|
+
The `resume()` method resumes the video paused by `pause()`.
|
|
272
|
+
|
|
273
|
+
```ts expandable
|
|
274
|
+
resume(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
<Separator />
|
|
278
|
+
|
|
279
|
+
### stop()
|
|
280
|
+
|
|
281
|
+
The `stop()` method stops the video, it can't be resumed with `resume()`.
|
|
282
|
+
|
|
283
|
+
```ts expandable
|
|
284
|
+
stop(uri: string, x: number, y: number, width: number, height: number): Promise<void>;
|
|
285
|
+
```
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# app
|
|
2
|
+
|
|
3
|
+
The `sos.management.app` API groups together methods for managing the signageOS application installed on the system.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### getType()
|
|
8
|
+
|
|
9
|
+
The `getType()` method returns type of the platform the application is running on.
|
|
10
|
+
|
|
11
|
+
:::info
|
|
12
|
+
|
|
13
|
+
If you need to get specific Android brand or Raspberry Pi model, use the `sos.management.firmware.getType()`.
|
|
14
|
+
|
|
15
|
+
:::
|
|
16
|
+
|
|
17
|
+
```ts expandable
|
|
18
|
+
getType(): Promise<AppType>;
|
|
19
|
+
// show-more
|
|
20
|
+
type AppType = 'android' | 'brightsign' | 'default' | 'linux' | 'sssp' | 'tizen' | 'webos' | 'windows' | 'chromeos' | AnyString;
|
|
21
|
+
|
|
22
|
+
type AnyString = string & {};
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
<Separator />
|
|
27
|
+
|
|
28
|
+
### getVersion()
|
|
29
|
+
|
|
30
|
+
The `getVersion()` method returns version of the application currently running.
|
|
31
|
+
|
|
32
|
+
:::info
|
|
33
|
+
|
|
34
|
+
This API is only available for Applets deployed via Timing from Box or REST API.
|
|
35
|
+
|
|
36
|
+
:::
|
|
37
|
+
|
|
38
|
+
```ts expandable
|
|
39
|
+
getVersion(): Promise<string>;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
<Separator />
|
|
43
|
+
|
|
44
|
+
### upgrade(appUri)
|
|
45
|
+
|
|
46
|
+
The `upgrade(appUri)` method upgrades the signageOS application with provided appUri. Open users can upgrade app passing FQN
|
|
47
|
+
uri where the application main file is located.
|
|
48
|
+
|
|
49
|
+
This file type/extension differs for every platform. E.g.:
|
|
50
|
+
- SSSP: http://example.com/apps/sssp_config.xml or http://example.com/apps/ApplicationName.zip
|
|
51
|
+
- Tizen: http://example.com/apps/sssp_config.xml or http://example.com/apps/ApplicationName.wgt
|
|
52
|
+
- Webos 1, 2: http://example.com/apps/ApplicationName.zip
|
|
53
|
+
- Webos 3+: http://example.com/apps/ApplicationName.ipk
|
|
54
|
+
- Brightsign: http://example.com/apps/ApplicationName.zip
|
|
55
|
+
- Linux: http://example.com/apps/ApplicationName.apk
|
|
56
|
+
- Android: http://example.com/apps/ApplicationName.apk
|
|
57
|
+
|
|
58
|
+
```ts expandable
|
|
59
|
+
upgrade(appUri: string): Promise<void>;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Params
|
|
63
|
+
|
|
64
|
+
| Name | Type | Description |
|
|
65
|
+
|----------|----------|-----------------------------------------------------|
|
|
66
|
+
| `appUri` | `string` | FQN uri where the application main file is located. |
|
|
67
|
+
|
|
68
|
+
<Separator />
|
|
69
|
+
|
|
70
|
+
### upgrade(baseUrl, version)
|
|
71
|
+
|
|
72
|
+
The `upgrade(baseUrl, version)` does the same as `upgrade(version, baseUrl)`.
|
|
73
|
+
|
|
74
|
+
```ts expandable
|
|
75
|
+
upgrade(baseUrl: string, version: string): Promise<void>;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Params
|
|
79
|
+
|
|
80
|
+
| Name | Type | Description |
|
|
81
|
+
|-----------|----------|-----------------------------------------------------|
|
|
82
|
+
| `baseUrl` | `string` | The server URL where application files are located. |
|
|
83
|
+
| `version` | `string` | The version of the application being installed. |
|
|
84
|
+
|
|
85
|
+
<Separator />
|
|
86
|
+
|
|
87
|
+
### upgrade(version, baseUrl)
|
|
88
|
+
|
|
89
|
+
The `upgrade(version, baseUrl?)` method upgrades the signageOS application using version and baseUrl. Platform users can install general
|
|
90
|
+
application version directly with passing just version number. Optionally, the baseUrl can be passed as argument to specify server
|
|
91
|
+
where the application files are accessible.
|
|
92
|
+
|
|
93
|
+
```ts expandable
|
|
94
|
+
upgrade(version: string, baseUrl?: string): Promise<void>;
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### Params
|
|
98
|
+
|
|
99
|
+
| Name | Type | Description |
|
|
100
|
+
|------------------------|----------|----------------------------------------------------------------------------------------------------------|
|
|
101
|
+
| `version` | `string` | The version of the application being installed. |
|
|
102
|
+
| `baseUrl` *(optional)* | `string` | Optional server URL where application files are located.<br/>(Default value: `"https://2.signageos.io"`) |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# audio
|
|
2
|
+
|
|
3
|
+
The `sos.management.audio` API groups methods for managing audio settings.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### getVolume()
|
|
8
|
+
|
|
9
|
+
The `getVolume()` method returns current volume level of the device.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
getVolume(): Promise<number>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
<Separator />
|
|
16
|
+
|
|
17
|
+
### setVolume()
|
|
18
|
+
|
|
19
|
+
The `getVolume()` method set the volume level of the device.
|
|
20
|
+
|
|
21
|
+
```ts expandable
|
|
22
|
+
setVolume(volume: number): Promise<void>;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Params
|
|
26
|
+
|
|
27
|
+
| Name | Type | Description |
|
|
28
|
+
|----------|----------|--------------------------|
|
|
29
|
+
| `volume` | `number` | Value between 0 and 100. |
|