Hi everyone,
I’m having trouble generating a debug file with my Android app (built with Unity) using the GST_DEBUG_FILE
environment variable. Although the following code allows me to view the logs in Logcat, I can’t get the debug file to write to the specified path, even though it seems correct and writable.
try {
Os.setenv(
"GST_DEBUG_FILE",
"/sdcard/Android/data/com.DefaultCompany.UnityProject/files/gstreamer/gstreamer.log",
true
);
Os.setenv("GST_DEBUG_NO_COLOR", "1", true);
Os.setenv("GST_DEBUG", "4", true);
} catch (ErrnoException ex) {
Log.d(
"OverrideActivity",
"ErrnoException caught: " + ex.getMessage()
);
}
System.loadLibrary("gstreamer_android");
try {
GStreamer.init(this);
} catch (Exception e) {
e.printStackTrace();
}
Any insights or suggestions would be greatly appreciated!
Thank you for your input!