|
@@ -47,6 +47,7 @@ import kotlinx.android.synthetic.main.activity_register.*
|
|
import kotlinx.android.synthetic.main.callinghost_activation.*
|
|
import kotlinx.android.synthetic.main.callinghost_activation.*
|
|
import okhttp3.OkHttpClient
|
|
import okhttp3.OkHttpClient
|
|
import okhttp3.Request
|
|
import okhttp3.Request
|
|
|
|
+import org.freedesktop.gstreamer.GStreamer
|
|
import org.greenrobot.eventbus.Subscribe
|
|
import org.greenrobot.eventbus.Subscribe
|
|
import org.greenrobot.eventbus.ThreadMode
|
|
import org.greenrobot.eventbus.ThreadMode
|
|
import java.util.concurrent.TimeUnit
|
|
import java.util.concurrent.TimeUnit
|
|
@@ -98,12 +99,12 @@ class CallingHostActivationActivity : BaseActivity<DevicePresenter, Callinghost
|
|
|
|
|
|
AppUtil.checkCameraSupport()
|
|
AppUtil.checkCameraSupport()
|
|
|
|
|
|
-// try {
|
|
|
|
-// GStreamer.init(BaseApplication.appContext)
|
|
|
|
-// Constant.gstreamer_init = true
|
|
|
|
-// } catch (e: Exception) {
|
|
|
|
-// e.printStackTrace()
|
|
|
|
-// }
|
|
|
|
|
|
+ try {
|
|
|
|
+ GStreamer.init(BaseApplication.appContext)
|
|
|
|
+ Constant.gstreamer_init = true
|
|
|
|
+ } catch (e: Exception) {
|
|
|
|
+ e.printStackTrace()
|
|
|
|
+ }
|
|
|
|
|
|
checkServer()
|
|
checkServer()
|
|
}
|
|
}
|