Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscriberViewContaine Is Gone when PublisherViewContainer is match_parent (FullScreen) #115

Closed
ateek opened this issue May 2, 2017 · 4 comments

Comments

@ateek
Copy link

ateek commented May 2, 2017

<FrameLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <FrameLayout
        android:id="@+id/publisherview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    </FrameLayout>

    <FrameLayout
        android:id="@+id/subscriberview"
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:layout_gravity="bottom|end"
        android:layout_marginBottom="16dp"
        android:layout_marginEnd="16dp"
        android:background="@color/grey_3"
        android:padding="16dp"/>
</FrameLayout>
@ateek
Copy link
Author

ateek commented May 2, 2017

device-2017-05-02-145301

@ateek
Copy link
Author

ateek commented May 3, 2017

I fixed this by doing that
GLSurfaceView subscriberView = (GLSurfaceView) subscriber.getView();
subscriberView.setZOrderMediaOverlay(true);
subscriberView.setZOrderOnTop(true);

@robjperez
Copy link
Contributor

Due to the behaviour of GLSurfaceViews you need to explicitly set the order of each view,

Like you have already pointed out, the solution is to do something similar to this: https://github.com/opentok/opentok-android-sdk-samples/blob/master/OpenTokSamples/1.Hello-World/src/main/java/com/opentok/android/samples/hello_world/MainActivity.java#L162

@mstar0125
Copy link

Hi @robjperez
Your url is not working. Could you please explain again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants