forked from LeanBI/node-red-contrib-play-audiofile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
play_audio_file.html
30 lines (27 loc) · 838 Bytes
/
play_audio_file.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<script type="text/javascript">
RED.nodes.registerType('play_audio_file',{
category: 'output',
color: '#FF595F',
icon: 'unmute.png',
defaults: {
filename : {value:'/path/to/filename'}
},
inputs:1,
outputs:1,
label: function() {
return this.name||"play_audio_file";
},
oneditprepare: function() {
}
});
</script>
<script type="text/x-red" data-template-name="play_audio_file">
<!-- INPUT -->
<div class="form-row">
<label for="node-input-filename"><i class="fa fa-arrow-left"></i>Audio file</label>
<input type="text" id="node-input-filename" placeholder="">
</div>
</script>
<script type="text/x-red" data-help-array="play_audio_file">
<p>Play an audio file from disk</p>
</script>