thanh-nguyen-kim / Unity_Android_Screen_Recorder

A simpler demo record screen plugin for record Android Screen
GNU General Public License v3.0
101 stars 36 forks source link

Can't record in Portrait orientation #20

Closed Asteline closed 3 years ago

Asteline commented 3 years ago

Everything works great in left landscape orientation (haven't tried right), but when I switch in Project settings to Portrait or Auto Rotation it can't record. It pops a message "HBRecorderOnError see log" and saves an mp4 file with standard size that doesn't play. Using Android Logcat I don't get anything useful, it took me a while to figure out it was the orientation that was blocking the recording. Unfortunately the app has to be in portrait mode.

Asteline commented 3 years ago

After many stupid tries I changed the SCREEN_WIDTH to a smaller number and it worked.