ExoMedia icon indicating copy to clipboard operation
ExoMedia copied to clipboard

First frame flicker when playing landscape video

Open ehehhh opened this issue 9 years ago • 9 comments

  • [x] I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • ExoMedia version: 3.0.2
  • Device OS version: 6.0.1
  • Devide Manufacturer: LG
  • Device Name: Nexus 5
Reproduction Steps
  1. Play a video recorded in landscape mode when the phone is in portrait mode. (EMVideoView has default scale type, nothing unusual about how it's created)
Expected Result

The video should start playing with the correct scale without any flickering.

Actual Result

The first frame of the video fills the screen and then it adjusts the scale of the video to the default FIT_CENTER behavior, this causes an unpleasant flickering at the start of the video.

ehehhh avatar Oct 05 '16 11:10 ehehhh

May be related to #281

brianwernick avatar Nov 01 '16 02:11 brianwernick

@ehehhh are you still seeing this with the 3.1.1 release?

brianwernick avatar Feb 04 '17 00:02 brianwernick

Hi, Brian. Unfortunately, I'm still seeing this issue with the newest 3.1.1 release as well. I created a small project which reproduces this issue: https://github.com/ehehhh/ExoMediaIssue326

ehehhh avatar Feb 06 '17 08:02 ehehhh

Thanks, I'll see if I can reproduce it with your demo app; otherwise I'll have to track down a Nexus 5

brianwernick avatar Feb 06 '17 15:02 brianwernick

I tested it on my nexus 5x, doesn't happen there. I wonder if it's related to the android version (5x has nougat, 5 has marshmallow).

ehehhh avatar Feb 06 '17 15:02 ehehhh

Possibly. Once my QA at work gets in I'll see if he can track down a N5 for me (hopefully with 6.0.1)

brianwernick avatar Feb 06 '17 16:02 brianwernick

@brianwernick @ehehhh having the same problem on a Nexus 4 @ 5.1, ExoMedia @ 4.0.2

artworkad avatar May 29 '17 08:05 artworkad

Having the same problem on all Google Pixel's phone (XL and Pixel) and also few Android TV Box

jboisjo avatar Jun 06 '17 15:06 jboisjo

if you set the useSurfaceViewBacking to false, you won't have this issue. But this cause effects like not getting high fps on streams. If i set to SurfaceView to true, then my fps is better and cleaner.

jboisjo avatar Jul 04 '17 17:07 jboisjo