Created
June 17, 2022 02:29
-
-
Save larryluoo/c478ec10b60e1a8ff673ee92003a2e9b to your computer and use it in GitHub Desktop.
1v3Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Create an input stream list. */ | |
ArrayList<ZegoMixerInput> inputList = new ArrayList<>(); | |
/** Configue the first input stream, including the streamID (the real ID of the input stream), input type, layout, etc.*/ | |
ZegoMixerInput input_1 = new ZegoMixerInput("streamID_1", ZegoMixerInputContentType.VIDEO, new Rect(0, 0, 180, 320)); | |
inputList.add(input_1); | |
/** Configue the second input stream. */ | |
ZegoMixerInput input_2 = new ZegoMixerInput("streamID_2", ZegoMixerInputContentType.VIDEO, new Rect(180, 0, 360, 320)); | |
inputList.add(input_2); | |
/** Configue the third input stream. */ | |
ZegoMixerInput input_3 = new ZegoMixerInput("streamID_3", ZegoMixerInputContentType.VIDEO, new Rect(0, 320, 180, 640)); | |
inputList.add(input_3); | |
/** Configue the fourth input stream. */ | |
ZegoMixerInput input_4 = new ZegoMixerInput("streamID_4", ZegoMixerInputContentType.VIDEO, new Rect(180, 320, 360, 640)); | |
inputList.add(input_4); | |
/** Set up the input steam list for the stream mixing task. */ | |
task.setInputList(inputList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment