Android 4.4/en: различия между версиями

Материал из SmartPlayer
Новая страница: «Support for Android 4.4»
 
Новая страница: «== '''Description of the Situation''' == Previously, client applications on the SmartPlayer platform were developed for API versions starting from 21. Earlier versions were not supported. However, a task emerged to adapt the client application for Android version 4.4 and to create a solution on it that allows stable playback of simple types of broadcasts. This solution was developed and implemented in practice. {{Note|It is recommended to use newer devices t...»
Строка 1: Строка 1:
<div lang="ru" dir="ltr" class="mw-content-ltr">
== '''Description of the Situation''' ==
== '''Описание ситуации''' ==
Previously, client applications on the SmartPlayer platform were developed for API versions starting from 21. Earlier versions were not supported. However, a task emerged to adapt the client application for Android version 4.4 and to create a solution on it that allows stable playback of simple types of broadcasts. This solution was developed and implemented in practice.
На платформе SmartPlayer раньше создавались клиентские приложения под версии API начиная с 21 версии. Более ранние версии не поддерживались. Но, появилась задача адаптировать клиентское приложение под Android версии 4.4 и создать на нём решение, которое позволит стабильно отыгрывать простые виды трансляций. Данное решение было проработано и реализовано на практике.
{{Note|It is recommended to use newer devices that meet the minimum requirements for client applications (Android 7.0)|warn}}
{{Note|Рекомендуется использовать более новые устройства, соответствующие минимальным требованиям для клиентских приложений (Android 7.0)|warn}}
== '''Operation Logic''' ==
== '''Логика работы''' ==
For implementation, a scenario was considered that included:
Для реализации рассматривался сценарий, который включал в себя:
* playback of video and graphical content;
* проигрывание видео и графического контента;
* launching a broadcast in a single zone.<br>
* запуск трансляции в одной зоне.<br>
During the preparation of the client application on a device with Android 4.4 OS, client application version 1.67 was used. This version included many functions that overloaded the hardware of the old device.<br>
В процессе подготовки клиентского приложения на устройстве с ОС Android 4.4 использовалось клиентское приложение ver. 1.67. У этого клиентского приложения множество функций, которые нагружало «железо» старого устройства.<br>
== '''Implementation Challenges''' ==
== '''Проблемы при реализации''' ==
# Version 4.4 has decoding issues. During refinement, the decoder and the decoding process were modified for low-level interaction.
# У версии 4.4 есть проблемы с декодингом. При доработке был изменен декодер и процесс декодинга при низкоуровневом взаимодействии.  
# Network interaction and certificate handling issues were addressed during development. To ensure correct operation of security protocols, a separate library was used that added the necessary certificates.
# При разработке были проработаны проблемы с сетевым взаимодействием и работой сертификатов. Для корректной работы протоколов безопасности использовалась отдельная библиотека, которая добавляла необходимые сертификаты.
# Memory leak issue. Due to the technical characteristics of the device, there were persistent memory overflow problems. The connection handling was kept via rxJava, while playback was implemented using coroutines.
# Проблема с утечкой памяти. Из-за технических характеристик устройства были проблемы с постоянным переполнением памяти. Реализация получения подключений была оставлена через rxJava, а проигрывание трансляций было сделано через корутины.
== '''Limitations''' ==
== '''Ограничения''' ==
Android 4.4 KitKat is quite an old OS, and the implementation of the client application comes with many limitations. Known limitations at this time:
Android 4.4 KitKat является достаточно старой ОС и реализация работы клиентского приложения имеет множество ограничений. Известные на данный момент ограничения:
* the device can play only one content item in one zone;
* устройство может проигрывать один контент в одной зоне;
* supports playback of graphical and video content;
* проигрывает контент графический и видео контент;
* does not operate in multi-zone mode;
* не работает в многозонном режиме;
* working with audio content is not recommended due to excessive load on the device.
* работа с аудиоконтентом не рекомендуется из-за избыточной нагрузки на устройство.
</div>

Версия от 11:32, 24 июня 2025

Description of the Situation

Previously, client applications on the SmartPlayer platform were developed for API versions starting from 21. Earlier versions were not supported. However, a task emerged to adapt the client application for Android version 4.4 and to create a solution on it that allows stable playback of simple types of broadcasts. This solution was developed and implemented in practice.

It is recommended to use newer devices that meet the minimum requirements for client applications (Android 7.0)

Operation Logic

For implementation, a scenario was considered that included:

  • playback of video and graphical content;
  • launching a broadcast in a single zone.

During the preparation of the client application on a device with Android 4.4 OS, client application version 1.67 was used. This version included many functions that overloaded the hardware of the old device.

Implementation Challenges

  1. Version 4.4 has decoding issues. During refinement, the decoder and the decoding process were modified for low-level interaction.
  2. Network interaction and certificate handling issues were addressed during development. To ensure correct operation of security protocols, a separate library was used that added the necessary certificates.
  3. Memory leak issue. Due to the technical characteristics of the device, there were persistent memory overflow problems. The connection handling was kept via rxJava, while playback was implemented using coroutines.

Limitations

Android 4.4 KitKat is quite an old OS, and the implementation of the client application comes with many limitations. Known limitations at this time:

  • the device can play only one content item in one zone;
  • supports playback of graphical and video content;
  • does not operate in multi-zone mode;
  • working with audio content is not recommended due to excessive load on the device.