Sceneform-android-sdk: ViewRenderable not working properly with VideoView

Created on 10 May 2018  路  6Comments  路  Source: google-ar/sceneform-android-sdk

Iam using ViewRenderable with this Layout

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/planetInfoCard"
    android:layout_width="300dp"
    android:layout_height="300dp"
    android:gravity="center"
    android:orientation="vertical"
    android:text="Test"
    android:textAlignment="center">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hi how are you?" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="This is Button" />

    <VideoView
        android:layout_width="100dp"
        android:layout_height="100dp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Do you know what to do?" />

</LinearLayout>

TextView's and Button is coming properly in ARScene, but VideoView is moving along with Camera.

screenshot_20180510-123133_hello sceneform

My final goal is to play Video with chroma key.but iam unable to play video also

feature request

Most helpful comment

VideoView can not be supported by Sceneform 1.0. We're looking into a way support this use case for an upcoming release.

All 6 comments

VideoView can not be supported by Sceneform 1.0. We're looking into a way support this use case for an upcoming release.

If VideoView is not supported, this would also include TextureView and SurfaceView i.e. any way of streaming anchored video content?

We will not be adding support for using VideoView (Or any other SurfaceView) as part of a ViewRenderable, it is a current technical constraint.

However, we just released Sceneform 1.4 that adds the ability to display an android SurfaceTexture on a 3D object in Sceneform using the Sceneform class ExternalTexture. This is a new sample here that shows how to use this to play chroma keyed videos.

Please feel welcome to open new issues for any problems you run into with the new API.

Hi @dsternfeld7,
The link you posted for the new sample is broken. Could you repost it?
Thanks,

Thanks, the directory structure changed a bit - new link is here.

Hello there, I am trying to develop an AR app to help visual impaired people, so, my main idea is to use WebRTC in order to project computer desktop to an augmented environment where users can easily adjust size of the screen as well proximity to it.

SurfaceViewRenderer is the object used by WebRTC native API, but, as I understand it is an inherit of VidewView witch is not supported.

Would you help me with some hints to achieve this goal? I will really appreciate it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JessHolle picture JessHolle  路  3Comments

rohitagarwal3011 picture rohitagarwal3011  路  4Comments

tigran-babajanyan picture tigran-babajanyan  路  3Comments

LukasStancikas picture LukasStancikas  路  3Comments

PaulTVungle picture PaulTVungle  路  3Comments