ExoMedia icon indicating copy to clipboard operation
ExoMedia copied to clipboard

EMVideoView continue black or white seconds when activity resume

Open recwert opened this issue 9 years ago • 17 comments

  • [ ] 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

recwert avatar Oct 28 '16 01:10 recwert

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)

brianwernick avatar Nov 01 '16 02:11 brianwernick

Perhaps this is of interest https://github.com/google/ExoPlayer/issues/852

frel avatar Nov 29 '16 14:11 frel

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 avatar Nov 29 '16 15:11 brianwernick

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?

brianwernick avatar Feb 20 '17 01:02 brianwernick

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.

rohan31710 avatar Feb 21 '17 18:02 rohan31710

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.

brianwernick avatar Feb 21 '17 18:02 brianwernick

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

artworkad avatar May 29 '17 08:05 artworkad

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

leimenghao avatar Jul 14 '17 07:07 leimenghao

how to solve it?@brianwernick

kaka2009 avatar Sep 26 '17 07:09 kaka2009

how to solve it?@ArtworkAD

kaka2009 avatar Sep 26 '17 07:09 kaka2009

Is it still unsolved ? @brianwernick

1242128273wangpeng avatar Apr 12 '18 03:04 1242128273wangpeng

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

RomanSytnyk avatar Jul 18 '18 09:07 RomanSytnyk

Same problem

hamzaahmedkhan avatar Dec 24 '19 15:12 hamzaahmedkhan

use TextureView can solve this problem.

lmislm avatar Nov 03 '22 03:11 lmislm

can i set useTextureViewBacking programatically

impeterwayne avatar Aug 09 '23 10:08 impeterwayne

Is this issue still unsolved? please help.

Romie0606 avatar Sep 15 '23 10:09 Romie0606

Is this issue still unsolved? please help.

check here: https://github.com/brianwernick/ExoMedia/issues/345#issuecomment-281441526

vantangst avatar Jan 28 '24 07:01 vantangst