Fixup to calls

This commit is contained in:
Mario Danic 2019-12-19 16:27:55 +01:00
parent 89ca324b30
commit 0ab30c439e
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0
2 changed files with 14 additions and 18 deletions

View File

@ -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]

View File

@ -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>