|
|
|
@ -395,6 +395,7 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mPublisherViewContainer.addView(mPublisher!!.view)
|
|
|
|
|
|
|
|
|
|
mSession!!.publish(mPublisher)
|
|
|
|
|
|
|
|
|
|
if (!resume) {
|
|
|
|
@ -687,6 +688,11 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
localPreviewLayoutParam.width = localPreviewWidth
|
|
|
|
|
localPreviewLayoutParam.height = localPreviewHeight
|
|
|
|
|
localPreviewLayoutParam.setMargins(0, localPreviewMargin, localPreviewMargin, 0)
|
|
|
|
|
if (mPublisher != null && mPublisher!!.view.parent == null){
|
|
|
|
|
mPublisherViewContainer.addView(mPublisher!!.view)
|
|
|
|
|
}
|
|
|
|
|
mPublisherViewContainer.visibility = View.VISIBLE
|
|
|
|
|
|
|
|
|
|
// remotePreviewLayoutParam = FrameLayout.LayoutParams(remotePreviewIconSize, remotePreviewIconSize)
|
|
|
|
|
remotePreviewLayoutParam.width = remotePreviewIconSize
|
|
|
|
|
remotePreviewLayoutParam.height = remotePreviewIconSize
|
|
|
|
@ -709,6 +715,11 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
localPreviewLayoutParam.width = 0
|
|
|
|
|
localPreviewLayoutParam.height = 0
|
|
|
|
|
localPreviewLayoutParam.setMargins(0, localPreviewMargin / 2, localPreviewMargin / 2, 0)
|
|
|
|
|
|
|
|
|
|
if (mPublisher != null){
|
|
|
|
|
mPublisherViewContainer.removeView(mPublisher!!.view)
|
|
|
|
|
}
|
|
|
|
|
mPublisherViewContainer.visibility = View.GONE
|
|
|
|
|
// localPreviewLayoutIconParam = FrameLayout.LayoutParams(localPreviewIconSmall, localPreviewIconSmall)
|
|
|
|
|
//// localPreviewLayoutParam = RelativeLayout.LayoutParams(localPreviewWidthSmall, localPreviewHeightSmall)
|
|
|
|
|
// localPreviewLayoutParam.width = localPreviewWidthSmall
|
|
|
|
@ -880,7 +891,7 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
override fun onFinish() {
|
|
|
|
|
mParams.x = -(szWindow.x - videoCallContainer.width)
|
|
|
|
|
|
|
|
|
|
dialog!!.window!!.attributes = mParams
|
|
|
|
|
dialog?.window!!.attributes = mParams
|
|
|
|
|
}
|
|
|
|
|
}.start()
|
|
|
|
|
}
|
|
|
|
@ -906,7 +917,7 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
override fun onFinish() {
|
|
|
|
|
mParams.x = szWindow.x - videoCallContainer.width
|
|
|
|
|
|
|
|
|
|
dialog!!.window!!.attributes = mParams
|
|
|
|
|
dialog?.window!!.attributes = mParams
|
|
|
|
|
}
|
|
|
|
|
}.start()
|
|
|
|
|
}
|
|
|
|
|