ViewRenderable не работает должным образом с VideoView [SceneForm ARCore] - PullRequest
0 голосов
/ 10 мая 2018

Github проблема: https://github.com/google-ar/sceneform-android-sdk/issues/9

Я использую ViewRenderable с этим макетом

<?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 и Button правильно поступает в ARScene, но VideoView движется вместе с камерой.

enter image description here

Моя конечная цель - воспроизвести видео с помощью хроматического ключа. Но я также не могу воспроизводить видео

...