React-native-video: overlap video in two screen

Created on 5 Jul 2018  路  3Comments  路  Source: react-native-video/react-native-video

Current behavior

video player in previous route screen covered part of current route screen video player
when I navigate A to B, as the image below , left part belonged route A, and It covered another player which belonged route B,

image

default

Reproduction steps

  1. playing a video in A route
  2. navigate to B route
  3. part of A's player still show in B's player and covered B's player

Expected behavior

player show not be covered by another player in different route

Platform

Which player are you experiencing the problem on:

  • Android ExoPlayer
  • Android MediaPlayer

env

"react-native-video": "^2.0.0",
"react-native": "^0.55.4",
"react-navigation": "1.5.11",

Most helpful comment

@MrPluto ExoPlayer uses a SurfaceView by default which doesn't support layering views on top of each other. You should update to the latest react-native-video release and set the useTextureView prop to true.

All 3 comments

@MrPluto ExoPlayer uses a SurfaceView by default which doesn't support layering views on top of each other. You should update to the latest react-native-video release and set the useTextureView prop to true.

@MrPluto ExoPlayer uses a SurfaceView by default which doesn't support layering views on top of each other. You should update to the latest react-native-video release and set the useTextureView prop to true.

Thanks. Its working. 馃槉鈽猴笍馃憤馃憦

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RZulfikri picture RZulfikri  路  3Comments

phanir-menlo picture phanir-menlo  路  3Comments

tirrorex picture tirrorex  路  3Comments

note89 picture note89  路  3Comments

joshyg picture joshyg  路  3Comments