textview10 / TestH264Player

intial project
47 stars 14 forks source link

Player screen not filling up when sender's orientation changes #1

Open johnny-wang16 opened 5 years ago

johnny-wang16 commented 5 years ago

when the sender's screen orientation changes from "portrait" to "landscape", the player's screen is not filling up, meaning that there are black boxes on both sides of the image. Seems like it's a common issue with surfaceView but do you have a solution for it? I tried to change the reverse the resolution(flipping width and height) on the sender side and now whenever the sender side is in "portrait", the screen won't fill up.

ulongx commented 1 month ago

when the sender's screen orientation changes from "portrait" to "landscape", the player's screen is not filling up, meaning that there are black boxes on both sides of the image. Seems like it's a common issue with surfaceView but do you have a solution for it? I tried to change the reverse the resolution(flipping width and height) on the sender side and now whenever the sender side is in "portrait", the screen won't fill up.

Hello, regarding the issue of surfaceview display deformation, has it been resolved?