Skip to content

Commit 90af188

Browse files
committed
Add videoTag(String source) overload to Url.
1 parent 87ab24d commit 90af188

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cloudinary-core/src/main/java/com/cloudinary/Url.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ public String videoTag() {
575575
return videoTag("", new HashMap<String, String>());
576576
}
577577

578+
public String videoTag(String source) {
579+
return videoTag(source, new HashMap<String, String>());
580+
}
581+
578582
public String videoTag(Map<String, String> attributes) {
579583
return videoTag("", attributes);
580584
}

cloudinary-core/src/test/java/com/cloudinary/test/CloudinaryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ public void testVideoTag() {
774774
expectedTag = String.format(expectedTag, expectedUrl, expectedUrl, expectedUrl, expectedUrl);
775775
assertEquals(expectedTag, cloudinary.url().videoTag("movie", emptyMap()));
776776
assertEquals(expectedTag, cloudinary.url().publicId("movie").videoTag());
777+
assertEquals(expectedTag, cloudinary.url().videoTag("movie"));
777778
}
778779

779780
@Test

0 commit comments

Comments
 (0)