В SCO реализована возможность вывода на экран видео в реальном времени с IP-камеры, направленной на покупателя. При совершении покупки на кассе покупатель будет осведомлен, что в текущий момент за ним ведется видеонаблюдение
Поддержано отображение видео с камер, подключенных:
|
Настройки отображения видео
Для отображения видео необходимо включить соответствующий модуль.
Модуль Video позволяет создавать на формах виджеты для воспроизведения видео по RTSP-протоколу H.264 стандарта.
Наименование | Возможные значения | Описание |
|---|---|---|
Файл /opt/sst-sco/conf/video.ini, секция [Video], настройки модуля воспроизведения видео | ||
| enable |
| Включение модуля |
[Video] enable = true [Ui.Check.FormingForm.loyaltyButtons.children] child.0=inputCardButton child.1=inputCouponButton child.2=Rectangle(videoOutputBox,QtQuick) [Ui.Check.FormingForm.videoOutputBox] Layout.preferredWidth = 200 Layout.preferredHeight = 150 radius = 16 [Ui.Check.FormingForm.videoOutputBox.children] child.0=VideoOutput(videoOutput) [Ui.Check.FormingForm.videoOutput] anchors.horizontalCenter = parent.horizontalCenter anchors.bottom = parent.bottom height=150 width=200 resolution=640x480 url=rtsp://192.169.1.31:8554/mystream connectTimeout = 5 radius=16 [Ui.Check.FormingForm.inputCardButton] Layout.preferredHeight = 116 [Ui.Check.FormingForm.inputCouponButton] Layout.preferredHeight = 116 [Ui.Check.FormingForm.mainBox] topPadding = 15 [Ui.Check.FormingForm.mainBoxPlaceholder] topPadding = 20 |
[Video] enable = true [Check.FormingForm.layoutBottom] spacing = 15 type = horizontal item.0 = checkLayout item.1 = actionsLayout [Ui.Check.FormingForm.loyaltyButtons.children] child.0=inputCardButton child.1=inputCouponButton child.2=VideoOutput(videoOutput) [Ui.Check.FormingForm.videoOutput] Layout.preferredWidth = 200 Layout.preferredHeight = 160 url=/dev/video0 height=200 width=160 resolution = 640x480 connectTimeout = 5 radius=16 [Ui.Check.FormingForm.inputCardButton] Layout.preferredHeight = 116 [Ui.Check.FormingForm.inputCouponButton] Layout.preferredHeight = 116 [Ui.Check.FormingForm.mainBox] topPadding = 15 [Ui.Check.FormingForm.mainBoxPlaceholder] topPadding = 20 |
[Video] enable = true [Ui.Check.FormingForm.buttonsLayout.children] child.0=VideoOutput(videoOutput) [Ui.Check.FormingForm.videoOutput] implicitHeight = 1 Layout.preferredHeight = 90 Layout.maximumHeight = 90 Layout.fillHeight = true Layout.fillWidth = true url = /dev/video0 resolution = 640x480 connectTimeout = 5 radius=16 |
При создании |
Ссылка на поток камеры TRASSIR задается следующим образом:
rtsp://<логин>:<пароль>@<ip-камеры>:<порт>/live/main |
Например:
rtsp://user:12345@192.168.0.100:554/live/main |
Если авторизация выключена, то логин и пароль не указывается.
rtsp://<ip-камеры>:<порт>/live/main |
Например:
rtsp://192.168.0.100:554/live/main |
Параметры preferredWidth, preferredHeight необходимо настраивать под размеры выводимого видео.