Smarty

  1. Home
  2. Docs
  3. Smarty
  4. Portal and application settings
  5. Options for the titanium interface

Options for the titanium interface

Additional options allow you to change the appearance and behavior of the application, and are specified in the configuration file /etc/microimpuls/portal/client.js.

The following options are available for the titanium interface.

Authorization

At the first launch of the application, the subscriber is shown by default the authorization screen in the service by login and password. Optionally, you can also authorize in other ways:

  • by phone number;
  • by device identifier/IP address.

Managing the choice of authorization method occurs in several places, in order of priority:

  • file client.js optional auth_mode;
  • in the admin on the page "Settings of applications and devices", in the field "Method of authorization".

Authorization by device identifier/IP address

Included in option "auth_mode": "device_uid". From the point of view of the user, this authorization occurs in the background when the application is launched:

  • first, the desired account is searched by the user’s IP address (based on the “Subnet” field of the account);
  • if no account is found by IP, an attempt is made to find an account by device identifier (based on the devices associated with the account);
  • после успешного поиска происходит проверка на доступность авторизации из сети пользователя, на соблюдение лимита привязанных устройств, статус и прочие правила, заданные для аккаунта (см. страницу аккаунта).

Available limits of devices for the account are regulated by connected tariffs, namely the properties of the “Multi-subscription settings” for connected tariffs. For the convenience of calculating available devices and sessions for an account on its page, its limits and the number of current occupied slots are displayed in the “Account Information” block.

Different fields can be used as an identifier for different types of devices: serial numbers, MAC addresses, pseudo-random generated UIDs, etc. Due to the variability of the park android devices, there is an option android_uid_generation_methodthis allows you to choose which field to use as an identifier.

При превышении количества привязанных устройств пользователю показывается их список с возможностью отвязать ненужное и попробовать авторизоваться ещё раз.

Полезные опции Smarty по теме авторизации:

Registration

For the registration scenario by the user's phone number through the application, an option is provided registration_available.

Example:

var CLIENT_SETTINGS = {
// ..
'registration_available': true,
};

Main screen screen

The following types of dashboard tapes are available in the interface:

Television channels

Displayed in a grid of two lines of 9 elements.

Films and film selection

For a film with movies, you can specify the poster used in the “Display Type” field:

  • normal_ad_banner use a horizontal advertising banner as a cover
  • blank line – default value, using a standard vertical poster

Recently watched movies

Displays the tape “Continue watching” with films and TV series that began to watch, but did not watch until the end. The series is considered reviewed if you have watched all episodes of all seasons.

Widgets

The tape works in two modes:

  • display of applications run in Smarty - this mode is enabled by option "show_installed_apps": false. Applications will appear in the feed if they have a checkbox “Show the application in the main menu” and the type corresponds to one of the listed: a Web application in the external window, a Web application in the internal window, launching an Android application by ID, launching a system application by ID.
  • display installed on the console applications (only for Android devices).

Transmissions

Transmissions: past or future. When you click on the past transfer, a full-screen player opens with its recording if available, otherwise the information pop-window is shown.

Main menu

Items of the main menu are regulated by the option custom_main_menu_items, available values:

  • main - item "Main"
  • tv — item “Telechannels”
  • vod - item "Kinosal"
  • archive - item "Archive"
  • search - item "Search"
  • settings - "Settings" item

Example:

var CLIENT_SETTINGS = {
// ..
'custom_main_menu_items': ['main', 'tv', 'vod', 'search', 'settings'],
};

Search

In the search screen before entering the search bar, the on-screen keyboard is displayed, and optionally you can display the recommended selection for the subscriber using the option
search_recommended_election_id, which indicates the ID of the selection of films from Smarty.

Example:

var CLIENT_SETTINGS = {
// ..
'search_recommended_election_id': 123,
};

Automatically sending a search query starts with 3 characters, searching through channels, programs, movies and actors.

Personal office

Tariffs

Item "Tariffs" is included by the portal option show_packagesfor example:

var CLIENT_SETTINGS = {
///...
-show_packages': true,
};

The tariff card is customized by the following means on the tariff page in the Smarty admin:

  • icon for STB and Smart TV is used as a label
  • field bg_first_color and bg_second_color used to set colors for the gradient against the background, for example:
  • the card also uses the fields “Name”, “Description”, “Cost” and “Cost of activation”.
List of tariffs in the personal account
List of tariffs when clicking on the channel with a lock (to which there is no subscription)

Notifications

Item "Tariffs" is included by the portal option show_messages_menufor example:

var CLIENT_SETTINGS = {
///...
-show_messages_menu': true,
};

This screen receives messages sent to the subscriber using the Messages and Commands tool in the Smarty admin (you can also automate sending messages via the Smarty admin) Billing API Methods). Messages with the Urgent flag are also shown in this section, with the difference that they will be shown in the pop-up window on top of the interface.

Exit from the account

The item “Exit from the account” can be shown using the option show_logout_optionfor example:

var CLIENT_SETTINGS = {
// ..
'show_logout_option': true,
};

By default, the item is hidden - this behavior is relevant for the authorization mode by the IP address / device identifier - in this case, the subscriber cannot log off on the current device.