linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Adding a video in view in the main one


From: Giacomo Furlan
Subject: [Linphone-developers] Adding a video in view in the main one
Date: Wed, 7 Oct 2015 16:42:13 +0200

Hello!

I've tried inserting a ... like the one in the Linphone application in the video.xml layout. The problem is that it's crashing as soon as it's created... any hint on how to use it? Thank you :)

content_main.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:showIn="@layout/activity_main" tools:context=".MainActivity"
    android:id="@+id/main_layout">

    <org.linphone.mediastream.video.display.GL2JNIView
        android:visibility="visible"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:id="@+id/videoSurface" />
</RelativeLayout>

Fatal exception:

10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime: FATAL EXCEPTION: main
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime: java.lang.NullPointerException
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.opengl.GLSurfaceView.surfaceCreated(GLSurfaceView.java:523)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.SurfaceView.updateWindow(SurfaceView.java:623)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.SurfaceView.access$000(SurfaceView.java:82)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:173)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:671)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1818)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.Choreographer.doCallbacks(Choreographer.java:555)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.Choreographer.doFrame(Choreographer.java:525)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:615)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:92)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:137)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:4745)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:511)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-07 16:37:17.450 32684-32684/com.be_ssd.sipinterphone E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method)

Giacomo Furlan
Software developer
Software Solutions Designs

reply via email to

[Prev in Thread] Current Thread [Next in Thread]