Граф коммитов

1220 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 8e1c523c51
Add "copy link" option to the conversation list dropdown
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-03 14:02:07 +02:00
Joas Schilling 0cd8aec0f6
Merge pull request #1667 from nextcloud/dependabot/npm_and_yarn/vue/@babel/preset-env-7.4.3
Bump @babel/preset-env from 7.4.2 to 7.4.3 in /vue
2019-04-03 13:59:37 +02:00
Joas Schilling 824c4ac588
Update all NPM packages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-03 13:22:02 +02:00
Joas Schilling c116eda3a7
Fix links before line breaks
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-03 11:45:04 +02:00
Joas Schilling dc96c81773
Merge pull request #1657 from nextcloud/remove-video-constraints
Remove video constraints.
2019-04-02 08:42:19 +02:00
Joas Schilling f3bf14bb55
Merge pull request #1656 from nextcloud/bugfix/noid/command-interface-finish
Add a description to the commands admin settings
2019-04-02 08:31:33 +02:00
Joas Schilling f47fbb2d01
Exclude the changelog room from collections
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-01 16:00:14 +02:00
Joas Schilling f6aba7057a
Automatically close the sidebar when opening changelog conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-01 16:00:14 +02:00
Joas Schilling 79246e1d59
Start changelog implementation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-01 16:00:13 +02:00
Ivan Sein 2f2e005af2 Remove video constraints.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2019-04-01 14:36:40 +02:00
Joas Schilling 041b4cf99e
Add a description to the commands admin settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-29 15:51:10 +01:00
Ivan Sein 360a9ee1f5
Merge pull request #1655 from nextcloud/bugfix/noid/nick-is-not-send-in-offers-answers-anymore
Readd the nick to the payloads of offer/answer
2019-03-29 11:35:44 +01:00
Joas Schilling c02c8c089e
Readd the nick to the payloads of offer/answer
The RTCSessionDescription removes custom payload attributes in it's toJSON
method. The one value we set is the nick, so we need to toJSON and toObject
the description and add the nick to the payload again.
{@see https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/toJSON}

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-29 10:04:10 +01:00
Joas Schilling 1c3f4d3190
Update the lib to the latest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-28 16:20:21 +01:00
Joas Schilling 7ba4a58a7a
Fix highlight when room is selected and exclude file/password rooms
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-27 16:55:22 +01:00
Joas Schilling baa0cdc094
Remove unused global
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-27 10:50:57 +01:00
Joas Schilling c83f0c3ea7
'Handlebars' is defined but never used no-unused-vars
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-27 10:44:24 +01:00
Joas Schilling bc1614a673
Fix eslint warning
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-27 10:44:24 +01:00
Julius Härtl 59699e7382
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-27 10:44:23 +01:00
Julius Härtl a85b533883
Add sidebar tab
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-27 10:43:50 +01:00
Julius Härtl 5dd9930706
WIP: Add collections frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-27 10:43:20 +01:00
Joas Schilling 3680a79f9f
Make getUserMedia global again so it's defined in the second export
Regression from af8e16b8aade7da8b649864763e080db9e0ae200

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-27 10:36:32 +01:00
Daniel Calviño Sánchez 31cc6de8e8
Update "getStats" to its promise based version
The old callback based version is deprecated, and it seems to be no
longer supported by WebRTC Adapter nor some browsers, like Firefox 67
or Chromium 71. Therefore now the promise based version is used instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:32 +01:00
Daniel Calviño Sánchez 9f1212ab10
Replace RTCPeerConnection wrapper with standard RTCPeerConnection
Most features of the RTCPeerConnection wrapper are not used, so the
wrapper can be replaced by the standard RTCPeerConnection plus some code
to handle offers and answers.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:32 +01:00
Daniel Calviño Sánchez b90942d15a
Add support for screen sharing in Edge
Edge supports screen sharing through the standard
"MediaDevices.getDisplayMedia".

The browser detection had to be changed, as the user agent of Edge
matches with "Chrome"; the code used to detect Chromium/Chrome and Edge
is based on the code of "detectBrowser" in webrtc-adapter "utils.js".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:32 +01:00
Daniel Calviño Sánchez 71576a02ff
Replace old SimpleWebRTC bundle with new custom SimpleWebRTC bundle
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:31 +01:00
Daniel Calviño Sánchez 783e790e99
Remove "scaleX(1)" transform on videos
Latest "attachMediaStream" release sets "scaleX(1)" transform on the
video if it is not mirrored, but that causes the video to be moved to a
wrong position in some browsers. As "scaleX(1)" should have no effect
the transform is simply removed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:31 +01:00
Daniel Calviño Sánchez 224b1210c1
Handle bogus behaviour of "getUserMedia" in Edge
"getUserMedia" should resolve the promise only if all the constraints
are satisfied, but Edge resolves it also if both are requested (audio
and video) but only one of them is satisfied. The callbacks are used to
set the local audio and video as available or not available, so the Edge
behaviour is now handled to return the right information to the
callbacks.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:31 +01:00
Daniel Calviño Sánchez ad07e13ccb
Copy unsharing screen related code from old SimpleWebRTC bundle
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:31 +01:00
Daniel Calviño Sánchez 69c9f7ebec
Restore legacy "localScreen" property
This property was removed in localmedia 3.x, but it is used in several
places in SimpleWebRTC 2.3.3, so for now it is restored.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez 4cc9a7d983
Replace "getUserMedia" with custom wrapper
The normalization of errors by the "getUserMedia" module should be
covered by current webrtc-adapter releases, so it should not be needed.
Besides that, the NPM package contains a "node_modules" directory with
the code of an old "webrtc-adapter" release, and the bundling tool gets
confused when this directory is present and bundles that old code
instead of the most recent one.

Due to all this, the module is replaced by a custom wrapper that just
calls the given callbacks as needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez 8fcfba942e
Copy "getScreenMedia" from old SimpleWebRTC bundle
"getScreenMedia" was heavily customized in the old bundle, so the
default implementation in the new bundle is fully replaced by it.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez f70f3ca84c
Copy resending data channel messages from old SimpleWebRTC bundle
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez 4cdcdd30d4
Remove SimpleWebRTC sandbox URL
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez c2b5e259d0
Remove Google STUN server
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:30 +01:00
Daniel Calviño Sánchez 0d5c62bee2
RTCPeerConnection wrapper no longer contains a TraceablePeerConnection
The current release of RTCPeerConnection wrapper no longer contains a
TraceablePeerConnection attribute, so the wrapped RTCPeerConnection is
now a direct child of the wrapper instead of a child of the
TraceablePeerConnection.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:29 +01:00
Daniel Calviño Sánchez fd6bfab105
Fix "iceRestart" option given to RTCPeerConnection.createOffer
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:29 +01:00
Daniel Calviño Sánchez bc4aa64d84
Fix "isAudioEnabled/isVideoEnabled" when there is no device
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:29 +01:00
Daniel Calviño Sánchez 59f8e22d45
Handle end-of-candidates by adding an empty candidate
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:29 +01:00
Daniel Calviño Sánchez a1a7a628e9
Copy changes from old SimpleWebRTC bundle
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:29 +01:00
Daniel Calviño Sánchez 0969a18402
Adjust function calls to newer names in localmedia
The localmedia version (which is inherited by the WebRTC "class") is
newer than the one used with SimpleWebRTC 2.2.3, so the function calls
need to be adjusted to the new API.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Daniel Calviño Sánchez 7bfb9601a6
Require custom local dependencies instead of their default version
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Daniel Calviño Sánchez 361f26cde8
Remove socketioconnection use from SimpleWebRTC
The connection object passed to SimpleWebRTC will be always the
signaling object, so there is no need to support socketioconnection.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Daniel Calviño Sánchez e42830286b
Remove file transfer related code from SimpleWebRTC
File transfer does not need to be supported by the WebRTC code, so it
was removed from SimpleWebRTC to limit the needed dependencies.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Daniel Calviño Sánchez 2a6b2c7762
Replace spaces with tabs in imported files
For consistency with the rest of the files, the indentation of imported
files was changed to use tabs.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Daniel Calviño Sánchez 9c86b25547
Import SimpleWebRTC 2.2.3 and other dependencies to be customized
SimpleWebRTC 2.2.3 is the same version provided by the current
"js/simplewebrtc.js" file. This file will be eventually removed and
replaced by a custom bundle of the imported files and its dependencies.

The dependencies are mostly defined in "package.json" but, just like
SimpleWebRTC itself, some of the dependencies will need to be
customized; the dependencies to be customized are getscreenmedia 5.1.2
and localmedia 5.2.0. Note that the imported SimpleWebRTC has other
dependencies too, but their uses will be removed from the code and thus
are not needed.

The relevant files were imported into "js/simplewebrtc/".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-27 10:36:28 +01:00
Joas Schilling 396bcc7942
Fix embedded.js ChatView
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-25 15:17:21 +01:00
Joas Schilling 37474c5325
Disable the chat input and the call button for read-only conversations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-25 15:17:20 +01:00
Joas Schilling 70e9554900
Fix lodash overwriting the global underscore
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-25 10:35:52 +01:00
Joas Schilling 11c7bb253d
Update all NPM packages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-25 09:40:58 +01:00