mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 13:09:46 +01:00
Fixup to calls
This commit is contained in:
parent
89ca324b30
commit
0ab30c439e
@ -1982,12 +1982,9 @@ class CallController(args: Bundle) : BaseController() {
|
||||
val relativeLayout =
|
||||
remoteRenderersLayout!!.findViewWithTag<RelativeLayout>("$session+$videoStreamType")
|
||||
val surfaceViewRenderer = relativeLayout.findViewById<SurfaceViewRenderer>(R.id.surface_view)
|
||||
val imageView = relativeLayout.findViewById<SimpleDraweeView>(R.id.avatarImageView)
|
||||
val imageView = relativeLayout.findViewById(R.id.avatarImageView) as ImageView
|
||||
|
||||
if (mediaStream != null
|
||||
&& mediaStream.videoTracks != null
|
||||
&& mediaStream.videoTracks.size > 0
|
||||
&& enable
|
||||
if (!(mediaStream?.videoTracks == null || mediaStream.videoTracks.size <= 0 || !enable)
|
||||
) {
|
||||
val videoTrack = mediaStream.videoTracks[0]
|
||||
|
||||
|
@ -19,13 +19,24 @@
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/relative_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatarImageView"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
<org.webrtc.SurfaceViewRenderer
|
||||
android:id="@+id/surface_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/remote_audio_off"
|
||||
android:layout_width="16dp"
|
||||
@ -58,16 +69,4 @@
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textColor="@android:color/white" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatarImageView"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
<org.webrtc.SurfaceViewRenderer
|
||||
android:id="@+id/surface_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="invisible" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user