Skip to content

Commit

Permalink
Default all streaming types to video for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bbpennel committed Jul 3, 2024
1 parent 87ec399 commit 0ce969e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public class WorkGenerator {
// use local streamingUrl property for now because Cdr.streamingUrl only exists in a feature branch
public static final Property streamingUrl = createProperty(
"http://cdr.unc.edu/definitions/model#streamingUrl");
public static final Property streamingType = createProperty(
"http://cdr.unc.edu/definitions/model#streamingType");
protected PIDMinter pidMinter;
protected RedirectMappingService redirectMappingService;
protected SourceFilesInfo sourceFilesInfo;
Expand Down Expand Up @@ -251,6 +253,7 @@ protected void addStreamingMetadata(String cdmId, Resource resource) {
String streamingUrlValue = "https://durastream.lib.unc.edu/player?spaceId=" + duracloudSpace
+ "&filename=" + streamingFile;
resource.addProperty(streamingUrl, streamingUrlValue);
resource.addProperty(streamingType, "video");
}
}
}

0 comments on commit 0ce969e

Please sign in to comment.