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

EMVideoView continue black or white seconds when activity resume #345

Open
1 task
recwert opened this issue Oct 28, 2016 · 17 comments
Open
1 task

EMVideoView continue black or white seconds when activity resume #345

recwert opened this issue Oct 28, 2016 · 17 comments
Labels

Comments

@recwert
Copy link

recwert commented Oct 28, 2016

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • ExoMedia version: 3.0.5
  • Device OS version: 5.1
  • Devide Manufacturer: Hisense
  • Device Name: Hisense E70-T
Reproduction Steps

1.VideoActivity onCreate:
emVideoView.setScaleType(ScaleType.NONE); emVideoView.setKeepScreenOn(true);
2.startActivity to another activity
Intent intent = new Intent(this, ProjectDetailsActivity.class); startActivity(intent);
3.press back key back to the VideoActivity,

Expected Result

the EMVideoView show video right immediately

Actual Result

the EMVideoView continue black or white seconds(audio is normal), after seconds, the EMVideoView show video right

@brianwernick
Copy link
Owner

brianwernick commented Nov 1, 2016

Even though I have marked this as a Bug, I'm not sure if there is much I can do because of the SurfaceView and TextureView surface functionality and how the ExoPlayer (and other VideoPlayers) interact with them. I'll see if there are any optimizations I can do to minimize the duration of the blank screen (this should just be the color of the activity or other views behind the EMVideoView bleeding through)

@frel
Copy link

frel commented Nov 29, 2016

Perhaps this is of interest google/ExoPlayer#852

@brianwernick
Copy link
Owner

Hmm, interesting... For reference, the link ojw28 points to is now invalid (because of repo changes); the full versioned link is https://github.com/google/ExoPlayer/blob/6a5cd6889258df6b9a08b770e2bf351a5bb30e18/demo/src/main/java/com/google/android/exoplayer/demo/PlayerActivity.java#L193

@brianwernick
Copy link
Owner

I'm having a difficult time reproducing the issue in the current master branch on KitKat through Nougat. Are there other devices that you have noticed this with?

@rohan31710
Copy link

rohan31710 commented Feb 21, 2017

I got the same issue. But why my last rendered frame is not visible after resuming the activity. You can observe this issue in all devices above 4.3. Even with demo app you will see the same issue.

@brianwernick
Copy link
Owner

brianwernick commented Feb 21, 2017

You can observe this issue in all devices above 4.3. Even with demo app you will see the same issue.

Nope, I have 8 different devices I have tried this with that don't have the issue as I mentioned above. What I do see is the TextureView or SurfaceView being blank for a moment however no audio is played until I see video frames. If you can reproduce it I would appreciate if you would look in to the issue and find the culprit

If you are wondering why the last frame isn't still visible it is because of how the SurfaceView and TextureView handle data.

@artworkad
Copy link

@brianwernick I see exactly the issue you describe on my Nexus 4 5.1, ExoMedia 4.0.2

@leimenghao
Copy link

@brianwernick I get the same black-screen issue on my MI5, android 7.0

@kaka2009
Copy link

how to solve it?@brianwernick

@kaka2009
Copy link

how to solve it?@artworkad

@1242128273wangpeng
Copy link

1242128273wangpeng commented Apr 12, 2018

Is it still unsolved ? @brianwernick

@RomanSytnyk
Copy link

I have the same problem.
Android 7.0, Samsung SM-T825.
Audio starts before video (2-3 secs), blank screen and audio.

@hamzaahmedkhan
Copy link
Contributor

Same problem

@lmislm
Copy link

lmislm commented Nov 3, 2022

use TextureView can solve this problem.

@impeterwayne
Copy link

can i set useTextureViewBacking programatically

@Romie0606
Copy link

Is this issue still unsolved? please help.

@vantangst
Copy link

Is this issue still unsolved? please help.

check here: #345 (comment)

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

No branches or pull requests