Hi, I have five button in android and I want to pass boolean value to graph as input stream, my approach for adding one button to MainActivity.java is inspired from faceeffect MainActivity.java.
I'e defined an input stream name variable:
private static final String IS_LIP_SELECTED_INPUT_STREAM_NAME ="is_lip_selected";
I've defined an object and a boolean variable and a view:
private final Object isLipSelectedLock = new Object();private boolean isLipSelected;private View createEffectLipView;
I'e wrote a function for adding view and assign it to view variable:
createEffectLipView = createEffectLipViewFunc();
and there are 4 other buttons exactly similar to this button.
but only one input passed to graph. and other seems empty.
is there any limitation for input_stream in method
setOnWillAddFrameListener or other used methods?
is there better way to handle multi input_streams and pass it to graph?
thank you.
Hi, I have five button in android and I want to pass boolean value to graph as input stream, my approach for adding one button to MainActivity.java is inspired from faceeffect MainActivity.java. I'e defined an input stream name variable:
private static final String IS_LIP_SELECTED_INPUT_STREAM_NAME ="is_lip_selected";
I've defined an object and a boolean variable and a view:private final Object isLipSelectedLock = new Object();
private boolean isLipSelected;
private View createEffectLipView;
I'e wrote a function for adding view and assign it to view variable:createEffectLipView = createEffectLipViewFunc();
and added my created view to viewgroup:
viewGroup.addView(createEffectLipView);
fuction to change boolean value by clicking on button:and set the view visible:
createEffectLipView.setVisibility(View.VISIBLE);
and finally add the boolean value to graph as input_stream:and there are 4 other buttons exactly similar to this button. but only one input passed to graph. and other seems empty. is there any limitation for input_stream in method
setOnWillAddFrameListener
or other used methods? is there better way to handle multi input_streams and pass it to graph? thank you.