diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-16 15:35:13 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 15:35:13 -0300 |
commit | 781ff323db4c70e4ca476f9ef13a04e5aa063585 (patch) | |
tree | a9dae870d4e750ad87ee0624d8ea859995b0dbf7 /webapp/utils/constants.jsx | |
parent | df2d61d94175369bff5a16242f35cb6d7b62d7fb (diff) | |
download | chat-781ff323db4c70e4ca476f9ef13a04e5aa063585.tar.gz chat-781ff323db4c70e4ca476f9ef13a04e5aa063585.tar.bz2 chat-781ff323db4c70e4ca476f9ef13a04e5aa063585.zip |
Webrtc client side (#4026)
* WebRTC Server side
* WebRTC client side
* Bug fixes and improvements
* Pushing UI improvements for webrtc (#3728)
* Pushing UI improvements for webrtc
* Updating webrtc css
* PLT-3943 WebRTC P1: bug fixes and improvements
* Video resolution set to std, reduce volume of ringtone and flip video horizontally
* Fix calling a user B while WebRTC RHS is still opened
* Leave RHS opened when call ends, Fix isBusy on popover and channel_header
* Fix pre-release feature, RHS & System Console
* PLT-3945 - Updating UI for webrtc (#3908)
* PLT-3943 Webrtc p1
* Add ongoing call indicator when RHS is opened
* UI updates to to webrtc notifcation (#3959)
Diffstat (limited to 'webapp/utils/constants.jsx')
-rw-r--r-- | webapp/utils/constants.jsx | 77 |
1 files changed, 52 insertions, 25 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index b4eb1d11a..602b6ae4e 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -154,9 +154,55 @@ export const ActionTypes = keyMirror({ SUGGESTION_SELECT_PREVIOUS: null }); +export const WebrtcActionTypes = keyMirror({ + INITIALIZE: null, + NOTIFY: null, + CHANGED: null, + ANSWER: null, + DECLINE: null, + CANCEL: null, + NO_ANSWER: null, + BUSY: null, + FAILED: null, + UNSUPPORTED: null, + MUTED: null, + IN_PROGRESS: null, + DISABLED: null, + RHS: null +}); + +export const UserStatuses = { + OFFLINE: 'offline', + AWAY: 'away', + ONLINE: 'online' +}; + +export const SocketEvents = { + POSTED: 'posted', + POST_EDITED: 'post_edited', + POST_DELETED: 'post_deleted', + CHANNEL_DELETED: 'channel_deleted', + CHANNEL_VIEWED: 'channel_viewed', + DIRECT_ADDED: 'direct_added', + NEW_USER: 'new_user', + LEAVE_TEAM: 'leave_team', + USER_ADDED: 'user_added', + USER_REMOVED: 'user_removed', + USER_UPDATED: 'user_updated', + TYPING: 'typing', + PREFERENCE_CHANGED: 'preference_changed', + EPHEMERAL_MESSAGE: 'ephemeral_message', + STATUS_CHANGED: 'status_change', + HELLO: 'hello', + WEBRTC: 'webrtc' +}; + export const Constants = { Preferences, + SocketEvents, ActionTypes, + WebrtcActionTypes, + UserStatuses, PayloadSources: keyMirror({ SERVER_ACTION: null, @@ -183,25 +229,6 @@ export const Constants = { STAT_MAX_ACTIVE_USERS: 20, STAT_MAX_NEW_USERS: 20, - SocketEvents: { - POSTED: 'posted', - POST_EDITED: 'post_edited', - POST_DELETED: 'post_deleted', - CHANNEL_DELETED: 'channel_deleted', - CHANNEL_VIEWED: 'channel_viewed', - DIRECT_ADDED: 'direct_added', - NEW_USER: 'new_user', - LEAVE_TEAM: 'leave_team', - USER_ADDED: 'user_added', - USER_REMOVED: 'user_removed', - USER_UPDATED: 'user_updated', - TYPING: 'typing', - PREFERENCE_CHANGED: 'preference_changed', - EPHEMERAL_MESSAGE: 'ephemeral_message', - STATUS_CHANGED: 'status_change', - HELLO: 'hello' - }, - UserUpdateEvents: { USERNAME: 'username', FULLNAME: 'fullname', @@ -218,12 +245,6 @@ export const Constants = { POST: 5 }, - UserStatuses: { - OFFLINE: 'offline', - AWAY: 'away', - ONLINE: 'online' - }, - SPECIAL_MENTIONS: ['all', 'channel', 'here'], CHARACTER_LIMIT: 4000, IMAGE_TYPES: ['jpg', 'gif', 'bmp', 'png', 'jpeg'], @@ -778,9 +799,15 @@ export const Constants = { EMBED_PREVIEW: { label: 'embed_preview', description: 'Show preview snippet of links below message' + }, + WEBRTC_PREVIEW: { + label: 'webrtc_preview', + description: 'Enable WebRTC one on one calls' } }, OVERLAY_TIME_DELAY: 400, + WEBRTC_TIME_DELAY: 750, + WEBRTC_CLEAR_ERROR_DELAY: 15000, DEFAULT_MAX_USERS_PER_TEAM: 50, MIN_TEAMNAME_LENGTH: 4, MAX_TEAMNAME_LENGTH: 15, |