-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathStream.js
81 lines (63 loc) · 1.17 KB
/
Stream.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* Represents media stream(audio, video, desktop)
* @constructor
*/
function Stream()
{
}
/**
* Stream video type.
* @type {string}
*/
Stream.VIDEO = "video";
/**
* Stream audio type.
* @type {string}
*/
Stream.AUDIO = "audio";
/**
* Stream desktop sharing type.
* @type {string}
*/
Stream.DESKTOP_SHARING = "desktopsharing";
/**
* The media stream type.
*/
Stream.prototype.streamType;
/**
* The corresponding participant identifier.
*/
Stream.prototype.participantId;
/**
* The media stream from the browser.
*/
Stream.prototype.originalStream;
/**
* Mutes the stream.
*/
Stream.prototype.mute = function () {
}
/**
* Unmutes the stream.
*/
Stream.prototype.unmute = function () {
}
/**
* Attaches the stream to HTML container.
* @param container the HTML container
*/
Stream.prototype.attachStream = function (container) {
}
/**
* Removes the stream from the passed HTML container.
* @param container the HTML container
*/
Stream.prototype.remove = function (container) {
}
/**
* Stops sending the stream. And removes it from the HTML.
* NOTE: Works for the local stream only.
*/
Stream.prototype.stop = function () {
}
module.exports = Stream;