@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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# barcodeScanner
|
|
2
|
+
|
|
3
|
+
## Methods
|
|
4
|
+
|
|
5
|
+
### getVersion()
|
|
6
|
+
|
|
7
|
+
:::warning
|
|
8
|
+
|
|
9
|
+
This API is experimental and may change in the future.
|
|
10
|
+
|
|
11
|
+
:::
|
|
12
|
+
|
|
13
|
+
```ts expandable
|
|
14
|
+
getVersion(): Promise<string>;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
<Separator />
|
|
18
|
+
|
|
19
|
+
### start()
|
|
20
|
+
|
|
21
|
+
:::warning
|
|
22
|
+
|
|
23
|
+
This API is experimental and may change in the future.
|
|
24
|
+
|
|
25
|
+
:::
|
|
26
|
+
|
|
27
|
+
```ts expandable
|
|
28
|
+
start(userOptions?: Omit<IBarcodeScannerOptions, 'scannerId'>): Promise<{
|
|
29
|
+
stop: () => Promise<void>;
|
|
30
|
+
onData: (listener: (data: string) => void) => void;
|
|
31
|
+
onError: (listener: (error: Error) => void) => void;
|
|
32
|
+
}>;
|
|
33
|
+
// show-more
|
|
34
|
+
interface IBarcodeScannerOptions {
|
|
35
|
+
timeout?: number;
|
|
36
|
+
cancelPrevious?: boolean;
|
|
37
|
+
scannerId?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# hardware
|
|
2
|
+
|
|
3
|
+
The `sos.hardware` API groups together methods for working with hardware. It allows opening serials ports, using bar scanner or controlling LEDs.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### openSerialPort()
|
|
8
|
+
|
|
9
|
+
The `openSerialPort()` method opens a serial port for reading/writing. After the port is opened the method returns ISerialPort interface.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
openSerialPort(options: ISerialPortOptions): Promise<ISerialPort>;
|
|
13
|
+
// show-more
|
|
14
|
+
interface ISerialPortOptions {
|
|
15
|
+
device?: string;
|
|
16
|
+
baudRate: number;
|
|
17
|
+
parity?: Parity;
|
|
18
|
+
databits?: number;
|
|
19
|
+
stopbits?: number;
|
|
20
|
+
rtscts?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum Parity {
|
|
24
|
+
NONE = "none",
|
|
25
|
+
EVEN = "even",
|
|
26
|
+
MARK = "mark",
|
|
27
|
+
ODD = "odd",
|
|
28
|
+
SPACE = "space"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ISerialPort {
|
|
32
|
+
/**
|
|
33
|
+
* The `onData()` method sets up a listener, which is called whenever new data are received. The listener will stop after the serial port
|
|
34
|
+
* is closed.
|
|
35
|
+
*/
|
|
36
|
+
onData(listener: (data: Uint8Array) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* The `write()` method writes data to the serial port. The data can be a string of hexadecimal digits, array of numbers or Uint8Array
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* // serial port instance previously created via sos.hardware.openSerialPort()
|
|
42
|
+
* await serialPort.write('68656c6c6f'); // hexadecimal string
|
|
43
|
+
* await serialPort.write([ 10, 20, 30, 40 ]); // array of numbers
|
|
44
|
+
* await serialPort.write(Uint8Array.from([ 10, 20, 30, 40 ])); // Uint8Array
|
|
45
|
+
*/
|
|
46
|
+
write(data: string | number[] | Uint8Array): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* The `close()` method closes the serial port.
|
|
49
|
+
*/
|
|
50
|
+
close(): Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
#### Params
|
|
56
|
+
|
|
57
|
+
| Name | Type | Description |
|
|
58
|
+
|---------------------------------|-----------|---------------------------------------------------------------------------------------------------------------------|
|
|
59
|
+
| `options.device` *(optional)* | `string` | Specifies the address of the external device. |
|
|
60
|
+
| `options.baudRate` | `number` | Specifies the data transmission speed in bits per second. |
|
|
61
|
+
| `options.parity` *(optional)* | `Parity` | Specifies the form of error checking, whether (or what) extra bits are added to a byte. |
|
|
62
|
+
| `options.databits` *(optional)* | `number` | Specifies the number of bits in a byte. |
|
|
63
|
+
| `options.stopbits` *(optional)* | `number` | Specifies the number of bits used to signal the end of a communication packet. |
|
|
64
|
+
| `options.rtscts` *(optional)* | `boolean` | Enables or disables RTS/CTS handshaking over the serial port. Currently supported by selected models of BrightSign. |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# led
|
|
2
|
+
|
|
3
|
+
The `sos.hardware.led` API groups together methods for controlling LEDs of the device. **This is currently only supported by Phillips
|
|
4
|
+
devices.**
|
|
5
|
+
|
|
6
|
+
## Methods
|
|
7
|
+
|
|
8
|
+
### setColor()
|
|
9
|
+
|
|
10
|
+
The `setColor()` methods sets the LED color (if string is passed) or disabled (if null is passed).
|
|
11
|
+
|
|
12
|
+
```ts expandable
|
|
13
|
+
setColor(color: string | null): Promise<void>;
|
|
14
|
+
```
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# sos
|
|
2
|
+
|
|
3
|
+
The `sos` API groups together all functionality the
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### appletVersion
|
|
8
|
+
|
|
9
|
+
The `appletVersion` is the version of the current applet.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
readonly appletVersion: string;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### authHash
|
|
16
|
+
|
|
17
|
+
The `authHash` property is an alternative device identifier, which is designed for secure pairing and locating devices through
|
|
18
|
+
the REST API.
|
|
19
|
+
|
|
20
|
+
1. The `authHash` is commonly used as a link between the Applet deployed on the device and the device in device management.
|
|
21
|
+
2. The `authHash` is unique and can be revoked upon request.
|
|
22
|
+
3. The `authHash` can be used as a universal identifier for your Applet application.
|
|
23
|
+
|
|
24
|
+
```ts expandable
|
|
25
|
+
readonly authHash: string;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### config
|
|
29
|
+
|
|
30
|
+
The `config` property is a Key-value dictionary of the applet configuration.
|
|
31
|
+
|
|
32
|
+
```ts expandable
|
|
33
|
+
readonly config: Record<string, number | string | boolean>;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Methods
|
|
37
|
+
|
|
38
|
+
### onReady()
|
|
39
|
+
|
|
40
|
+
The `onReady()` method accepts an optional listener which is called after the sos API are loaded and ready. It also returns a promise
|
|
41
|
+
which is resolved at the same time as the listener.
|
|
42
|
+
|
|
43
|
+
```ts expandable
|
|
44
|
+
onReady(listener?: () => void): Promise<void>;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Example
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
sos.onReady().then(async function () {
|
|
51
|
+
console.log(await sos.app.getType());
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
sos.onReady(async function () {
|
|
55
|
+
console.log(await sos.app.getType());
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
<Separator />
|
|
60
|
+
|
|
61
|
+
### refresh()
|
|
62
|
+
|
|
63
|
+
The `refresh()` method initializes refresh of the applet. Similar to window.location.reload(), but the applet is not downloaded again.
|
|
64
|
+
|
|
65
|
+
```ts expandable
|
|
66
|
+
refresh(): Promise<void>;
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
<Separator />
|
|
70
|
+
|
|
71
|
+
### restore()
|
|
72
|
+
|
|
73
|
+
The `restore()` method clears all previously played videos, streams, clear display view. The typical case of usage for digital signage
|
|
74
|
+
is playing a loop with some specified duration. This method should be called always when the loop is changed. It will clear all
|
|
75
|
+
previously played videos, streams, clear display views, and notify for garbage collection.
|
|
76
|
+
|
|
77
|
+
It stops all video playback and clears out the memory. The following function should be triggered only in a case the whole playback
|
|
78
|
+
needs to be restarted as it's completely switching the playback 'loop/playlist'.
|
|
79
|
+
|
|
80
|
+
```ts expandable
|
|
81
|
+
restore(): void;
|
|
82
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# input
|
|
2
|
+
|
|
3
|
+
## Methods
|
|
4
|
+
|
|
5
|
+
### onKeyUp()
|
|
6
|
+
|
|
7
|
+
The `onKeyUp` method sets up a listeners, which is called on every key stroke of the remote controller. For the specific logic of an
|
|
8
|
+
application (games for example), binding the remote control inputs can be helpful. Only a subset of all remote control keys is
|
|
9
|
+
supported on the specific device. Only numerical digits are guaranteed to be supported.
|
|
10
|
+
|
|
11
|
+
This feature must be tested by users on real devices.
|
|
12
|
+
|
|
13
|
+
```ts expandable
|
|
14
|
+
onKeyUp(listener: (event: IKeyUpEvent) => void): void;
|
|
15
|
+
// show-more
|
|
16
|
+
interface IKeyUpEvent {
|
|
17
|
+
type: 'keyup';
|
|
18
|
+
keyCode: KeyUpEventMap;
|
|
19
|
+
keyName: keyof typeof KeyUpEventMap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
enum KeyUpEventMap {
|
|
23
|
+
UNKNOWN = 0,
|
|
24
|
+
NUM_0 = 1,
|
|
25
|
+
NUM_1 = 2,
|
|
26
|
+
NUM_2 = 3,
|
|
27
|
+
NUM_3 = 4,
|
|
28
|
+
NUM_4 = 5,
|
|
29
|
+
NUM_5 = 6,
|
|
30
|
+
NUM_6 = 7,
|
|
31
|
+
NUM_7 = 8,
|
|
32
|
+
NUM_8 = 9,
|
|
33
|
+
NUM_9 = 10,
|
|
34
|
+
ARROW_LEFT = 11,
|
|
35
|
+
ARROW_UP = 12,
|
|
36
|
+
ARROW_RIGHT = 13,
|
|
37
|
+
ARROW_DOWN = 14,
|
|
38
|
+
YELLOW = 16,
|
|
39
|
+
BLUE = 17,
|
|
40
|
+
RED = 18,
|
|
41
|
+
GREEN = 19,
|
|
42
|
+
VOLUME_DOWN = 20,
|
|
43
|
+
VOLUME_UP = 30,
|
|
44
|
+
POWER = 31,
|
|
45
|
+
POWER_OFF = 32,
|
|
46
|
+
HOME = 33,
|
|
47
|
+
EXIT = 34,
|
|
48
|
+
RETURN = 35,
|
|
49
|
+
BACKSPACE = 36,
|
|
50
|
+
LOCK = 37
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
<Separator />
|
|
56
|
+
|
|
57
|
+
### removeEventListener()
|
|
58
|
+
|
|
59
|
+
The `removeEventListener()` method removes all event listeners for a specific event (only `keyup` is supported).
|
|
60
|
+
|
|
61
|
+
```ts expandable
|
|
62
|
+
removeEventListener(event: 'keyup', listener: (...args: any[]) => void): void;
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
<Separator />
|
|
66
|
+
|
|
67
|
+
### removeEventListeners()
|
|
68
|
+
|
|
69
|
+
The `removeEventListeners()` method removes all event listeners bind on `sos.input` object.
|
|
70
|
+
|
|
71
|
+
```ts expandable
|
|
72
|
+
removeEventListeners(): void;
|
|
73
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# monitors
|
|
2
|
+
|
|
3
|
+
The `sos.management.monitors` API groups together methods for providing information about monitors connected to the device.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### getList()
|
|
8
|
+
|
|
9
|
+
The `getList()` method returns a list of monitors currently connected to the device.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
getList(): Promise<IConnectedMonitor[]>;
|
|
13
|
+
// show-more
|
|
14
|
+
interface IConnectedMonitor {
|
|
15
|
+
manufacturer: string;
|
|
16
|
+
model: string;
|
|
17
|
+
serial: string;
|
|
18
|
+
firmware?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
```
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# mdc
|
|
2
|
+
|
|
3
|
+
The `sos.native.mdc` API groups together methods for controlling Tizen devices using MDC commands.
|
|
4
|
+
|
|
5
|
+
:::warning
|
|
6
|
+
|
|
7
|
+
This API is currently available on Tizen devices only.
|
|
8
|
+
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
:::info
|
|
12
|
+
|
|
13
|
+
You can ensure that the device supports MDC commands via `sos.management.supports("NATIVE_COMMANDS_MDC")`.
|
|
14
|
+
|
|
15
|
+
:::
|
|
16
|
+
|
|
17
|
+
## Methods
|
|
18
|
+
|
|
19
|
+
### sendOne()
|
|
20
|
+
|
|
21
|
+
The `sendOne()` method sends an MDC command to another Tizen device on the same network or to the localhost.
|
|
22
|
+
|
|
23
|
+
```ts expandable
|
|
24
|
+
sendOne(ipAddress: IpAddressType, command: CodesMDC, data?: number[]): Promise<IMDCResponse>;
|
|
25
|
+
// show-more
|
|
26
|
+
/**
|
|
27
|
+
* This enum contains valid command codes for Tizen MDC communication.
|
|
28
|
+
*/
|
|
29
|
+
enum CodesMDC {
|
|
30
|
+
STATUS_CONTROL = 0,
|
|
31
|
+
VIDEO_CONTROL = 4,
|
|
32
|
+
RGB_CONTROL = 6,
|
|
33
|
+
PIP_STATUS_CONTROL = 7,
|
|
34
|
+
MAINTENANCE_CONTROL = 8,
|
|
35
|
+
SOUND_CONTROL = 9,
|
|
36
|
+
SERIAL_NUMBER_CONTROL = 11,
|
|
37
|
+
DISPLAY_STATUS_CONTROL = 13,
|
|
38
|
+
SW_VERSION_CONTROL = 14,
|
|
39
|
+
AUTO_MOTION_PLUS = 15,
|
|
40
|
+
MODEL_NUMBER_CONTROL = 16,
|
|
41
|
+
POWER_CONTROL = 17,
|
|
42
|
+
VOLUME_CONTROL = 18,
|
|
43
|
+
MUTE_CONTROL = 19,
|
|
44
|
+
INPUT_SOURCE = 20,
|
|
45
|
+
IMAGE_SIZE_CONTROL = 21,
|
|
46
|
+
DIRECT_CHANNEL_CONTROL = 23,
|
|
47
|
+
SCREEN_MODE_CONTROL = 24,
|
|
48
|
+
SCREEN_SIZE_CONTROL = 25,
|
|
49
|
+
OUTDOOR = 26,
|
|
50
|
+
SYSTEM_CONFIGURATION = 27,
|
|
51
|
+
MAGIC_INFO_CONTROL = 28,
|
|
52
|
+
MDC_CONNECTION_TYPE = 29,
|
|
53
|
+
STILL_CONTROL = 31,
|
|
54
|
+
PICTURE_CONTROL = 33,
|
|
55
|
+
CONTRAST_CONTROL = 36,
|
|
56
|
+
BRIGHTNESS_CONTROL = 37,
|
|
57
|
+
SHARPNESS_CONTROL = 38,
|
|
58
|
+
COLOR_CONTROL = 39,
|
|
59
|
+
TINT_CONTROL = 40,
|
|
60
|
+
COARSE_CONTROL = 47,
|
|
61
|
+
FINE_CONTROL = 48,
|
|
62
|
+
H_POSITION_CONTROL = 49,
|
|
63
|
+
V_POSITION_CONTROL = 50,
|
|
64
|
+
AUTO_POWER = 51,
|
|
65
|
+
CLEAR_MENU_CONTROL = 52,
|
|
66
|
+
REMOTE_CONTROL = 54,
|
|
67
|
+
RGB_CONTRAST_CONTROL = 55,
|
|
68
|
+
RGB_BRIGHTNESS_CONTROL = 56,
|
|
69
|
+
PIP_CONTROL = 60,
|
|
70
|
+
AUTO_ADJUST_CONTROL = 61,
|
|
71
|
+
COLOR_TONE_CONTROL = 62,
|
|
72
|
+
COLOR_TEMPERATURE_CONTROL = 63,
|
|
73
|
+
PIP_SOURCE_CONTROL = 64,
|
|
74
|
+
PIP_SIZE_CONTROL = 66,
|
|
75
|
+
PIP_LOCATE_CONTROL = 67,
|
|
76
|
+
FAN_SPEED_SETTING = 68,
|
|
77
|
+
USER_AUTO_COLOR = 69,
|
|
78
|
+
SOUND_SELECT_CONTROL = 71,
|
|
79
|
+
AUTO_VOLUME = 72,
|
|
80
|
+
STANDBY_CONTROL = 74,
|
|
81
|
+
VIDEO_PICTURE_POSITION_AND_SIZE = 75,
|
|
82
|
+
PIXEL_SHIFT_CONTROL = 76,
|
|
83
|
+
SENSOR_CONTROL = 80,
|
|
84
|
+
EQ_100HZ_CONTROL = 81,
|
|
85
|
+
EQ_300HZ_CONTROL = 82,
|
|
86
|
+
EQ_1KHZ_CONTROL = 83,
|
|
87
|
+
EQ_3KHZ_CONTROL = 84,
|
|
88
|
+
EQ_10KHZ_CONTROL = 85,
|
|
89
|
+
ENERGY_SAVING_LFG = 86,
|
|
90
|
+
AUTO_LAMP_CONTROL = 87,
|
|
91
|
+
MANUAL_LAMP_CONTROL_BACKLIGHT = 88,
|
|
92
|
+
SAFETY_SCREEN_RUN_CONTROL = 89,
|
|
93
|
+
INVERSE_CONTROL = 90,
|
|
94
|
+
SAFETY_SCREEN_CONTROL_MFM = 91,
|
|
95
|
+
VIDEO_WALL_MODE_CONTROL = 92,
|
|
96
|
+
SAFETY_LOCK = 93,
|
|
97
|
+
KEY_LOCK_CONTROL_MFM = 95,
|
|
98
|
+
CHANNEL_UP_DOWN = 97,
|
|
99
|
+
VOLUME_UP_DOWN = 98,
|
|
100
|
+
TICKER = 99,
|
|
101
|
+
PC_MODULE_DETECT = 102,
|
|
102
|
+
DEVICE_NAME = 103,
|
|
103
|
+
SPEAKER_SELECT = 104,
|
|
104
|
+
OSD_OFF_ON = 112,
|
|
105
|
+
PICTURE_MODE_CONTROL = 113,
|
|
106
|
+
SOUND_MODE_CONTROL = 114,
|
|
107
|
+
DIGITAL_NR = 115,
|
|
108
|
+
PC_COLOR_TONE_CONTROL = 117,
|
|
109
|
+
AUTO_AUTO_ADJUSTMENT = 118,
|
|
110
|
+
ALL_KEYS_LOCK = 119,
|
|
111
|
+
SRS_TSXT_CONTROL = 120,
|
|
112
|
+
FILM_MODE = 121,
|
|
113
|
+
PANEL_ON_TIME = 131,
|
|
114
|
+
VIDEO_WALL_ON = 132,
|
|
115
|
+
TEMPERATURE_CONTROL = 133,
|
|
116
|
+
BRIGHTNESS_SENSOR = 134,
|
|
117
|
+
DYNAMIC_CONTRAST = 135,
|
|
118
|
+
VIDEO_WALL_USER_CONTROL = 137,
|
|
119
|
+
MODEL_NAME = 138,
|
|
120
|
+
VIDEO_WALL_DIRECT_USER_CONTROL = 139,
|
|
121
|
+
VIDEO_WALL_FEATURE_CONTROL = 140,
|
|
122
|
+
FRAME_ALIGNMENT = 129,
|
|
123
|
+
FAN = 143,
|
|
124
|
+
GAME_MODE = 144,
|
|
125
|
+
ENERGY_SAVING = 146,
|
|
126
|
+
HDMI_BLACK_LEVEL = 148,
|
|
127
|
+
BLACK_ADJUST = 149,
|
|
128
|
+
GAMMA = 150,
|
|
129
|
+
EDGE_ENHANCEMENT = 156,
|
|
130
|
+
COLOR_SPACE = 157,
|
|
131
|
+
XVYCC = 158,
|
|
132
|
+
RESET_CONTROL = 159,
|
|
133
|
+
AMBIENT_BRIGHTNESS_MODE = 161,
|
|
134
|
+
OSD_DISPLAY_TYPE = 163,
|
|
135
|
+
TIMER_1_CONTROL_MFM = 164,
|
|
136
|
+
TIMER_2_CONTROL_MFM = 165,
|
|
137
|
+
TIMER_3_CONTROL_MFM = 166,
|
|
138
|
+
CLOCK_CONTROL_MFM = 167,
|
|
139
|
+
HOLIDAY_CONTROL = 168,
|
|
140
|
+
HOLIDAY_GET_CONTROL = 169,
|
|
141
|
+
TIMER_4_CONTROL = 171,
|
|
142
|
+
TIMER_5_CONTROL = 172,
|
|
143
|
+
TIMER_6_CONTROL = 173,
|
|
144
|
+
TIMER_7_CONTROL = 174,
|
|
145
|
+
EDIT_NAME_CONTROL = 175,
|
|
146
|
+
VIRTUAL_REMOTE_CONTROL = 176,
|
|
147
|
+
DISPLAY_PORT_DAISY_CHAIN = 177,
|
|
148
|
+
/**
|
|
149
|
+
* 3Screen/4Screen Mode Control
|
|
150
|
+
*/
|
|
151
|
+
THREESCREEN_MODE_CONTROL = 178,
|
|
152
|
+
VIDEO_CONFERENCE_SOUND_MODE_CONTROL = 179,
|
|
153
|
+
VIDEO_STANDBY_CONTROL = 181,
|
|
154
|
+
DAYLIGHT_SAVING_TIME_CONTROL = 182,
|
|
155
|
+
CUSTOM_PIP_CONTROL = 183,
|
|
156
|
+
AUTO_ID_SETTING_STATUS_CONTROL = 184,
|
|
157
|
+
DISPLAY_ID_INFORMATION = 185,
|
|
158
|
+
APPLY_CALIBRATED_DATA_FOR_ALL_SOURCE_OR_CURRENT_SOURCE = 195,
|
|
159
|
+
CLOCK_CONTROL_MFM_2 = 197,
|
|
160
|
+
ECO_SOLUTION = 198,
|
|
161
|
+
EXECUTE_LAUNCHER = 199,
|
|
162
|
+
ONSCREEN_DISPLAY_MENU_CONTROL = 200,
|
|
163
|
+
SOUND_MENU_CONTROL = 201,
|
|
164
|
+
SYSTEM_MENU_CONTROL = 202,
|
|
165
|
+
OTHER_PROTOCOL_INTERFACE = 207,
|
|
166
|
+
LED_PRODUCT_FEATURE = 208,
|
|
167
|
+
LARGE_SIZE_AND_GENERAL_REPLY_FUNCTIONS = 210,
|
|
168
|
+
NET_PIP_COMMAND = 224,
|
|
169
|
+
APPLY_TO_CONTROL = 228,
|
|
170
|
+
PANEL_ON_OFF = 249,
|
|
171
|
+
AUTO_ID = 253,
|
|
172
|
+
WHITE_BALANCE_MDC_CONTROL = 254,
|
|
173
|
+
REPLY = 255
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface IMDCResponse {
|
|
177
|
+
type: 'ACK' | 'NACK';
|
|
178
|
+
commandType: number;
|
|
179
|
+
result: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
#### Params
|
|
185
|
+
|
|
186
|
+
| Name | Type | Description |
|
|
187
|
+
|---------------------|------------|------------------------------------------------------|
|
|
188
|
+
| `ipAddress` | `string` | The IP address of the device to send the command to. |
|
|
189
|
+
| `command` | `CodesMDC` | The MDC command to send. |
|
|
190
|
+
| `data` *(optional)* | `number[]` | The optional data to send with the command. |
|
|
191
|
+
|
|
192
|
+
#### Example
|
|
193
|
+
|
|
194
|
+
```ts
|
|
195
|
+
await sos.native.mdc.sendOne('localhost', CodesMDC.BRIGHTNESS_CONTROL); // Promise<IMDCResponse>
|
|
196
|
+
await sos.native.mdc.sendOne('192.168.0.10', CodesMDC.VOLUME_CONTROL, [50]); // Promise<IMDCResponse>
|
|
197
|
+
await sos.native.mdc.sendOne('192.168.0.10', CodesMDC.PICTURE_CONTROL, [0x54, 0x03]); // Promise<IMDCResponse>
|
|
198
|
+
|
|
199
|
+
// You can also send custom number if we don't have predefined command in our enum
|
|
200
|
+
await sos.native.mdc.sendOne('192.168.0.10', 0x01, []); // Promise<IMDCResponse>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
<Separator />
|
|
204
|
+
|
|
205
|
+
### sendOneRaw()
|
|
206
|
+
|
|
207
|
+
The `sendOneRaw()` method sends an MDC command to another Tizen device on the same network or to the localhost,
|
|
208
|
+
but without explicitly specifying the command.
|
|
209
|
+
|
|
210
|
+
```ts expandable
|
|
211
|
+
sendOneRaw(ipAddress: IpAddressType, data: number[] | [
|
|
212
|
+
]): Promise<IMDCResponse>;
|
|
213
|
+
// show-more
|
|
214
|
+
interface IMDCResponse {
|
|
215
|
+
type: 'ACK' | 'NACK';
|
|
216
|
+
commandType: number;
|
|
217
|
+
result: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
#### Params
|
|
223
|
+
|
|
224
|
+
| Name | Type | Description |
|
|
225
|
+
|-------------|------------------|------------------------------------------------------|
|
|
226
|
+
| `ipAddress` | `string` | The IP address of the device to send the command to. |
|
|
227
|
+
| `data` | `number[] \| []` | The data to send with the command. |
|
|
228
|
+
|
|
229
|
+
#### Example
|
|
230
|
+
|
|
231
|
+
```ts
|
|
232
|
+
await sos.native.mdc.sendOneRaw('localhost', [0x1B, 0x00, 0x01, 0x74]); // Promise<IMDCResponse>
|
|
233
|
+
|
|
234
|
+
// Example of returned object
|
|
235
|
+
{
|
|
236
|
+
"type": "ACK", // or NACK
|
|
237
|
+
"commandType": 4,
|
|
238
|
+
"result": 0, // Value what command returned
|
|
239
|
+
}
|
|
240
|
+
```
|