|
|
|
@ -329,7 +329,7 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
|
|
|
|
|
@AfterPermissionGranted(RC_VIDEO_APP_PERM)
|
|
|
|
|
private fun requestPermissions() {
|
|
|
|
|
val perms = arrayOf(Manifest.permission.INTERNET, Manifest.permission.CAMERA)
|
|
|
|
|
val perms = arrayOf(Manifest.permission.INTERNET, Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO, Manifest.permission.MODIFY_AUDIO_SETTINGS, Manifest.permission.CALL_PHONE)
|
|
|
|
|
if (EasyPermissions.hasPermissions(requireContext(), *perms)) {
|
|
|
|
|
try {
|
|
|
|
|
mSession = Session.Builder(context, apiKey, sessionId).build()
|
|
|
|
@ -496,19 +496,19 @@ class VideoCallFragment : DialogFragment(), PermissionCallbacks, Session.Session
|
|
|
|
|
|
|
|
|
|
private fun onMiniCircleClicked(){
|
|
|
|
|
if (isCircle) {
|
|
|
|
|
videoCallContainer.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.text_color))
|
|
|
|
|
mSubscriberViewContainer.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.remoteBackground))
|
|
|
|
|
dialog?.window?.setLayout(
|
|
|
|
|
400,
|
|
|
|
|
600
|
|
|
|
|
)
|
|
|
|
|
videoCallContainer.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.text_color))
|
|
|
|
|
mSubscriberViewContainer.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.remoteBackground))
|
|
|
|
|
} else {
|
|
|
|
|
videoCallContainer.background = ContextCompat.getDrawable(requireContext(), R.drawable.circle_shape)
|
|
|
|
|
mSubscriberViewContainer.background = ContextCompat.getDrawable(requireContext(), R.drawable.circle_shape)
|
|
|
|
|
dialog?.window?.setLayout(
|
|
|
|
|
200,
|
|
|
|
|
200
|
|
|
|
|
)
|
|
|
|
|
videoCallContainer.background = ContextCompat.getDrawable(requireContext(), R.drawable.circle_shape)
|
|
|
|
|
mSubscriberViewContainer.background = ContextCompat.getDrawable(requireContext(), R.drawable.circle_shape)
|
|
|
|
|
}
|
|
|
|
|
isCircle = !isCircle
|
|
|
|
|
|
|
|
|
|