HBiSoft / HBRecorder

Lightweight screen recording Android library
MIT License
423 stars 141 forks source link

Settings not supported by your phone #77

Closed Faisal-Naseer closed 3 years ago

Faisal-Naseer commented 3 years ago

I recieve an eror setting not supported by your phone and it doesnt record can you explain why this happens in my Techno spark 7 pro phone. what specific settings it look for?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed if no further activity occurs within the next 3 days. Thank you for your contributions.

khawajaetisam99 commented 3 years ago

Hi,

I came across the same problem. After hours of debugging, I found the solution:

the problem is in the video encoder. Try to set the video encoder in the file: hbrecorder\src\main\java\com\hbisoft\hbrecorder\ScreenRecorderservice.java

from: setvideoEncoderAsInt("DEFAULT");

to: setvideoEncoderAsInt("H264"); (provided that H264 encoder is supported on all devices and rest of encoders generate errors on few devices)

and issue will be resolved.

fahad00123 commented 2 years ago

khawajaetisam99 thank you so much bro . i fix this problem after 2 days due to you. thanks a lot