Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы IRidium studio 2019 Sounds. Перевод выполнен на 100%.

  • iRidium studio 2019
  • Playing sounds and vibration
  • Содержание

    • 1 Playing sounds and vibration
      • 1.1 Sound and vibration whrn a button is pressed
      • 1.2 Sound and vibration when an event happens in the system
      • 1.3 Sound of Push-notifications
      • 1.4 IP-cameras with audio support
      • 1.5 SIP-intercom: call sound

    Playing sounds and vibration

    Indication of presses on items, events and notifications with sound and virbration

    Sound and vibration whrn a button is pressed

    A sound can be played or a vibration can be activated when an item is pressed on smartphones and tablets with a vibrating motor.

    There is a set of commands (macros) to work with sounds in properties of graphical items:

    Studio2019 Sound macro.png

    Sound (control of sounds):

    • Play Sound [file, track number, volume, cycle]. Start playing an audio-file
    • Play System Sound [sound, track number, volume]. Play a standard sound
    • Stop Sound [file]. Stop playing an audio-file
    • Stop Slot [track number]. Stop playing an audio-file at a selected track
    • Stop All Sounds. Stop playing all sounds in the project

    More about commands in macros >>>


    To use vibration activate the following System token of a project: Device > Vibro. It's available in the list of system tokens. In the time this article was written a tokem could take only 1 value: "vibrate". The vibrations lasts 1 second. The length of vibration can't be changed.

    To activate a token when a button is pressed, use Send number to tag macros from Send to project token group. Write 1 in token:

    Studio2019 Vibro macro.png

    Sound and vibration when an event happens in the system

    Any event: change of variable, token, certain time of the day, etc. can be used as an event to play a sound and other actions. A frequent task is to show a popup with a warning and play a sound if there is something wrong in the system, if a call from intercom comes, etc.

    An event can be assigned to an action with the help of a simple script.

    Example: play a sound, vibrate and open a popup if "1/0/2" feedback channel of "iRidium server" driver becomes 1

    IR.AddListener(IR.EVENT_TAG_CHANGE, IR.GetDevice("iRidium Server"), function(name, value)
    {
        // if the feedback "1/0/2" of "iRidium server" changes to value 1
        if (name == "1/0/2" && value == 1) {
            // play sound, all slots, volume: 50
            IR.PlaySound('Sounds1_0012.mp3', 0, 50); 
            // vibration
            IR.SetVariable("System.Vibro", true);
            // open popup "Alarm"
            IR.ShowPopup("Alarm");
        }
    });

    See all types of events and actions in the guide and handbook on JavaScript in iRidium.

    Sound of Push-notifications

    When i3 pro is opened and maximized on a tablet or smartphone, the sound of a Push-notification is not played and a popyp does not appear.

    Not to miss a notification, processing notifications in i3 pro must be set: an interface must show a popup and play a sound when a notification comes. Here is how to do it:

    Read 4.1 point of the documentation on setting Push-notifications >>>

    IP-cameras with audio support

    Some IP cameras, for example, Mobotix can broadcast video stream in mxpeg format, containing an audio track. If you want to play a sound on a page with IP-cameras, put Audio tick in the camera settings:

    Studio2019 IPCam audio.png

    Other settings of IP-cameras >>>

    SIP-intercom: call sound

    Ready interfaces for SIP-intercom work with a call sound:

    • when i3 pro is open a call sound is played
    • when the app is closed you can set a notifiction about the call as a long signal when a Push notification comes:


    See solutions for SIP-intercom>>>

    Источник — «https://dev.iridi.com/index.php?title=IRidium_studio_2019_Sounds/en&oldid=84637»
    Категория:
    • Studio2019
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy