Skip to content

Commit b15b60a

Browse files
committed
set H264 hardware encoding to "false" as default, to fix video call issues. hopefully we can find the underlying bug later
1 parent 39b73f9 commit b15b60a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/MainActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public class MainActivity extends AppCompatActivity
515515
static boolean PREF__X_zoom_incoming_video = false;
516516
static boolean PREF__use_software_aec = true;
517517
static boolean PREF__allow_screen_off_in_audio_call = true;
518-
static boolean PREF__use_H264_hw_encoding = true;
518+
static boolean PREF__use_H264_hw_encoding = false;
519519
static String PREF__camera_get_preview_format = "YV12"; // "YV12"; // "NV21";
520520
// static boolean PREF__use_camera_x = false;
521521
static boolean PREF__NO_RECYCLE_VIDEO_FRAME_BITMAP = true;
@@ -938,7 +938,7 @@ protected void onCreate(Bundle savedInstanceState)
938938
PREF__mic_gain_factor_toggle = settings.getBoolean("mic_gain_factor_toggle", false);
939939
PREF__window_security = settings.getBoolean("window_security", true);
940940
PREF__use_native_audio_play = settings.getBoolean("X_use_native_audio_play", true);
941-
PREF__use_H264_hw_encoding = settings.getBoolean("use_H264_hw_encoding", true);
941+
PREF__use_H264_hw_encoding = settings.getBoolean("use_H264_hw_encoding", false);
942942

943943
try
944944
{
@@ -3506,7 +3506,7 @@ protected void onResume()
35063506
PREF__window_security = settings.getBoolean("window_security", true);
35073507
PREF__use_native_audio_play = settings.getBoolean("X_use_native_audio_play", true);
35083508
PREF__tox_set_do_not_sync_av = settings.getBoolean("X_tox_set_do_not_sync_av", false);
3509-
PREF__use_H264_hw_encoding = settings.getBoolean("use_H264_hw_encoding", true);
3509+
PREF__use_H264_hw_encoding = settings.getBoolean("use_H264_hw_encoding", false);
35103510

35113511
// reset trigger for throttled saving
35123512
update_savedata_file_wrapper_throttled_last_trigger_ts = 0;

android-refimpl-app/app/src/main/res/xml/pref_general.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
android:title="@string/pref_title_camera_get_preview_format" />
124124

125125
<SwitchPreference
126-
android:defaultValue="true"
126+
android:defaultValue="false"
127127
android:key="use_H264_hw_encoding"
128128
android:summary="@string/pref_description_use_H264_hw_encoding"
129129
android:title="@string/pref_title_use_H264_hw_encoding" />

0 commit comments

Comments
 (0)