Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
d4b34274
Commit
d4b34274
authored
Apr 18, 2019
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update VideoConferenceActivity.kt and jitsi version
parent
d1b38c0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
18 deletions
+12
-18
VideoConferenceActivity.kt
...ket/android/videoconference/ui/VideoConferenceActivity.kt
+11
-17
dependencies.gradle
dependencies.gradle
+1
-1
No files found.
app/src/main/java/chat/rocket/android/videoconference/ui/VideoConferenceActivity.kt
View file @
d4b34274
...
...
@@ -24,8 +24,7 @@ private const val INTENT_CHAT_ROOM_TYPE = "chat_room_type"
class
VideoConferenceActivity
:
JitsiMeetActivity
(),
JitsiVideoConferenceView
,
JitsiMeetViewListener
{
@Inject
lateinit
var
presenter
:
VideoConferencePresenter
@Inject
lateinit
var
presenter
:
VideoConferencePresenter
private
lateinit
var
chatRoomId
:
String
private
lateinit
var
chatRoomType
:
String
private
var
view
:
JitsiMeetView
?
=
null
...
...
@@ -35,9 +34,7 @@ class VideoConferenceActivity : JitsiMeetActivity(), JitsiVideoConferenceView,
super
.
onCreate
(
savedInstanceState
)
chatRoomId
=
intent
.
getStringExtra
(
INTENT_CHAT_ROOM_ID
)
requireNotNull
(
chatRoomId
)
{
"no chat_room_id provided in Intent extras"
}
chatRoomType
=
intent
.
getStringExtra
(
INTENT_CHAT_ROOM_TYPE
)
requireNotNull
(
chatRoomType
)
{
"no chat_room_type provided in Intent extras"
}
view
=
JitsiMeetView
(
this
)
view
?.
listener
=
this
...
...
@@ -54,26 +51,23 @@ class VideoConferenceActivity : JitsiMeetActivity(), JitsiVideoConferenceView,
logJitsiMeetViewState
(
"Joined video conferencing"
,
map
)
override
fun
onConferenceTerminated
(
map
:
MutableMap
<
String
,
Any
>?)
{
if
(!
map
.
isNullOrEmpty
())
{
if
(
map
.
containsKey
(
"error"
))
{
map
?.
let
{
if
(
it
.
containsKey
(
"error"
))
{
logJitsiMeetViewState
(
"Terminated video conferencing with error"
,
map
)
}
else
{
}
else
{
logJitsiMeetViewState
(
"Terminated video conferencing"
,
map
)
finishJitsiVideoConference
()
}
}
finishJitsiVideoConference
()
}
override
fun
startJitsiVideoConference
(
url
:
String
,
name
:
String
?)
{
var
options
=
JitsiMeetConferenceOptions
.
Builder
()
.
setAudioMuted
(
true
)
.
setVideoMuted
(
true
)
.
setServerURL
(
URL
(
url
))
.
setAudioOnly
(
false
)
.
build
()
view
?.
join
(
options
)
JitsiMeetConferenceOptions
.
Builder
()
.
setAudioMuted
(
true
)
.
setVideoMuted
(
true
)
.
setServerURL
(
URL
(
url
))
.
setAudioOnly
(
false
)
.
build
().
let
{
view
?.
join
(
it
)
}
}
override
fun
finishJitsiVideoConference
()
{
...
...
dependencies.gradle
View file @
d4b34274
...
...
@@ -56,7 +56,7 @@ ext {
glide
:
'4.8.0'
,
glideTransformations
:
'4.0.0'
,
jitsi
:
'
+'
,
// TODO Avoid using + (https://github.com/jitsi/jitsi-meet/issues/3987)
jitsi
:
'
2.1.0'
,
// For testing
junit
:
'4.12'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment