@signageos/front-applet 4.11.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/CHANGELOG.md +207 -0
- package/README.md +3 -0
- package/dist/bundle.js +9 -0
- package/dist/bundle.js.map +1 -0
- package/docs/README.md +5 -0
- package/docs/js-api/js-api-introduction.md +73 -0
- package/docs/js-api/js-applet-basics.md +294 -0
- package/docs/js-api/js-applet-resources.md +172 -0
- package/docs/js-api/js-browser.md +170 -0
- package/docs/js-api/js-command.md +208 -0
- package/docs/js-api/js-display.md +48 -0
- package/docs/js-api/js-file-system.md +568 -0
- package/docs/js-api/js-hardware-serial.md +142 -0
- package/docs/js-api/js-hardware.md +70 -0
- package/docs/js-api/js-iframes.md +88 -0
- package/docs/js-api/js-input.md +84 -0
- package/docs/js-api/js-loading-fonts.md +138 -0
- package/docs/js-api/js-monitoring-commands.md +108 -0
- package/docs/js-api/js-monitors.md +55 -0
- package/docs/js-api/js-offline-cache-media-files.md +314 -0
- package/docs/js-api/js-offline-cache-simple-data.md +134 -0
- package/docs/js-api/js-sensors.md +70 -0
- package/docs/js-api/js-sync-playback.md +197 -0
- package/docs/js-api/js-timing.md +54 -0
- package/docs/js-api/js-video-inputs-internal-ports.md +149 -0
- package/docs/js-api/js-video-stream.md +230 -0
- package/docs/js-api/js-video.md +282 -0
- package/docs/management-api/1-js-management.md +133 -0
- package/docs/management-api/10-js-management-application.md +123 -0
- package/docs/management-api/11-js-management-network.md +185 -0
- package/docs/management-api/12-js-management-security.md +86 -0
- package/docs/management-api/13-js-management-wifi.md +357 -0
- package/docs/management-api/2-js-management-firmware.md +93 -0
- package/docs/management-api/3-js-management-remote-control.md +73 -0
- package/docs/management-api/4-js-management-power.md +94 -0
- package/docs/management-api/5-js-management-screen.md +263 -0
- package/docs/management-api/6-js-management-time.md +166 -0
- package/docs/management-api/7-js-management-volume.md +46 -0
- package/docs/management-api/8-js-management-package.md +62 -0
- package/docs/management-api/9-js-management-debug.md +53 -0
- package/es6/FrontApplet/Browser/Browser.d.ts +24 -0
- package/es6/FrontApplet/Browser/Browser.js +73 -0
- package/es6/FrontApplet/Browser/Browser.js.map +1 -0
- package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +174 -0
- package/es6/FrontApplet/Browser/IOpenLinkOptions.js +55 -0
- package/es6/FrontApplet/Browser/IOpenLinkOptions.js.map +1 -0
- package/es6/FrontApplet/Browser/events.d.ts +15 -0
- package/es6/FrontApplet/Browser/events.js +14 -0
- package/es6/FrontApplet/Browser/events.js.map +1 -0
- package/es6/FrontApplet/Browser/messages.d.ts +5 -0
- package/es6/FrontApplet/Browser/messages.js +3 -0
- package/es6/FrontApplet/Browser/messages.js.map +1 -0
- package/es6/FrontApplet/Command/Command.d.ts +16 -0
- package/es6/FrontApplet/Command/Command.js +68 -0
- package/es6/FrontApplet/Command/Command.js.map +1 -0
- package/es6/FrontApplet/Command/ICommand.d.ts +4 -0
- package/es6/FrontApplet/Command/ICommand.js +3 -0
- package/es6/FrontApplet/Command/ICommand.js.map +1 -0
- package/es6/FrontApplet/Command/ICommandDispatchToAppletMessage.d.ts +6 -0
- package/es6/FrontApplet/Command/ICommandDispatchToAppletMessage.js +3 -0
- package/es6/FrontApplet/Command/ICommandDispatchToAppletMessage.js.map +1 -0
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -0
- package/es6/FrontApplet/Command/ICommandEvent.js +3 -0
- package/es6/FrontApplet/Command/ICommandEvent.js.map +1 -0
- package/es6/FrontApplet/Command/ICommandEventListener.d.ts +6 -0
- package/es6/FrontApplet/Command/ICommandEventListener.js +3 -0
- package/es6/FrontApplet/Command/ICommandEventListener.js.map +1 -0
- package/es6/FrontApplet/Debug/Debug.d.ts +22 -0
- package/es6/FrontApplet/Debug/Debug.js +35 -0
- package/es6/FrontApplet/Debug/Debug.js.map +1 -0
- package/es6/FrontApplet/Display/Display.d.ts +11 -0
- package/es6/FrontApplet/Display/Display.js +35 -0
- package/es6/FrontApplet/Display/Display.js.map +1 -0
- package/es6/FrontApplet/Error/AppletCommandError.d.ts +9 -0
- package/es6/FrontApplet/Error/AppletCommandError.js +11 -0
- package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletError.d.ts +7 -0
- package/es6/FrontApplet/Error/AppletError.js +10 -0
- package/es6/FrontApplet/Error/AppletError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletHardwareError.d.ts +9 -0
- package/es6/FrontApplet/Error/AppletHardwareError.js +11 -0
- package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletOfflineCacheError.d.ts +8 -0
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -0
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletResourcesError.d.ts +9 -0
- package/es6/FrontApplet/Error/AppletResourcesError.js +11 -0
- package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletSecurityError.d.ts +9 -0
- package/es6/FrontApplet/Error/AppletSecurityError.js +11 -0
- package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletStreamError.d.ts +8 -0
- package/es6/FrontApplet/Error/AppletStreamError.js +10 -0
- package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -0
- package/es6/FrontApplet/Error/AppletVideoError.d.ts +9 -0
- package/es6/FrontApplet/Error/AppletVideoError.js +11 -0
- package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -0
- package/es6/FrontApplet/Error/ErrorCodes.d.ts +18 -0
- package/es6/FrontApplet/Error/ErrorCodes.js +23 -0
- package/es6/FrontApplet/Error/ErrorCodes.js.map +1 -0
- package/es6/FrontApplet/Error/ErrorCodesMessages.d.ts +3 -0
- package/es6/FrontApplet/Error/ErrorCodesMessages.js +22 -0
- package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.d.ts +6 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js +10 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -0
- package/es6/FrontApplet/Error/FileNotFoundError.d.ts +8 -0
- package/es6/FrontApplet/Error/FileNotFoundError.js +10 -0
- package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -0
- package/es6/FrontApplet/Error/SosError.d.ts +20 -0
- package/es6/FrontApplet/Error/SosError.js +22 -0
- package/es6/FrontApplet/Error/SosError.js.map +1 -0
- package/es6/FrontApplet/Error/errorHelper.d.ts +12 -0
- package/es6/FrontApplet/Error/errorHelper.js +50 -0
- package/es6/FrontApplet/Error/errorHelper.js.map +1 -0
- package/es6/FrontApplet/Exchange/Exchange.d.ts +7 -0
- package/es6/FrontApplet/Exchange/Exchange.js +28 -0
- package/es6/FrontApplet/Exchange/Exchange.js.map +1 -0
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +30 -0
- package/es6/FrontApplet/FileSystem/FileSystem.js +210 -0
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -0
- package/es6/FrontApplet/FileSystem/StorageUnitsChangedMessage.d.ts +4 -0
- package/es6/FrontApplet/FileSystem/StorageUnitsChangedMessage.js +3 -0
- package/es6/FrontApplet/FileSystem/StorageUnitsChangedMessage.js.map +1 -0
- package/es6/FrontApplet/FileSystem/types.d.ts +66 -0
- package/es6/FrontApplet/FileSystem/types.js +20 -0
- package/es6/FrontApplet/FileSystem/types.js.map +1 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.d.ts +6 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js +46 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -0
- package/es6/FrontApplet/FrontApplet.d.ts +56 -0
- package/es6/FrontApplet/FrontApplet.js +183 -0
- package/es6/FrontApplet/FrontApplet.js.map +1 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +30 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +92 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/IBarcodeScannerDataMessage.d.ts +5 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/IBarcodeScannerDataMessage.js +3 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/IBarcodeScannerDataMessage.js.map +1 -0
- package/es6/FrontApplet/Hardware/Hardware.d.ts +20 -0
- package/es6/FrontApplet/Hardware/Hardware.js +51 -0
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -0
- package/es6/FrontApplet/Hardware/ISerialPortDataMessage.d.ts +6 -0
- package/es6/FrontApplet/Hardware/ISerialPortDataMessage.js +3 -0
- package/es6/FrontApplet/Hardware/ISerialPortDataMessage.js.map +1 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.d.ts +15 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +11 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -0
- package/es6/FrontApplet/Hardware/Led/ISetColorMessage.d.ts +5 -0
- package/es6/FrontApplet/Hardware/Led/ISetColorMessage.js +3 -0
- package/es6/FrontApplet/Hardware/Led/ISetColorMessage.js.map +1 -0
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +11 -0
- package/es6/FrontApplet/Hardware/Led/Led.js +38 -0
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -0
- package/es6/FrontApplet/Hardware/SerialPort.d.ts +14 -0
- package/es6/FrontApplet/Hardware/SerialPort.js +45 -0
- package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -0
- package/es6/FrontApplet/Hash/generator.d.ts +1 -0
- package/es6/FrontApplet/Hash/generator.js +10 -0
- package/es6/FrontApplet/Hash/generator.js.map +1 -0
- package/es6/FrontApplet/IMessage.d.ts +6 -0
- package/es6/FrontApplet/IMessage.js +3 -0
- package/es6/FrontApplet/IMessage.js.map +1 -0
- package/es6/FrontApplet/IPostMessage.d.ts +5 -0
- package/es6/FrontApplet/IPostMessage.js +3 -0
- package/es6/FrontApplet/IPostMessage.js.map +1 -0
- package/es6/FrontApplet/Iframe/Iframe.d.ts +24 -0
- package/es6/FrontApplet/Iframe/Iframe.js +51 -0
- package/es6/FrontApplet/Iframe/Iframe.js.map +1 -0
- package/es6/FrontApplet/Input/IInputKeyMessage.d.ts +6 -0
- package/es6/FrontApplet/Input/IInputKeyMessage.js +3 -0
- package/es6/FrontApplet/Input/IInputKeyMessage.js.map +1 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +6 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js +3 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -0
- package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +5 -0
- package/es6/FrontApplet/Input/IKeyUpEventListener.js +3 -0
- package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +1 -0
- package/es6/FrontApplet/Input/Input.d.ts +20 -0
- package/es6/FrontApplet/Input/Input.js +35 -0
- package/es6/FrontApplet/Input/Input.js.map +1 -0
- package/es6/FrontApplet/Management/App.d.ts +37 -0
- package/es6/FrontApplet/Management/App.js +50 -0
- package/es6/FrontApplet/Management/App.js.map +1 -0
- package/es6/FrontApplet/Management/Audio.d.ts +9 -0
- package/es6/FrontApplet/Management/Audio.js +40 -0
- package/es6/FrontApplet/Management/Audio.js.map +1 -0
- package/es6/FrontApplet/Management/Debug.d.ts +11 -0
- package/es6/FrontApplet/Management/Debug.js +50 -0
- package/es6/FrontApplet/Management/Debug.js.map +1 -0
- package/es6/FrontApplet/Management/Firmware.d.ts +37 -0
- package/es6/FrontApplet/Management/Firmware.js +50 -0
- package/es6/FrontApplet/Management/Firmware.js.map +1 -0
- package/es6/FrontApplet/Management/FirmwareType.d.ts +4 -0
- package/es6/FrontApplet/Management/FirmwareType.js +8 -0
- package/es6/FrontApplet/Management/FirmwareType.js.map +1 -0
- package/es6/FrontApplet/Management/IBatteryStatus.d.ts +7 -0
- package/es6/FrontApplet/Management/IBatteryStatus.js +3 -0
- package/es6/FrontApplet/Management/IBatteryStatus.js.map +1 -0
- package/es6/FrontApplet/Management/IBrightness.d.ts +6 -0
- package/es6/FrontApplet/Management/IBrightness.js +3 -0
- package/es6/FrontApplet/Management/IBrightness.js.map +1 -0
- package/es6/FrontApplet/Management/INetworkInfo.d.ts +53 -0
- package/es6/FrontApplet/Management/INetworkInfo.js +17 -0
- package/es6/FrontApplet/Management/INetworkInfo.js.map +1 -0
- package/es6/FrontApplet/Management/IOrientation.d.ts +4 -0
- package/es6/FrontApplet/Management/IOrientation.js +3 -0
- package/es6/FrontApplet/Management/IOrientation.js.map +1 -0
- package/es6/FrontApplet/Management/IWifiEvent.d.ts +11 -0
- package/es6/FrontApplet/Management/IWifiEvent.js +12 -0
- package/es6/FrontApplet/Management/IWifiEvent.js.map +1 -0
- package/es6/FrontApplet/Management/Management.d.ts +44 -0
- package/es6/FrontApplet/Management/Management.js +113 -0
- package/es6/FrontApplet/Management/Management.js.map +1 -0
- package/es6/FrontApplet/Management/Network.d.ts +26 -0
- package/es6/FrontApplet/Management/Network.js +83 -0
- package/es6/FrontApplet/Management/Network.js.map +1 -0
- package/es6/FrontApplet/Management/Package.d.ts +8 -0
- package/es6/FrontApplet/Management/Package.js +38 -0
- package/es6/FrontApplet/Management/Package.js.map +1 -0
- package/es6/FrontApplet/Management/Power.d.ts +13 -0
- package/es6/FrontApplet/Management/Power.js +78 -0
- package/es6/FrontApplet/Management/Power.js.map +1 -0
- package/es6/FrontApplet/Management/RemoteControl.d.ts +14 -0
- package/es6/FrontApplet/Management/RemoteControl.js +61 -0
- package/es6/FrontApplet/Management/RemoteControl.js.map +1 -0
- package/es6/FrontApplet/Management/Screen.d.ts +18 -0
- package/es6/FrontApplet/Management/Screen.js +114 -0
- package/es6/FrontApplet/Management/Screen.js.map +1 -0
- package/es6/FrontApplet/Management/Security.d.ts +21 -0
- package/es6/FrontApplet/Management/Security.js +56 -0
- package/es6/FrontApplet/Management/Security.js.map +1 -0
- package/es6/FrontApplet/Management/Time.d.ts +16 -0
- package/es6/FrontApplet/Management/Time.js +59 -0
- package/es6/FrontApplet/Management/Time.js.map +1 -0
- package/es6/FrontApplet/Management/Wifi.d.ts +29 -0
- package/es6/FrontApplet/Management/Wifi.js +151 -0
- package/es6/FrontApplet/Management/Wifi.js.map +1 -0
- package/es6/FrontApplet/Management/helpers/DeviceHelper.d.ts +21 -0
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js +16 -0
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -0
- package/es6/FrontApplet/Management/helpers/SecurityHelper.d.ts +2 -0
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js +21 -0
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +25 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +23 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -0
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.d.ts +5 -0
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -0
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -0
- package/es6/FrontApplet/Management/helpers/VideoHelper.d.ts +4 -0
- package/es6/FrontApplet/Management/helpers/VideoHelper.js +8 -0
- package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -0
- package/es6/FrontApplet/Monitors/Monitors.d.ts +16 -0
- package/es6/FrontApplet/Monitors/Monitors.js +31 -0
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +38 -0
- package/es6/FrontApplet/Offline/Cache/Cache.js +199 -0
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/IChecksumMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/IChecksumMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/IChecksumMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/IFile.d.ts +4 -0
- package/es6/FrontApplet/Offline/Cache/IFile.js +3 -0
- package/es6/FrontApplet/Offline/Cache/IFile.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/IListedContentsMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/IListedContentsMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/IListedContentsMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/IListedFilesMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/IListedFilesMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/IListedFilesMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedContentMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedContentMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedContentMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedFileMessage.d.ts +6 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedFileMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ILoadedFileMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContentMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContentMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContentMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContents.d.ts +4 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContents.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ISavedContents.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFileMessage.d.ts +6 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFileMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFileMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFiles.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFiles.js +3 -0
- package/es6/FrontApplet/Offline/Cache/ISavedFiles.js.map +1 -0
- package/es6/FrontApplet/Offline/Cache/IValidatedChecksumMessage.d.ts +5 -0
- package/es6/FrontApplet/Offline/Cache/IValidatedChecksumMessage.js +3 -0
- package/es6/FrontApplet/Offline/Cache/IValidatedChecksumMessage.js.map +1 -0
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +12 -0
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +47 -0
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -0
- package/es6/FrontApplet/Offline/Flags/IFlag.d.ts +16 -0
- package/es6/FrontApplet/Offline/Flags/IFlag.js +8 -0
- package/es6/FrontApplet/Offline/Flags/IFlag.js.map +1 -0
- package/es6/FrontApplet/Offline/Flags/IFlagController.d.ts +12 -0
- package/es6/FrontApplet/Offline/Flags/IFlagController.js +3 -0
- package/es6/FrontApplet/Offline/Flags/IFlagController.js.map +1 -0
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +7 -0
- package/es6/FrontApplet/Offline/Flags/IFlags.js +3 -0
- package/es6/FrontApplet/Offline/Flags/IFlags.js.map +1 -0
- package/es6/FrontApplet/Offline/IAddFont.d.ts +50 -0
- package/es6/FrontApplet/Offline/IAddFont.js +22 -0
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -0
- package/es6/FrontApplet/Offline/IElement.d.ts +7 -0
- package/es6/FrontApplet/Offline/IElement.js +6 -0
- package/es6/FrontApplet/Offline/IElement.js.map +1 -0
- package/es6/FrontApplet/Offline/IFileType.d.ts +3 -0
- package/es6/FrontApplet/Offline/IFileType.js +4 -0
- package/es6/FrontApplet/Offline/IFileType.js.map +1 -0
- package/es6/FrontApplet/Offline/ISaveFile.d.ts +49 -0
- package/es6/FrontApplet/Offline/ISaveFile.js +26 -0
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -0
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.d.ts +7 -0
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +26 -0
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFile.d.ts +8 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFile.js +3 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFile.js.map +1 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFileController.d.ts +8 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFileController.js +3 -0
- package/es6/FrontApplet/Offline/LoadFile/ILoadFileController.js.map +1 -0
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.d.ts +7 -0
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +25 -0
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -0
- package/es6/FrontApplet/Offline/Offline.d.ts +27 -0
- package/es6/FrontApplet/Offline/Offline.js +105 -0
- package/es6/FrontApplet/Offline/Offline.js.map +1 -0
- package/es6/FrontApplet/Offline/Types.d.ts +7 -0
- package/es6/FrontApplet/Offline/Types.js +9 -0
- package/es6/FrontApplet/Offline/Types.js.map +1 -0
- package/es6/FrontApplet/Sensors/Proximity.d.ts +16 -0
- package/es6/FrontApplet/Sensors/Proximity.js +36 -0
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -0
- package/es6/FrontApplet/Sensors/Sensors.d.ts +11 -0
- package/es6/FrontApplet/Sensors/Sensors.js +18 -0
- package/es6/FrontApplet/Sensors/Sensors.js.map +1 -0
- package/es6/FrontApplet/Stream/IStreamEvent.d.ts +6 -0
- package/es6/FrontApplet/Stream/IStreamEvent.js +3 -0
- package/es6/FrontApplet/Stream/IStreamEvent.js.map +1 -0
- package/es6/FrontApplet/Stream/IStreamEventListener.d.ts +5 -0
- package/es6/FrontApplet/Stream/IStreamEventListener.js +3 -0
- package/es6/FrontApplet/Stream/IStreamEventListener.js.map +1 -0
- package/es6/FrontApplet/Stream/IStreamMessage.d.ts +6 -0
- package/es6/FrontApplet/Stream/IStreamMessage.js +3 -0
- package/es6/FrontApplet/Stream/IStreamMessage.js.map +1 -0
- package/es6/FrontApplet/Stream/IStreamProperties.d.ts +10 -0
- package/es6/FrontApplet/Stream/IStreamProperties.js +3 -0
- package/es6/FrontApplet/Stream/IStreamProperties.js.map +1 -0
- package/es6/FrontApplet/Stream/Stream.d.ts +22 -0
- package/es6/FrontApplet/Stream/Stream.js +131 -0
- package/es6/FrontApplet/Stream/Stream.js.map +1 -0
- package/es6/FrontApplet/Stream/StreamProtocol.d.ts +9 -0
- package/es6/FrontApplet/Stream/StreamProtocol.js +13 -0
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -0
- package/es6/FrontApplet/Stream/streamEvents.d.ts +8 -0
- package/es6/FrontApplet/Stream/streamEvents.js +3 -0
- package/es6/FrontApplet/Stream/streamEvents.js.map +1 -0
- package/es6/FrontApplet/Sync/ISyncEvent.d.ts +4 -0
- package/es6/FrontApplet/Sync/ISyncEvent.js +3 -0
- package/es6/FrontApplet/Sync/ISyncEvent.js.map +1 -0
- package/es6/FrontApplet/Sync/ISyncSetValueMessage.d.ts +7 -0
- package/es6/FrontApplet/Sync/ISyncSetValueMessage.js +3 -0
- package/es6/FrontApplet/Sync/ISyncSetValueMessage.js.map +1 -0
- package/es6/FrontApplet/Sync/Sync.d.ts +20 -0
- package/es6/FrontApplet/Sync/Sync.js +102 -0
- package/es6/FrontApplet/Sync/Sync.js.map +1 -0
- package/es6/FrontApplet/Sync/syncEvents.d.ts +6 -0
- package/es6/FrontApplet/Sync/syncEvents.js +3 -0
- package/es6/FrontApplet/Sync/syncEvents.js.map +1 -0
- package/es6/FrontApplet/Timing/Timing.d.ts +10 -0
- package/es6/FrontApplet/Timing/Timing.js +16 -0
- package/es6/FrontApplet/Timing/Timing.js.map +1 -0
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +2 -0
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.js +4 -0
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.js.map +1 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +11 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js +33 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -0
- package/es6/FrontApplet/Touch/ITouchEventMessage.d.ts +6 -0
- package/es6/FrontApplet/Touch/ITouchEventMessage.js +3 -0
- package/es6/FrontApplet/Touch/ITouchEventMessage.js.map +1 -0
- package/es6/FrontApplet/Touch/Touch.d.ts +13 -0
- package/es6/FrontApplet/Touch/Touch.js +54 -0
- package/es6/FrontApplet/Touch/Touch.js.map +1 -0
- package/es6/FrontApplet/Validate/Validate.d.ts +43 -0
- package/es6/FrontApplet/Validate/Validate.js +266 -0
- package/es6/FrontApplet/Validate/Validate.js.map +1 -0
- package/es6/FrontApplet/Validate/ValidateObjectInterface.d.ts +8 -0
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js +140 -0
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -0
- package/es6/FrontApplet/Video/IVideoEvent.d.ts +8 -0
- package/es6/FrontApplet/Video/IVideoEvent.js +6 -0
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -0
- package/es6/FrontApplet/Video/IVideoEventListener.d.ts +5 -0
- package/es6/FrontApplet/Video/IVideoEventListener.js +3 -0
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +1 -0
- package/es6/FrontApplet/Video/IVideoMessage.d.ts +4 -0
- package/es6/FrontApplet/Video/IVideoMessage.js +3 -0
- package/es6/FrontApplet/Video/IVideoMessage.js.map +1 -0
- package/es6/FrontApplet/Video/IVideoProperties.d.ts +8 -0
- package/es6/FrontApplet/Video/IVideoProperties.js +3 -0
- package/es6/FrontApplet/Video/IVideoProperties.js.map +1 -0
- package/es6/FrontApplet/Video/Video.d.ts +39 -0
- package/es6/FrontApplet/Video/Video.js +242 -0
- package/es6/FrontApplet/Video/Video.js.map +1 -0
- package/es6/FrontApplet/createFrontApplet.d.ts +2 -0
- package/es6/FrontApplet/createFrontApplet.js +9 -0
- package/es6/FrontApplet/createFrontApplet.js.map +1 -0
- package/es6/Monitoring/Console/consoleCommands.d.ts +6 -0
- package/es6/Monitoring/Console/consoleCommands.js +4 -0
- package/es6/Monitoring/Console/consoleCommands.js.map +1 -0
- package/es6/Monitoring/Html/htmlCommands.d.ts +9 -0
- package/es6/Monitoring/Html/htmlCommands.js +5 -0
- package/es6/Monitoring/Html/htmlCommands.js.map +1 -0
- package/es6/Monitoring/Montoring.d.ts +12 -0
- package/es6/Monitoring/Montoring.js +159 -0
- package/es6/Monitoring/Montoring.js.map +1 -0
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.d.ts +20 -0
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.js +7 -0
- package/es6/Monitoring/Offline/Cache/offlineCacheCommands.js.map +1 -0
- package/es6/Monitoring/Timing/timingCommands.d.ts +4 -0
- package/es6/Monitoring/Timing/timingCommands.js +4 -0
- package/es6/Monitoring/Timing/timingCommands.js.map +1 -0
- package/es6/Monitoring/Video/videoCommands.d.ts +10 -0
- package/es6/Monitoring/Video/videoCommands.js +4 -0
- package/es6/Monitoring/Video/videoCommands.js.map +1 -0
- package/es6/Monitoring/monitoringCommands.d.ts +8 -0
- package/es6/Monitoring/monitoringCommands.js +5 -0
- package/es6/Monitoring/monitoringCommands.js.map +1 -0
- package/es6/Sensors/IButton.d.ts +9 -0
- package/es6/Sensors/IButton.js +8 -0
- package/es6/Sensors/IButton.js.map +1 -0
- package/es6/Sensors/IRfidAntenna.d.ts +10 -0
- package/es6/Sensors/IRfidAntenna.js +8 -0
- package/es6/Sensors/IRfidAntenna.js.map +1 -0
- package/es6/bundle.d.ts +12 -0
- package/es6/bundle.js +13 -0
- package/es6/bundle.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Video Playback
|
|
3
|
+
author: Miroslav Behina
|
|
4
|
+
date: 22.11.2018
|
|
5
|
+
type: js-api
|
|
6
|
+
tags:
|
|
7
|
+
- applet
|
|
8
|
+
- applet_api
|
|
9
|
+
- api
|
|
10
|
+
- js_api
|
|
11
|
+
description: "[Content JS API] We know how crucial video is for digital signage. So we made it easy. There are several methods you can use for video manipulation."
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Video Playback
|
|
15
|
+
We know how crucial video is for digital signage. So we made it easy. There are several methods you can use for video manipulation.
|
|
16
|
+
|
|
17
|
+
## All methods/events
|
|
18
|
+
::: table-responsive
|
|
19
|
+
| Methods/Events | Description | Supported since |
|
|
20
|
+
| ----------------- | ----------- | ------ | :---------------: |
|
|
21
|
+
| `play()` | Start video playing | 1.0.3 |
|
|
22
|
+
| `prepare()` | Prepare next video | 1.0.3 |
|
|
23
|
+
| `pause()` | Pause video | 1.0.3 |
|
|
24
|
+
| `stop()` | Completely stop video | 1.0.3 |
|
|
25
|
+
| `resume()` | Continue in playing | 1.0.3 |
|
|
26
|
+
| `onceEnded()` | Wait until video ends | 1.0.29 |
|
|
27
|
+
| `onEnded()` | Event called when video ends | 1.0.3 |
|
|
28
|
+
| `onError()` | Event called when video emits error | 1.0.3 |
|
|
29
|
+
:::
|
|
30
|
+
|
|
31
|
+
::: alert alert--warning
|
|
32
|
+
First 5 parameters (uri, x, y, width, height) are unique identifiers for playing the video using play, stop, resume and pause methods.
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
::: alert alert--info
|
|
36
|
+
If you want to play video in full screen mode, use x = y = 0 and width = document.documentElement.clientWidth and height = document.documentElement.clientHeight as setup parameters.
|
|
37
|
+
:::
|
|
38
|
+
|
|
39
|
+
## How it works
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## play()
|
|
44
|
+
Play method calls the internal player and starts the video in correct position.
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
::: table-responsive
|
|
48
|
+
| Param | Type | Required | Description |
|
|
49
|
+
| ------ | ------ | :--------: | -------- |
|
|
50
|
+
| `uri` | String | <div class="red">Yes</div> | Address to remote (online) or local video file |
|
|
51
|
+
| `x` | Number | <div class="red">Yes</div> | x-position for video on screen |
|
|
52
|
+
| `y` | Number | <div class="red">Yes</div> | y-position for video on screen |
|
|
53
|
+
| `width` | Number | <div class="red">Yes</div> | Video width on screen |
|
|
54
|
+
| `height` | Number | <div class="red">Yes</div> | Video height on screen |
|
|
55
|
+
:::
|
|
56
|
+
|
|
57
|
+
### Javascript
|
|
58
|
+
```javascript
|
|
59
|
+
await sos.video.play(uri, x, y, width, height);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<div class="row d-flex align-content-stretch force-padding-20">
|
|
63
|
+
<div class="col-12 d-flex">
|
|
64
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/video-loop-one">
|
|
65
|
+
<div>
|
|
66
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
67
|
+
<i class="fab fa-github svg-black"></i>
|
|
68
|
+
</div>
|
|
69
|
+
<div>
|
|
70
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Play one video in endless loop</h3>
|
|
71
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</a>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
79
|
+
<div class="col-12 d-flex">
|
|
80
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/video-multiple">
|
|
81
|
+
<div>
|
|
82
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
83
|
+
<i class="fab fa-github svg-black"></i>
|
|
84
|
+
</div>
|
|
85
|
+
<div>
|
|
86
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Play multiple videos in endless loop</h3>
|
|
87
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</a>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
95
|
+
<div class="col-12 d-flex">
|
|
96
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/video-and-images">
|
|
97
|
+
<div>
|
|
98
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
99
|
+
<i class="fab fa-github svg-black"></i>
|
|
100
|
+
</div>
|
|
101
|
+
<div>
|
|
102
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Switching video and images in endless loop</h3>
|
|
103
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</a>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
## prepare()
|
|
111
|
+
Prepare method calls the internal player and preload the video into memory.
|
|
112
|
+
|
|
113
|
+
::: alert alert--info
|
|
114
|
+
Using `prepare()` is mandatory for gapless playback
|
|
115
|
+
:::
|
|
116
|
+
|
|
117
|
+
::: alert alert--warning
|
|
118
|
+
`4k` parameter is no longer needed since Front-display v7.5.0, Tizen Core App v2.1.0.
|
|
119
|
+
`volume` is supported only on the RaspberryPi.
|
|
120
|
+
:::
|
|
121
|
+
|
|
122
|
+
### Parameters
|
|
123
|
+
::: table-responsive
|
|
124
|
+
| Param | Type | Required | Description |
|
|
125
|
+
| ------ | ------ | :--------: | -------- |
|
|
126
|
+
| `uri` | String | <div class="red">Yes</div> | Address to remote /online/ or local video file |
|
|
127
|
+
| `x` | Number | <div class="red">Yes</div> | x-position for video on screen |
|
|
128
|
+
| `y` | Number | <div class="red">Yes</div> | y-position for video on screen |
|
|
129
|
+
| `width` | Number | <div class="red">Yes</div> | Video width on screen |
|
|
130
|
+
| `height` | Number | <div class="red">Yes</div> | Video height on screen |
|
|
131
|
+
| `options` | Object | <div class="yellow">No</div> | Additional video properties |
|
|
132
|
+
:::
|
|
133
|
+
|
|
134
|
+
### Options properties
|
|
135
|
+
::: table-responsive
|
|
136
|
+
| Property | Type | Required | Description |
|
|
137
|
+
| ------- | ------ | :------:| -----------|
|
|
138
|
+
| `4k` | Boolean | <div class="yellow">No</div> | Support for 4k video |
|
|
139
|
+
|^^|^^|^^| Deprecated since Tizen Core App v2.1.0 |
|
|
140
|
+
| `background` | Boolean | <div class="yellow">No</div> | Bring video behind the applet html (similar to z-index: -1) |
|
|
141
|
+
| `volume` | Number | <div class="yellow">No</div> | Adjust volume of playing video itself (doesn't adjust display speaker volume) |
|
|
142
|
+
|^^|^^|^^| Supported only on **RaspberryPi** |
|
|
143
|
+
:::
|
|
144
|
+
|
|
145
|
+
### Javascript
|
|
146
|
+
```javascript
|
|
147
|
+
// playing video
|
|
148
|
+
await sos.video.prepare(uri, x, y, width, height);
|
|
149
|
+
// or advanced usage
|
|
150
|
+
await sos.video.prepare(uri, x, y, width, height, {
|
|
151
|
+
'4k': true,
|
|
152
|
+
background: true,
|
|
153
|
+
volume: 60,
|
|
154
|
+
});
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## stop(), pause() and resume()
|
|
158
|
+
All these methods call the internal player. All variables are mandatory in order to ensure video identification.
|
|
159
|
+
|
|
160
|
+
### Parameters
|
|
161
|
+
::: table-responsive
|
|
162
|
+
| Param | Type | Required | Description |
|
|
163
|
+
| ------ | ------ | :--------: | -------- |
|
|
164
|
+
| `uri` | String | <div class="red">Yes</div> | Address to remote (online) or local video file |
|
|
165
|
+
| `x` | Number | <div class="red">Yes</div> | x-position for video on screen |
|
|
166
|
+
| `y` | Number | <div class="red">Yes</div> | y-position for video on screen |
|
|
167
|
+
| `width` | Number | <div class="red">Yes</div> | Video width on screen |
|
|
168
|
+
| `height` | Number | <div class="red">Yes</div> | Video height on screen |
|
|
169
|
+
:::
|
|
170
|
+
|
|
171
|
+
### Javascript
|
|
172
|
+
```javascript
|
|
173
|
+
// stop video
|
|
174
|
+
await sos.video.stop(uri, x, y, width, height);
|
|
175
|
+
|
|
176
|
+
// pause
|
|
177
|
+
await sos.video.pause(uri, x, y, width, height);
|
|
178
|
+
|
|
179
|
+
// resume
|
|
180
|
+
await sos.video.resume(uri, x, y, width, height);
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Event onceEnded
|
|
184
|
+
Wait until one specific video is ended.
|
|
185
|
+
|
|
186
|
+
### Parameters
|
|
187
|
+
::: table-responsive
|
|
188
|
+
| Param | Type | Required | Description |
|
|
189
|
+
| ------ | ------ | :--------: | -------- |
|
|
190
|
+
| `uri` | String | <div class="red">Yes</div> | Address to remote (online) or local video file |
|
|
191
|
+
| `x` | Number | <div class="red">Yes</div> | x-position for video on screen |
|
|
192
|
+
| `y` | Number | <div class="red">Yes</div> | y-position for video on screen |
|
|
193
|
+
| `width` | Number | <div class="red">Yes</div> | Video width on screen |
|
|
194
|
+
| `height` | Number | <div class="red">Yes</div> | Video height on screen |
|
|
195
|
+
:::
|
|
196
|
+
|
|
197
|
+
### Javascript
|
|
198
|
+
```javascript
|
|
199
|
+
// wai on end of video
|
|
200
|
+
await sos.video.onceEnded(uri, x, y, width, height);
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Events onEnded, onError
|
|
204
|
+
All events about played videos can be binded using above mentioned methods. It will emit all events of all playing videos. Video source of emited event can be identified by srcArguments object available in event.
|
|
205
|
+
|
|
206
|
+
Listener method added as argument accepts event object. It contains these properties:
|
|
207
|
+
|
|
208
|
+
::: table-responsive
|
|
209
|
+
| Property | Description |
|
|
210
|
+
| ------ | ------ |
|
|
211
|
+
| `type` | Type of event which can be ended or error string |
|
|
212
|
+
| `srcArguments` | Arguments which was passed to play method.<br> Contains uri, x, y, width & height. |
|
|
213
|
+
:::
|
|
214
|
+
|
|
215
|
+
### Javascript
|
|
216
|
+
```javascript
|
|
217
|
+
// detect video ended
|
|
218
|
+
await sos.video.onEnded((event) => { console.log(event); });
|
|
219
|
+
|
|
220
|
+
// detect video error
|
|
221
|
+
await sos.video.onError((event) => { console.log(event); });
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## Usage with Typescript
|
|
225
|
+
You can also use all these methods with [signageOS TypeScript](/knowledge-base/dev-tools-cli-typescript).
|
|
226
|
+
|
|
227
|
+
```typescript
|
|
228
|
+
play(
|
|
229
|
+
uri: string,
|
|
230
|
+
x: number,
|
|
231
|
+
y: number,
|
|
232
|
+
width: number,
|
|
233
|
+
height: number
|
|
234
|
+
): Promise<void>;
|
|
235
|
+
prepare(
|
|
236
|
+
uri: string,
|
|
237
|
+
x: number,
|
|
238
|
+
y: number,
|
|
239
|
+
width: number,
|
|
240
|
+
height: number,
|
|
241
|
+
options?: {
|
|
242
|
+
'4k'?: boolean;
|
|
243
|
+
background?: boolean;
|
|
244
|
+
volume?: number;
|
|
245
|
+
}
|
|
246
|
+
): Promise<void>;
|
|
247
|
+
stop(
|
|
248
|
+
uri: string,
|
|
249
|
+
x: number,
|
|
250
|
+
y: number,
|
|
251
|
+
width: number,
|
|
252
|
+
height: number
|
|
253
|
+
): Promise<void>;
|
|
254
|
+
pause(
|
|
255
|
+
uri: string,
|
|
256
|
+
x: number,
|
|
257
|
+
y: number,
|
|
258
|
+
width: number,
|
|
259
|
+
height: number
|
|
260
|
+
): Promise<void>;
|
|
261
|
+
resume(
|
|
262
|
+
uri: string,
|
|
263
|
+
x: number,
|
|
264
|
+
y: number,
|
|
265
|
+
width: number,
|
|
266
|
+
height: number
|
|
267
|
+
): Promise<void>;
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## Errors
|
|
271
|
+
Although we are doing our best, following errors may occur when working with the video stream.
|
|
272
|
+
|
|
273
|
+
::: table-responsive
|
|
274
|
+
| Code | Type | Message |
|
|
275
|
+
| ---- | ---- | ------- |
|
|
276
|
+
| 41501 | AppletVideoError | This video was not played yet. The arguments: `arguments` |
|
|
277
|
+
| 51501 | InternalVideoError | Couldn't play the video. |
|
|
278
|
+
| 51502 | InternalVideoError | Couldn't prepare the video. |
|
|
279
|
+
| 51503 | InternalVideoError | Couldn't stop the video. |
|
|
280
|
+
| 51504 | InternalVideoError | Couldn't pause the video. |
|
|
281
|
+
| 51505 | InternalVideoError | Couldn't resume the video. |
|
|
282
|
+
:::
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Management
|
|
3
|
+
author: Miroslav Behina
|
|
4
|
+
date: 1.4.2018
|
|
5
|
+
type: js-management-api
|
|
6
|
+
tags:
|
|
7
|
+
- applet
|
|
8
|
+
- applet_api
|
|
9
|
+
- api
|
|
10
|
+
- js_management_api
|
|
11
|
+
description: "[Management JS API] To make the management of devices more viable and open there is a management API prepared. Through this API things like device firmware, battery status, brightness, network information, remote control, power, time or volume can be monitored."
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Management
|
|
15
|
+
|
|
16
|
+
To make the management of devices more viable and open there is a management API prepared. Through this API things like device firmware, battery status, brightness, network information, remote control, power, time or volume can be monitored.
|
|
17
|
+
|
|
18
|
+
## All methods
|
|
19
|
+
::: table-responsive
|
|
20
|
+
| Method | Description | Supported since |
|
|
21
|
+
| ------ | -------- | :------------: |
|
|
22
|
+
| `supports()` | Enum of supported features | 2.0.0 |
|
|
23
|
+
| `getModel()` | Information about device model | 2.0.0 |
|
|
24
|
+
| `getSerialNumber()` | Information about device serial number | 2.1.0 |
|
|
25
|
+
| `getBatteryStatus()` | Information about the battery level and battery charging status | 2.1.0 |
|
|
26
|
+
| `getNetworkInfo()` | Information about network connections, IPs and DNS | 4.0.0 |
|
|
27
|
+
| `getTemperature()` | Current device temperature | 3.0.0 |
|
|
28
|
+
| `resetSettings()` | Clear all settings on device | 4.0.0 |
|
|
29
|
+
| `factoryReset()` | Do a device factory reset | 4.0.0 |
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
34
|
+
<div class="col-12 d-flex">
|
|
35
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/basics/">
|
|
36
|
+
<div>
|
|
37
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
38
|
+
<i class="fab fa-github svg-black"></i>
|
|
39
|
+
</div>
|
|
40
|
+
<div>
|
|
41
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Basic usage of management API</h3>
|
|
42
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</a>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
50
|
+
<div class="col-12 d-flex">
|
|
51
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/js-management-getters/">
|
|
52
|
+
<div>
|
|
53
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
54
|
+
<i class="fab fa-github svg-black"></i>
|
|
55
|
+
</div>
|
|
56
|
+
<div>
|
|
57
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Getting basic management API data</h3>
|
|
58
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</a>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
66
|
+
<div class="col-12 d-flex">
|
|
67
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" target="_blank" href="https://github.com/signageos/applet-examples/blob/master/examples/management-js-api/js-management-setters/">
|
|
68
|
+
<div>
|
|
69
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
70
|
+
<i class="fab fa-github svg-black"></i>
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">Setting basic management API data</h3>
|
|
74
|
+
<div class="wide-box__description">Working example on our Github</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</a>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
## supports()
|
|
82
|
+
Method `supports()` will show you what capabilities the deployed device currently has.
|
|
83
|
+
|
|
84
|
+
::: table-responsive
|
|
85
|
+
| Param | Type |Description |
|
|
86
|
+
| -------------- | ----------------------------- | ---------------------------- |
|
|
87
|
+
| `capability` | String | Name of capability |
|
|
88
|
+
:::
|
|
89
|
+
|
|
90
|
+
### Javascript example
|
|
91
|
+
```javascript
|
|
92
|
+
await sos.management.supports("NETWORK_INFO"); // Returns boolean
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## getModel()
|
|
96
|
+
Method `getModel()` will display the model of your device.
|
|
97
|
+
|
|
98
|
+
```javascript
|
|
99
|
+
await sos.management.getModel(); // Returns string ex. Philips-10BDL3051T
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## getSerialNumber()
|
|
103
|
+
Method `getSerialNumber()` will display device's serial number.
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
await sos.management.getSerialNumber(); // Returns string ex. AU1A1xxxxxx07502
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## getBatteryStatus()
|
|
111
|
+
Method `getBatteryStatus()` will display information about device's battery.
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
await sos.management.getBatteryStatus(); // Returns object
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Example of response
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"chargeType": "AC",
|
|
121
|
+
"isCharging": true,
|
|
122
|
+
"lastChargingTime": "2019-02-01T19:27:30.393Z",
|
|
123
|
+
"percentage": 100,
|
|
124
|
+
"updatedAt": "2019-02-01T19:27:31.247Z"
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## getTemperature()
|
|
129
|
+
Method `getTemperature()` will display information about the current temperature of the device.
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
await sos.management.getTemperature(); // Returns number values 0-100
|
|
133
|
+
```
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: App
|
|
3
|
+
author: Krystof Woldrich
|
|
4
|
+
date: 24.4.2018
|
|
5
|
+
type: js-management-api
|
|
6
|
+
tags:
|
|
7
|
+
- applet
|
|
8
|
+
- applet_api
|
|
9
|
+
- api
|
|
10
|
+
- js_management_api
|
|
11
|
+
description: "[Management JS API] Management API app lets you check application type and upgrade the application."
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# App
|
|
15
|
+
|
|
16
|
+
Management API app lets you check application type and upgrade the application.
|
|
17
|
+
|
|
18
|
+
## All methods
|
|
19
|
+
::: table-responsive
|
|
20
|
+
| Method | Description | Supported since |
|
|
21
|
+
| ------ | -------- | ------------- |
|
|
22
|
+
| `getType()` | Information about the platform your application is running on (eg. Tizen) | |
|
|
23
|
+
| `getVersion()` | Information about current version of your application is running on the device (eg. 2.0.5) | |
|
|
24
|
+
| `upgrade()` | Upgrade/Downgrade the Core App | |
|
|
25
|
+
:::
|
|
26
|
+
|
|
27
|
+
## getType()
|
|
28
|
+
Method `getType()` returns the display type of application on the device.
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
await sos.management.app.getType(); // Returns ex. sssp, android
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Returns one of the following types:**
|
|
35
|
+
- `android`
|
|
36
|
+
- `brightsign`
|
|
37
|
+
- `default` (Emulator)
|
|
38
|
+
- `linux` (Raspberry Pi)
|
|
39
|
+
- `sssp`
|
|
40
|
+
- `tizen`
|
|
41
|
+
- `webos`
|
|
42
|
+
- `windows`
|
|
43
|
+
|
|
44
|
+
::: alert alert--info
|
|
45
|
+
If you need to get specific Android brand or Raspberry Pi model, use the [Firmware API](api/js/management/latest/2-js-management-firmware) `getType()`.
|
|
46
|
+
:::
|
|
47
|
+
|
|
48
|
+
## getVersion()
|
|
49
|
+
Method `getVersion()` returns the version of Core App application on the device.
|
|
50
|
+
|
|
51
|
+
*This API is only available for Applets deployed via Timing from Box or REST API.*
|
|
52
|
+
|
|
53
|
+
```javascript
|
|
54
|
+
await sos.management.app.getVersion(); // Returns ex. 2.0.0
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## upgrade()
|
|
58
|
+
Method `upgrade()` will upgrade the [Core App](knowledge-base/application-version-and-release-policy) on the device.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### A) Upgrading signageOS Core App
|
|
62
|
+
To upgrade to signageOS Core App, use the following parameters:
|
|
63
|
+
|
|
64
|
+
::: table-responsive
|
|
65
|
+
| Param |Type | Value |Description |
|
|
66
|
+
| -------------- | ----------------------------- | ------- | --------------------- |
|
|
67
|
+
| `baseUrl` | String | `https://cdn.your-cms.com/tizen/`| Location of the new version of the Core App |
|
|
68
|
+
| `version` | String | `x.x.x` | Core App version |
|
|
69
|
+
:::
|
|
70
|
+
|
|
71
|
+
<div class="row d-flex align-content-stretch force-padding-10">
|
|
72
|
+
<div class="col-12 d-flex">
|
|
73
|
+
<a class="wide-box wide-box--white d-flex align-content-stretch widebox-kb-color" href="/changelogs">
|
|
74
|
+
<div>
|
|
75
|
+
<div class="wide-box__image d-flex align-items-center">
|
|
76
|
+
<i class="fas fa-sticky-note svg-black"></i>
|
|
77
|
+
</div>
|
|
78
|
+
<div>
|
|
79
|
+
<h3 class="wide-box__title wide-box__title__small pl-85">List of our latest core app versions</h3>
|
|
80
|
+
<div class="wide-box__description">signageOS Documentation</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</a>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
### Javascript example
|
|
88
|
+
```javascript
|
|
89
|
+
await sos.management.app.upgrade('https://example.com/signageos-core-app.zip', '2.0.0');
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
<br>
|
|
93
|
+
|
|
94
|
+
### B) Upgrading Open Core App with built-in Applet
|
|
95
|
+
If you are [building your own Core App](/knowledge-base/open-standalone-signageos-provisioning) with the built-in Applet, use only one parameter `absolutePathUrl`.
|
|
96
|
+
|
|
97
|
+
The `absolutePathUrl` should point to the application file, e.g. `https://cdn.your-cms.com/rpi/linux_202006100815_1.0.1_779c303408.zip`.
|
|
98
|
+
|
|
99
|
+
::: table-responsive
|
|
100
|
+
| Param |Type | Value |Description |
|
|
101
|
+
| -------------- | ----------------------------- | ------- | --------------------- |
|
|
102
|
+
| `absolutePathUrl`| String | `https://cdn.your-cms.com/rpi/linux_xxx.zip`| Location of the new version of the Open Core App with built-in Applet |
|
|
103
|
+
:::
|
|
104
|
+
|
|
105
|
+
### Javascript example
|
|
106
|
+
```javascript
|
|
107
|
+
await sos.management.app.upgrade('https://cdn.your-cms.com/rpi/linux_xxx.zip');
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
<br>
|
|
111
|
+
|
|
112
|
+
Because each of the platforms (Tizen, webOS, BrightSign, etc.) are different, use the following table to define correct `absolutePathUrl`:
|
|
113
|
+
|
|
114
|
+
::: table-responsive
|
|
115
|
+
| Platform | absolutePathUrl | Note |
|
|
116
|
+
| -------- | --------------- | ---- |
|
|
117
|
+
| Tizen | `https://cdn.your-cms.com/core-apps/landscape` <br/> `https://cdn.your-cms.com/core-apps/portrait` | |
|
|
118
|
+
| SSSP | `https://cdn.your-cms.com/core-apps/landscape_full-hd` <br/> `https://cdn.your-cms.com/core-apps/portrait_full-hd` | |
|
|
119
|
+
| webOS | `https://cdn.your-cms.com/core-apps/com.lg.app.signage_latest.ipk` <br/> `https://cdn.your-cms.com/core-apps/com.lg.app.signage_latest.zip` | `.zip` is for old webOS 1.0 and 2.0 only |
|
|
120
|
+
| Android | `https://cdn.your-cms.com/core-apps/io.signageos.open_3.1.0.android.apk` | If you are building for specific version of Android (e.g. Benq) you will have a BenQ specific apk|
|
|
121
|
+
| BrightSign | `https://cdn.your-cms.com/core-apps/display-brightsign.zip` | |
|
|
122
|
+
| NEC / RPi | `https://cdn.your-cms.com/core-apps/linux_202006100815_1.0.1_779c303408.zip` | |
|
|
123
|
+
:::
|