ExoMedia: Fullscreen doesnt work

  • exomedia:4.0.3
  • Device OS SDK : 22
  • Device Name: Minix Neo U1

Hello. I have carefully read and implement fullscreen demo app, but however with our HLS stream, fullscreen doesnt work.

I added to all activities: android:configChanges=“orientation|keyboardHidden|screenSize”

My video player activity looks like:

<?xml version="1.0" encoding="utf-8"?>

<android.support.constraint.ConstraintLayout xmlns:android=“http://schemas.android.com/apk/res/android” xmlns:app=“http://schemas.android.com/apk/res-auto” android:id=“@+id/rootLayout” android:layout_width=“match_parent” android:layout_height=“match_parent” android:background=“@android:color/black”>

<com.devbrackets.android.exomedia.ui.widget.VideoView
    android:id="@+id/mainVideo"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    />

<FrameLayout
    android:id="@+id/placeholder"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>

And added almost all methods from FullScreenActivity. Video stream is HLS.

Update1:

I tried to play video stream in demo app, and it also uses default size.

Thanks for helping

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Turns out that I had made NONE represent fitXY, I’m still going to add an actual representation to the enum, but you can use none in xml or the type NONE to get fitXY

I should have some time this weekend and coming week so tentatively about a week out (?)