I have created a simple flow using node-red dashboard that plays an audio wav file using the dashboard audio out
node when clicking on button "beep".
[
{
"id": "f6f2187d.f17ca8",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "ee7b07eb.e994d8",
"type": "ui_audio",
"z": "f6f2187d.f17ca8",
"name": "",
"group": "ce548e2.4cc5f7",
"voice": "Fiona",
"always": "",
"x": 580,
"y": 80,
"wires": []
},
{
"id": "24b39a25.16eb76",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "say \"hello world\"",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "hello world",
"payloadType": "str",
"x": 140,
"y": 160,
"wires": [
[
"ee7b07eb.e994d8"
]
]
},
{
"id": "60ee1d6b.e57ef4",
"type": "ui_button",
"z": "f6f2187d.f17ca8",
"name": "",
"group": "ce548e2.4cc5f7",
"order": 1,
"width": 0,
"height": 0,
"passthru": false,
"label": "beep",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 130,
"y": 80,
"wires": [
[
"f45aebd5.111ff8"
]
]
},
{
"id": "3b866d84.62c7e2",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "test_beep",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 20,
"wires": [
[
"f45aebd5.111ff8"
]
]
},
{
"id": "f45aebd5.111ff8",
"type": "file in",
"z": "f6f2187d.f17ca8",
"name": "",
"filename": "/data/scan_ok.wav",
"format": "",
"chunk": false,
"sendError": false,
"encoding": "none",
"x": 350,
"y": 80,
"wires": [
[
"ee7b07eb.e994d8"
]
]
},
{
"id": "ce548e2.4cc5f7",
"type": "ui_group",
"name": "Group 1",
"tab": "d259bcb0.160e3",
"order": 1,
"disp": true,
"width": 6
},
{
"id": "d259bcb0.160e3",
"type": "ui_tab",
"name": "Tab 1",
"icon": "dashboard",
"order": 1
}
]
This is working when accessing my dashboard in chrome browser on my macbook.
It isn't working when accessing same dashboard in
- safari browser on my macbook
- chrome browser on my iphone.
I guess it has something to do with more strict security settings.
Is there a way to get it working in chrome browser (or safari browser) on an iphone and android phone ?