private void bindBranchToTees()

in src/main/java/com/aws/iot/edgeconnectorforkvs/videorecorder/base/VideoRecorderBase.java [276:295]


    private void bindBranchToTees(boolean bindVideo, boolean bindAudio) {
        for (Map.Entry<String, RecorderBranchBase> branch : this.branches.entrySet()) {
            RecorderCapability branchCap = branch.getValue().getCapability();
            ArrayList<Element> videoArr = null;
            ArrayList<Element> audioArr = null;

            // bind teeVideos
            if (bindVideo && (branchCap == RecorderCapability.VIDEO_AUDIO
                    || RecorderCapability.VIDEO_ONLY == branchCap)) {
                videoArr = this.teeVideos;
            }
            // bind teeAudios
            if (bindAudio && (branchCap == RecorderCapability.VIDEO_AUDIO
                    || RecorderCapability.AUDIO_ONLY == branchCap)) {
                audioArr = this.teeAudios;
            }

            branch.getValue().bindPaths(videoArr, audioArr);
        }
    }