Issue when switching two surfaceview in sony bravia TV
See original GitHub issueIn my sample app i have feature to swap one full screen player and small PIP player above full screen player , when clicking on swap button i need to swap content each other. Each player is sitting in different fragment. When switching i am changing the constraint with animation TransitionManager.beginDelayedTransition(layout)
. i am changing the elevation
of fragment container to bring small player above big player on each swap operation. This is working fine when i set surface as textureview
but i found that when i set surface as surfaceview
, the small player which is shown above getting transparent on surface part. By setting setZOrderMediaOverlay
true to small player it is fixed in other devices like Nvdea and MIBox but sony tv failed to pass with that fix.
i have changed the video renderer from OMX.MTK.VIDEO.DECODER.AVC
to OMX.google.h264.decoder
then its works but i cannot rely on software codec
any idea whats going on here ?
here is the sample code :
android version : 9 exo-player version - 2.12.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
I’m just a user of ExoPlayer trying to help as this is something that affect one of my projects, once the developers responsible for ExoPlayer have all the info and is determined that the manufacturer of the device need to take a look they will inform and reply back to you on what can be done.
Two sample of that here https://github.com/google/ExoPlayer/issues/8427 and https://github.com/google/ExoPlayer/issues/7998
we are moving all the contents to drm protected asset with multiview so we eventually have to move to surfaceview
attached video of how it behaves
this video is recored with adb but for some reason this video not showing the issue as actually visible in tv
https://user-images.githubusercontent.com/6000288/111228043-ad13a080-8637-11eb-9849-7971e5f57022.mp4
so i have recorded video with my mobile to see actual behaviour. attaching the same here
https://user-images.githubusercontent.com/6000288/111231123-d1be4700-863c-11eb-8807-848469a2eb10.mp4
one more thing to mention when we switch players with big and small , small player is able to move to big player but big player first rendered is failing to display in small player on further switch it behaves same.
if you see the code i have provided i am doing that but does not help
the above app also has the same issue attaching the video here , you can see that video is loading and once starts its going behind the big player
https://user-images.githubusercontent.com/6000288/111231640-ba338e00-863d-11eb-810d-f41a949842a0.mp4