Android

Материал из SmartPlayer
Версия от 14:04, 17 октября 2024; N.Bloshkin (обсуждение | вклад) (Новая страница: «Only one application can be in "device owner" mode on the device. To reset the "device owner," you can only do so by performing a factory reset (Settings > Backup & Reset > Factory data reset).<br/>»)
Другие языки:

Minimum Requirements

Operating system: Android 5.0 and higher (API level: 21 and higher); Network interface availability (WiFi or Ethernet); RAM: 1 GB and higher; Flash memory (hard drive): from 8 GB.

Recommended Requirements

Operating system: Android 7.0 and higher (API level: 24 and higher); Network interface availability (WiFi or Ethernet); RAM: 2 GB and higher; Flash memory (hard drive): from 16 GB.

Android OS Set-Top Boxes (Android Smart TV)

Important! If the set-top box is not in the recommended list, please contact SmartPlayer representatives for advice on compatibility and supported functionality.

STB name Reboot App update Screenshot from video Setting the time (time zone) Work 24/7 Root access WiFi 2.4 / 5 GHz Disable automatic firmware update Remove unnecessary applications Recommended by SmartPlayer Optional
X2 CUBE

Setup Instructions

Yes Yes Yes Yes Yes Yes Yes / Yes In development In development
Yes (as a professional solution)
Yandex.Market

Of. website

Ugoose AM3 2Gb / 16Gb

Setup Instructions

Yes Yes Yes Yes Yes Yes Yes / Yes In development In development
Yes (as a professional solution)
Yandex.Market

Of. website Review

INVIN IPC002 1Gb / 8Gb Yes Yes Yes Yes Yes Yes Yes / No In development In development
Yes (as a budget solution)
Yandex.Market
W95 1Gb / 8Gb Yes Yes In development Yes Yes Yes Yes / No In development In development
Yes (as a budget solution)
Yandex Market
Xiaomi Mi Box International Version

Requires upgrade to Android 8.0 through system settings.

No No Yes No Yes No Yes / Yes No No
No
Yandex Market
Invin W5 2Gb / 16Gb Yes Yes No Yes No Yes Yes / No In development In development
No
Yandex Market

|- |Ugoos X4 Box Family Series (Cube, Pro, Plus) |Да |Да |Да |Да |Да |Да |Да/Да |В разработке |В разработке

|
Да

|Яндекс.Маркет, Amazon


|- |Ugoos X3 Box Family Series (Cube, Pro, Plus) |Да |Да |Да |Да |Да |Да |Да/Да |В разработке |В разработке

|
Да

|Яндекс.Маркет, Amazon

Detailed description of features:

  • "Reboot" - physically reboot the device. SmartPlayer will start automatically after the operating system starts.
  • "Application update" - with the development of the client application, SmartPlayer releases updates for its application, in which bugs can be fixed, new functionality added. This function will allow you to update the client application remotely, without the physical involvement of the administrator at the device installation point.
  • "Screenshot from video" - allows you to take a screenshot of the device's screen while it is playing a video. This function applies only to videos, if you plan to show only pictures, the screenshot will be taken from any device.
  • "Setting the time (time zone)" - in consoles, there is no battery that is responsible for the internal clock of the device, and therefore the application maintains the current time on the consoles. If the set-top box has access to the Internet, then this function is irrelevant, it is important only in closed networks (without Internet access)
  • "Work 24/7" - prefix work 24 hours 7 days a week.
  • "Root access" is a superuser on set-top boxes who has the right to change system settings. Root access allows the SmartPlayer application to administer the device without restrictions. Root access is provided by console manufacturers.
  • "WiFi 2.4 / 5 GHz" - WiFi can work in two ranges, usually 5 GHz networks are less loaded, which allows you to achieve a more stable network state
  • "Disable automatic firmware update" - manufacturers release firmware (operating system) updates for their devices, this function allows the system administrator to control when the update is performed.
  • "Remove unnecessary applications" - by default, console manufacturers install many applications. Some applications can make notifications and interfere with the playback of content, with this function SmartPlayer will hide unnecessary applications from the console.
  • "Recommended by SmartPlayer" - this means that the set-top box has been tested by SmartPlayer and is recommended for organizing Digital Signage projects
  • "Where to buy" - shops where you can buy a set-top box.

P.s. All of the above information is the result of testing by SmartPlayer. Even one model may differ from batch to batch.

P.s. By default, all devices starting from Android 5.0 are supported.

Latest firmware for TV BOX: https://chinagadgetsreviews.com/firmwares

Application Privileges

The application on the device can have different privileges, depending on which the device can be controlled

  • Normal - by default when installing SmartPlayer app on any device with Android 5.0 or higher
  • Device Owner - issued using the developer settings by the application installer. If the device has root access, SmartPlayer will automatically elevate itself to Device Owner.
  • Privileged - a privileged application when the firmware manufacturer adds an application to the system partition / system / priv-app. It is more secure than rooting the device.
  • Root - the superuser available for the application, the highest level of access for the application. Root is provided by the firmware manufacturer, usually devices without Google certification.
Производитель устройства Наличие интеграции Режим работы
Phillips (проф. серия) Да Информация по интеграции
Phillips (коммерческие) Да Информация по интеграции
Samsung (KNOX) Да Интеграция с SDK производителя устройства
TCL Нет Попытки запросить SDK у производителя по горячей линии, не дали результата. Готовы интегрироваться при наличии SDK у производителя. Настройка
BenQ (проф. серия) Да Signature
Xiaomi Нет Попытки запросить SDK у производителя по горячей линии, не дали результата. Готовы интегрироваться при наличии SDK у производителя.
HIKVISION Да DeviceOwner. Интеграция с SDK в процессе выполнения.

You can do all the settings manually, but usually this does not satisfy the needs of the b2b sector. The table below shows the capabilities of the application without user participation at the point (administration through the SmartPlayer personal account).

Command Usual Device Owner Privileged Root
Reboot the device No Yes (with Android 7.0 and higher) Yes Yes
Hide (show) all system launchers No No No Yes
Turn off device No No No Yes
Change device orientation Yes (application level) Yes (application level) Yes (at the system settings level) Yes (at the system settings level)
Set time and date No Yes (with Android 9.0 and higher) Yes Yes
Setting the time zone No Yes (with Android 9.0 and higher) Yes Yes
Installing third-party applications No No No Yes
Sound setting Yes Yes Yes Yes
Updating SmartPlayer application from server No Yes No Yes

Who and what mode can issue to the application.

Who can give access Usual Device Owner Privileged Root
Integrator Yes Yes No No
Firmware developer Yes Yes Yes Yes


Плюсы и минусы работы приложения в разных режимах.

Режим работы приложения Минусы (-) Плюсы (+)
Обычный
  • Нет управления устройством, что часто нужно в рамках b2b сектора
  • Приложение не имеет прав для работы на низком уровне с устройством
  • Проигрывать контент будет на любом устройстве AndroidOS 5.0 и выше
  • Штатная установка которая не зависит от третьих лиц
Device Owner
  • Обычному пользователю незнакомому с консолью сложно получить. Google пользовательский способ установки дает (через QR код), только если использовать аккаунт google на устройстве. Многие устройства на Android OS от сторонних производителей его не поддерживают.
  • При настройке больше 10 устройств становится проблематична установка, много ручных действий в системе.
  • Необходимо ставить инструменты разработки на компьютер настройщика приложения.
  • Большенство возможностей, зависит от версии Android OS, т.е. API системы добавляется по мере развития операционной системы.
  • Официальный путь, в операционной системе Android по управлению устройством для сторонних приложений.
Signature
  • Каждую версию приложения от SmartPlayer необходимо подписывать у производителя прошивки
  • Рекомендуемый способ от компании SmartPlayer
  • Большие возможности по управлению устройством (см. табличку выше)
  • Выполнения межпроцессорных взаимодействий из приложения, что дает большое кол-во возможностей по управлению устройством
  • Обеспечивается безопасность устройства (по отношению к root)
Root
  • Безопасность. Google не сертифицирует устройства с root, в релизной версии прошивки они должны быть отключены.
  • Безграничные возможности по управлению устройством.
  • SmartPlayer ПО в сборке релизной отключит возможность управления устройством удаленно, что позволит улучшить безопасность. Потребуется физический доступ к устройству, чтобы изменить его настройки.
  • Нет зависимости от третьих лиц, все доработки делаются силами SmartPlayer.

Granting Device Owner Mode. This functionality exists in AndroidOS. AndroidOS TV does not support it.</>

To enable the “device owner” mode, you will need to connect to the device via ADB (Android Device Bridge). After establishing the connection (either via cable or WiFi, it doesn't matter), for enabling via cable, you need to activate developer mode by tapping the build name (or version) 7 times. Then, the developer settings will open, where you need to enable the option “USB Debugging” and set the USB mode to MTP. By default, the mode is set to “Charging,” which doesn't allow the device to connect. If you choose to connect via WiFi, you need to open port 5555 on the device using a terminal command. The terminal itself can be downloaded from Google Play.

After connecting, check the device with the command:
$ adb devices
The output should be similar to the following:

Enable “Device Owner.”
For production build:
$ adb shell dpm set-device-owner org.smartplayer.android.client/co.displaysolutions.digitalsignage.SPAdminReceiver
For development build:
$ adb shell dpm set-device-owner org.smartplayer.client.develop/co.displaysolutions.digitalsignage.SPAdminReceiver

If everything goes successfully, adb will display a message that the owner of the device is now the SmartPlayer application. After this, the application must be restarted (once) to activate the kiosk mode for the application.

Only one application can be in "device owner" mode on the device. To reset the "device owner," you can only do so by performing a factory reset (Settings > Backup & Reset > Factory data reset).

Installing the client application on a phone (tablet)

Download the application to the device using the link received. Run apk file. When the notification appears, click "Settings"



Enable "Unknown sources"



For security reasons, select "Allow this installation only". Click OK.



Select "Install"



Wait for the installation to complete



Click "Open"



Wait for the PIN-code to appear. Enter the PIN-code in your personal account.

Troubleshooting

Installing the application for APK

If an error appears during installation (there may be different text) and a window does not appear to allow installation from unknown sources. Do the following:

  • Android 5.0+ and up to 8.0 (Android Oreo). Settings -> Lock screen and protection -> Unknown sources -> (see further instructions above)
  • Android 8.0+ Settings -> Applications -> Additional settings (... in the upper right corner) -> Special access rights -> Install unknown applications -> Allow installation for required applications
  • During installation, the message 'there was a problem parsing the package' may appear. This means that the client application is not fully downloaded, or there were errors during loading on the media.

Device Registration (First Launch)

During device registration, data using the 9-digit code must be retrieved from the SmartPlayer server. If there is no connection to the server, an error like this will be displayed:

mini
mini

This error indicates that the connection to the server cannot be established. The server address is specified in the error description. Solutions:

  • Check the network settings on the device.
  • Check the availability of the server URL from the device by entering the address described in the error into any browser. In our case, it’s https://jenkins.smartplayer.org. The SmartPlayer server should be accessible. If it is available, the browser will display the UI.
mini
mini
  • If the server is accessible in the browser but the connection still fails, corporate networks may use proxies to modify network packets. Disable the proxy.
  • If you are unable to solve the problem on your own, provide the debug information from the application to a SmartPlayer representative or send it to support@smartplayer.org.

After a successful connection to the server, the UI for device registration will be displayed.

mini
mini

Granting Permissions to Take Screenshots from Video

If the application does not have the necessary privileges, it will not be able to take screenshots from the video (this is an Android operating system security limitation). You will need to manually grant permissions on the device, to do this:

  • Select the target device in the dashboard by clicking on the tile in the "Devices" section.
  • In the device's right menu, click on the menu item titled "Settings" and disable the "Kiosk Mode," which is located in the "Security" section. Save the updated device settings.
mini
mini
  • In the device's right menu, click on the menu item titled "Permissions" (see screenshot)
mini
mini

  • After clicking, a window will appear to grant permissions. Click "Allow" next to "Permission to take screenshots:"
mini
mini

  • After clicking "Allow," a system dialog box will appear on the device where you need to check the box (Don't show again) and allow the application to capture the device's screen
mini
mini

  • Verify that permissions have been granted. Play the video and try to take a screenshot through the dashboard.
  • In the device's right menu, click on the menu item titled "Settings" and enable the "Kiosk Mode," which is located in the "Security" section. Save the updated device settings.

Launch in vertical orientation

SmartPlayer supports vertical orientation on some devices (on devices that support the rotation option).

  1. Go to the device settings
  2. Image/Screen settings
  3. Select rotating screen option
  4. Install SmartPlayer app

Kiosk Mode

SmartPlayer for Android supports kiosk mode.

When the kiosk mode is enabled, the user cannot leave the application and the following features are disabled:

  • pressing from the remote control does not work (for consoles with Android).
  • home button does not work the app automatically restarts after 100 ms
  • application hides all dialogs that appear on top of the application

Disable kiosk mode

  • Move the mouse to the upper right corner
  • Hold down the left mouse button for 5 seconds
  • Enter code 95224
  • After that, the app will disable kiosk mode

Administering kiosk mode

'Disable (Enable) kiosk mode if the device is online. '
In your personal account, you can disable it through the "Kiosk mode" settings. The setting will be saved on the server and the next start of the application will already be without kiosk mode. Select device (group of devices) -> Android platform -> Kiosk mode -> select “Disable” -> Click on the button: “Save changes”
Similarly, the kiosk mode is activated through your personal account. Select a device (group of devices) -> Android platform -> Kiosk mode -> select “Enable” -> Click on the button: “Save changes”
'Disable kiosk mode if devices are offline. '
From the remote control
On the remote, you need to execute the following key combination within 7 seconds from the remote: ENTER -> BACK -> BACK-> LEFT
`` With a connected mouse to the device
Long click with the mouse cursor in the upper right corner (200x200 pixels area), after which a dialog box will appear, where you need to enter the password within 15 seconds, password: 95224
Disable kiosk mode by touch event
Long press with your finger in the upper right corner (200x200 pixel area), after which a dialog box will appear where you need to enter the password within 15 seconds, password: 95224

After disabling kiosk mode, the application will show a list of available Launcher applications that can be used to exit the application. The selection dialog will automatically disappear after five seconds. When the kiosk mode is off, the BACK / HOME button works normally, exiting the application.

Enabling Kiosk Mode Offline.
Enabling kiosk mode offline is done similarly to disabling it, by long pressing (with a mouse or finger) in the top right corner (200x200 pixel area). When activated, a message will appear indicating that kiosk mode has been enabled.

== Playing Content in Synchronization Mode ==
Synchronization mode is the operating mode of devices within the SmartPlayer personal account, where the content being played is synchronized across devices within a single broadcast.

Requirements for Proper Synchronization Mode Operation

  1. Devices must be connected via RJ45 and be on the same network.
  2. Create a group of devices and move the devices that require content synchronization into this group.
  3. Next, configure this group: Settings → Android platform → Synchronize content → Yes → Save changes.
  4. Devices must have the same firmware for proper synchronization mode operation.

Content Features

  • The playlist for two different broadcasts using the video wall mode must have the same duration.
  • The videos being used must have the same FPS (frames per second).
  • Synchronization is only possible with video files. If an image is used, it must first be converted into video format using the built-in video editor.
  • Videos in broadcasts must have the same duration. Example: Two broadcasts, each with a total time of 1 minute. The content of the first broadcast consists of two videos, each 30 seconds long, and the content of the second broadcast also consists of two videos, each 30 seconds long. If in the second broadcast there were two videos but video 1 was 10 seconds long and video 2 was 50 seconds long, synchronization would not occur.
  • Standard parameters for video wall clips: resolution 1920x1080, frame rate 25, codec h264, container .mp4, no audio track.
  • All videos in the synchronized playlist must have the same resolution.
  • All videos in the synchronized playlist must have the same FPS.
  • All videos in the synchronized playlist must have the same bitrate.
  • The presence (or absence) of an audio track must be the same for all videos in the synchronized playlist.
It is possible (though not recommended) to synchronize different models of Android OS devices.

Setting up the phone in open space mode

  1. Configure the Internet on your phone.
  2. Check the availability of new firmware on the phone (Settings - System - System update). If there is new firmware, update it.
  3. Disable lock mode on the phone. (Settings - Security - Lock screen - No)
  4. After installing the SmartPlayer application, check Settings - Home application - there should be a standard launcher, not SmartPlayer

Android TV makers

Manual Update of the Client Application

When the application is running in normal mode, without privileges, the client application update is only available with user participation.<br

  1. The new version of the application is uploaded to the server (usually done by the administrator).
  2. Follow the document Manual Update of SmartPlayer.

Hardware Limitations of the Platform

Android devices have the following hardware limitations:

  1. Obtaining root access on the device opens up access to more device interaction capabilities.
  2. Depending on the Android OS device being used, the number of videos that can be played simultaneously varies. This functionality depends on the decoders used on the devices.
The list of hardware limitations on Android OS devices varies. This situation is due to the fact that each device manufacturer may enable or block the ability to use functionality available on the Android OS platform.

Playing Content with Non-Standard Resolution on Android OS Set-Top Boxes

For set-top boxes running Android OS.

To start working with non-standard resolution content on a set-top box running Android OS, the user must first log in to the personal account.

Next, the user needs to go to the "Broadcasts" section in the personal account and select the "Create" category.
Example of the "Broadcasts" section and the "Create" category in the user's personal account

The next step is for the user to create a broadcast with any orientation: vertical or horizontal. This parameter depends on the set-top box settings. The user must click the "Save" button at the bottom right to apply the settings.

Example of a created horizontal broadcast with a resolution of 1920 x 1080

After completing the above steps, the user must create a broadcast zone by clicking on the special icon.

Example of the zone creation icon in the broadcast

When selecting the zone, a toolbar will appear on the right, where the zone size parameters can be specified in pixels. In the "Width" and "Height" fields, the user must enter the required size values in numbers.

Example of the "Width" and "Height" parameters in the content placement zone in the broadcast

After setting the "Width" and "Height" parameters, the user should select the content to be played. This action is also done in the right toolbar.

Example of selecting content for broadcast in the zone
The final step for the user will be to install the broadcast on the device. All the previously completed actions will lead to the correct playback of non-standard resolution content on Android OS devices.
Example of a configured and working device

Predefined Media Stream Settings

Due to the large number of Android OS set-top box manufacturers who make their devices unique, even within the same company, there are often issues with content playback. To resolve many of these issues, users can use preset settings for the device during broadcast creation.

Step-by-Step Instructions

For the user to interact with the presets, they need to log in to their personal account and find the "Broadcasts" section. In the "Broadcasts" section, they need to select the "Create" category.
Example of the "Broadcasts" section and the "Create" category in the personal account

The next step is to create a content zone in the broadcast by using the special icon.

Example of the "Add Zone" icon when creating a broadcast and drawing the zone on the screen page
Next, the user needs to select the media stream content that has been added to their personal account.
Example of adding the required media stream to the broadcast zone
After adding the media stream to the broadcast zone, the user needs to click on the content in the zone again to change the display of settings in the right toolbar with the broadcast parameters.
Example of the toolbar with broadcast settings
In the opened toolbar, the user needs to select the "Content Settings" block and go to its "Android" section.
Example of the "Content Settings" block and the "Android" section in the toolbar

Opening this section gives the user access to preset settings for devices.

Preset Settings List

The preset settings block in the "Android" section is referred to as "Stream Presets."
Example of settings in the "Stream Presets" block
In this block, only one setting can be changed – the "Preset Type." This setting allows the user to choose from four types of presets:
  • NetUP
  • Ugoos 1
  • Ugoos 2
  • Manual settings
By default, the other settings in the "Stream Presets" block are locked for any named preset. The "manual settings" option unlocks access to the settings located below.

More About Manual Settings

In the "Manual settings" mode, the user gains access to all settings located below, specifically:

  1. Stream rendering surface – allows selecting rendering capabilities depending on the device manufacturer. Three options are available: surface – the simplest and lightest rendering option for the system; textures – a heavier option for rendering, allowing better graphic processing on powerful set-top boxes; vlc_layout – combines both solutions and automatically applies the appropriate option based on the player's parameters and the device's power.
  2. VLC settings – allows manually configuring VLC player settings. Detailed information on how to specify VLC settings manually can be found at the following links: [https://wiki.videolan.org/Documentation

/ link 1], [https://wiki.videolan.org/Documentation / link 2], [https://wiki.videolan.org/Documentation / link 3].

  1. Checkbox for the ability to use ExoPlayer – allows using ExoPlayer for playing stream content. Most often used for streams: rtp, rtsp, udp, and hls.

After completing all the settings, the user needs to click the "Save" button in the middle of the screen and finalize the broadcast setup for playback on the device.