use of com.aws.iot.edgeconnectorforkvs.videorecorder.model.RecorderCapability in project aws-iot-greengrass-edge-connector-for-kinesis-video-stream by awslabs.
the class RecorderBranchBaseUnitTest method getMuxerTest_getMuxerByType_nonNullValue.
@Test
public void getMuxerTest_getMuxerByType_nonNullValue() {
willReturn(this.mockMuxer).given(this.mockGst).newElement(anyString());
RecorderCapability cap = RecorderCapability.VIDEO_AUDIO;
ContainerType type = ContainerType.MATROSKA;
RecorderBranchTest testBranch = new RecorderBranchTest(cap);
Assertions.assertNotNull(testBranch.getMuxer(type, true));
Assertions.assertNotNull(testBranch.getMuxer(type, false));
}
use of com.aws.iot.edgeconnectorforkvs.videorecorder.model.RecorderCapability in project aws-iot-greengrass-edge-connector-for-kinesis-video-stream by awslabs.
the class VideoRecorderBase method bindBranchToTees.
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);
}
}
Aggregations