-
Notifications
You must be signed in to change notification settings - Fork 1
/
IWebRTC.js
54 lines (54 loc) · 2.07 KB
/
IWebRTC.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
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AbstractWEBRTC;
(function (AbstractWEBRTC) {
AbstractWEBRTC.ON_CONNECTION_READY = "connectionReady";
AbstractWEBRTC.ON_CONNECTION_CLOSE = "ON_CONNECTION_CLOSE";
AbstractWEBRTC.JOINED_ROOM = "joinedRoom";
AbstractWEBRTC.JOIN_ROOM_ERROR = "joinRoomError";
AbstractWEBRTC.NOT_SUPPORT_MEDIA = "NOT_SUPPORT_MEDIA";
})(AbstractWEBRTC = exports.AbstractWEBRTC || (exports.AbstractWEBRTC = {}));
var AbstractPeerConnection;
(function (AbstractPeerConnection) {
AbstractPeerConnection.CREATED_PEER = "createdPeer";
AbstractPeerConnection.PEER_STREAM_ADDED = "peerStreamAdded";
AbstractPeerConnection.PEER_STREAM_REMOVED = "peerStreamRemoved";
AbstractPeerConnection.CONNECTIVITY_ERROR = "connectivityError";
AbstractPeerConnection.ON_ICE_CONNECTION_FAILED = "iceFailed";
AbstractPeerConnection.PAUSE = "pause"; // for video
AbstractPeerConnection.UNPAUSE = "unpause"; // for video
AbstractPeerConnection.DUMMY_VIDEO = "dummy_video"; // for video
AbstractPeerConnection.ANSWER = "answer";
AbstractPeerConnection.OFFER = "offer";
AbstractPeerConnection.CANDIDATE = "candidate";
})(AbstractPeerConnection = exports.AbstractPeerConnection || (exports.AbstractPeerConnection = {}));
var AbstractMediaStream;
(function (AbstractMediaStream) {
AbstractMediaStream.fullHdConstraints = {
video: { width: { exact: 1920 }, height: { exact: 1080 } }
};
AbstractMediaStream.hdConstraints = {
video: {
mandatory: {
minWidth: 1280,
minHeight: 720
}
}
};
AbstractMediaStream.vgaConstraints = {
video: {
mandatory: {
maxWidth: 640,
maxHeight: 360
}
}
};
AbstractMediaStream.qvgaConstraints = {
video: {
mandatory: {
maxWidth: 320,
maxHeight: 240
}
}
};
})(AbstractMediaStream = exports.AbstractMediaStream || (exports.AbstractMediaStream = {}));