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

25 Коммитов

Автор SHA1 Сообщение Дата
Daniel Calviño Sánchez 6656274e01 Modify browser history only in the main Talk UI
The browser history should not be modified from the Connection object,
as this would mess with the history when Talk is embedded in other apps.
Instead it is now modified only from the main Application object when
the main Talk UI is being used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-22 18:50:06 +01:00
Daniel Calviño Sánchez 32cc5d0065 Disable call button while joining or leaving a call
Joining or leaving a call is not an immediate action; in some cases a
few seconds can pass before the action is finished, so during that time
the button should be disabled, both to prevent further actions from the
user and to give her feedback that the action is still going on.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-11 11:03:49 +01:00
Daniel Calviño Sánchez 268d91cb97 Make possible to customize the element that gets the "incall" CSS class
This is a temporal hack, as the proper change would be to move the
modification of elements out of Connection and WebRTC, but for the time
being it will make possible to prevent those objects from modifying
"#app-content" when video calls are added to the details view of Files
app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-06 13:00:52 +01:00
Daniel Calviño Sánchez 3a9a407fc2 Set room left/deleted message as a response to events
The "Connection" object should not change the UI directly, so now the
empty content message when the current room is left or deleted it is set
as a response to the "leaveCurrentRoom" and "destroy" events.

As the "deleter" parameter of "leaveCurrentRoom" was only used to show
one message or the other it is no longer needed, so it was removed.

The empty content message set when the room is deleted was also updated
to match the initial empty content message.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 10:59:32 +01:00
Daniel Calviño Sánchez 6ad206a38c Move changes to the session history from RoomListView to Connection
The session history is modified by Connection when leaving the current
room for any reason (either because the user explicitly left the room or
because she no longer has access to it), so there is no need to modify
the session history from RoomListView.

For consistency, the session history is now modified only from
Connection when joining a room too, instead of modifying it from both
the RoomListView and Connection.

In any case, modifying the session history should probably done from App
instead as a response to an event, but for the time being this is good
enough.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05 10:46:09 +01:00
Joachim Bauch adff1068d5
Rename flag for when user is in call.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-08-24 10:52:20 +02:00
Joachim Bauch d4929b7525
Change "inCall" state to contain bit flags
The flags encode if a user is in the call and whether he is publishing
audio and/or video.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
2018-08-24 10:52:20 +02:00
Daniel Calviño Sánchez e8410d562e
Add basic support for video calls
When a password is requested now the guest automatically joins the call,
and once the sharer joins the call too a video call view appears in the
Talk sidebar.

Although it is not currently shown, the empty content message for guest
users was set, as it is expected to be set by some event handlers.

In a similar way the "#screens" element was also added, but there is no
support yet for screensharing and thus the element is kept always
hidden.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 14:17:40 +02:00
Daniel Calviño Sánchez 1bd7baae68 Do not change the URL when a conversation ends in the embedded UI
When the main UI is used, during a conversation the browser shows the
URL for the conversation, and when the user leaves the room, either
explicitly or implicitly due to a conversation ending, the URL is set to
the main Talk URL.

However, when the embedded UI is used, during the conversation the
browser shows the URL for the public share authentication page, as the
conversation is just an extra element of that page. Thus, when the
conversation ends, the URL should not be modified.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-08-08 10:24:49 +02:00
Ivan Sein c177232bc6
Merge pull request #894 from nextcloud/fix-disconnect-media-leaving-call
Fix disconnect media after leaving a call.
2018-05-11 10:24:38 +02:00
Ivan Sein 39b94b1a7f
Make sure to always set the token on joining a room
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-05-11 09:06:31 +02:00
Ivan Sein 62bc6f75ff Change deleted room message.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-05-09 14:41:42 +02:00
Daniel Calviño Sánchez 264b412a65 Fix UI when leaving current call
When the chat view is shown in the main view the call UI (videos and
screens) is hidden using a CSS trick. However, when there is no chat
view in the main view the elements for videos and screens were always
visible. Those elements are initially "empty", but once the user joins a
call they are filled with contents (like the icon to mute the own audio,
or the avatar of the speaking user). As the elements were always visible
the call UI was shown in the main view after a room was left (either
explicitly or implicitly, for example, if the moderator deleted the
room), as in those cases there is no chat view hidding them.

Besides that, the empty content element was hidden when joining a call
but never shown back again. Due to that when a room was left after
joining a call the empty content element was also missing.

Now the videos, screens and empty content are explicitly shown or hidden
as needed when the user joins a call, leaves a call, or leaves a room,
just like it is done with the chat view.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-09 05:00:27 +02:00
Daniel Calviño Sánchez 8902a703b9 Rename event to a more accurate name
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-08 13:23:23 +02:00
Joas Schilling 6072261cac
Join the call only aftrer media access was done
When we delayed the media access, we were all fast with testing.
Before this patch, when there was already at least one user in the
call and you took longer to accept the media request than webrtc
took to init everything, you would always send a black video signal
and no sound, because the data was not there, when connections were
established with the other users. Now we first request the media and
send the join call to the server afterwards.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-04 11:01:46 +02:00
Joas Schilling fad6bf644e
Show fullscreen toggle only in rooms
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-29 09:31:39 +02:00
Joas Schilling 04e2b8f303
Fix js handling of joining a room
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-27 17:16:38 +02:00
Joas Schilling 94f312d2e1
Rename leaveRoom to removeRoom in JS as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-27 17:16:38 +02:00
Joas Schilling 30287e0d41
Disconnect media when leaving call
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-20 17:35:34 +01:00
Joas Schilling e805bfd025
Fix empty content message and correctly hide the video input until it is loaded
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-16 11:22:14 +01:00
Joas Schilling ad0b14c9e5
Remove empty wrapper method
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 16:03:54 +01:00
Joas Schilling d5bd2da71f
Only setup webrtc and media when joining a call
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 14:25:49 +01:00
Joas Schilling d592c1d3e8
Join room/call connection > signaling > webrtc aswell
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 13:48:00 +01:00
Joas Schilling 90da1a0dae
Handle leaving call/room connection > signaling > webrtc
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 13:33:00 +01:00
Joas Schilling fe04d506fa
Rename calls to connection and remove static-ness
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-15 13:21:18 +01:00