Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"name": "JavaAudioVideo",
"description": "An example detection component for audio processing of audio and video media.",
"actionType": "DETECTION",
"trackType": "AUDIOVIDEO",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,4 @@ public List<MPFAudioTrack> getDetections(MPFAudioJob mpfAudioJob) throws MPFComp

return tracks;
}

public String getDetectionType() {
return "AUDIOVIDEO";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"name": "JavaHelloWorld",
"description": "A simple example detection component.",
"actionType": "DETECTION",
"trackType": "HELLO",
"outputChangedCounter" : 1,
"requiresCollection": {
"states": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,4 @@ public boolean supports(MPFDataType mpfDataType) {
}
return false;
}

public String getDetectionType() {
return "HELLO";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,4 @@ public interface MPFDetectionComponentInterface extends MPFComponentInterface {
* @return True if the data type is supported by this component.
*/
boolean supports(MPFDataType dataType);

/**
* Gets the detection type for the component.
*
* @return The detection type.
*/
String getDetectionType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,4 @@ public List<MPFGenericTrack> getDetections(MPFGenericJob job) throws MPFComponen
public boolean supports(MPFDataType dataType) {
return (MPFDataType.AUDIO == dataType) || (MPFDataType.VIDEO == dataType);
}

public abstract String getDetectionType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ public List<MPFAudioTrack> getDetections(MPFAudioJob job) throws MPFComponentDet
}
return tracks;
}

@Override
public String getDetectionType() {
return "TEST";
}

}

}
}