-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattachMediaStream.js
50 lines (50 loc) · 1022 Bytes
/
attachMediaStream.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
name: "attachMediaStream",
ns: "webrtc",
description: "AttachMediaStream (microphone, camera)",
phrases: {
active: "Attaching Media Stream"
},
ports: {
input: {
element: {
title: "Media Element",
type: "HTMLElement"
},
stream: {
title: "Stream",
type: "HTMLElement"
}
},
output: {
element: {
title: "Media Element",
type: "HTMLElement"
},
stream: {
title: "Stream",
type: "HTMLElement"
}
}
},
dependencies: {
npm: {
attachmediastream: require('attachmediastream')
}
},
fn: function attachMediaStream(input, $, output, state, done, cb, on, attachmediastream) {
var r = function() {
attachmediastream($.element, $.stream)
output = {
element: $.get('element'),
stream: $.get('stream')
}
}.call(this);
return {
output: output,
state: state,
on: on,
return: r
};
}
}