Class VideoContent
java.lang.Object
dev.langchain4j.data.message.VideoContent
- All Implemented Interfaces:
Content
-
Constructor Summary
ConstructorsConstructorDescriptionVideoContent(Video video) Create a newVideoContentfrom the given video.VideoContent(String url) Create a newVideoContentfrom the given url.VideoContent(String base64Data, String mimeType) Create a newVideoContentfrom the given base64 data and mime type.VideoContent(URI url) Create a newVideoContentfrom the given url. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic VideoContentCreate a newVideoContentfrom the given video.static VideoContentCreate a newVideoContentfrom the given url.static VideoContentCreate a newVideoContentfrom the given base64 data and mime type.static VideoContentCreate a newVideoContentfrom the given url.inthashCode()toString()type()Returns the type of content.video()Get theVideo.
-
Constructor Details
-
VideoContent
Create a newVideoContentfrom the given url.- Parameters:
url- the url of the Video.
-
VideoContent
Create a newVideoContentfrom the given url.- Parameters:
url- the url of the video.
-
VideoContent
Create a newVideoContentfrom the given base64 data and mime type.- Parameters:
base64Data- the base64 data of the video.mimeType- the mime type of the video.
-
VideoContent
Create a newVideoContentfrom the given video.- Parameters:
video- the video.
-
-
Method Details
-
type
Description copied from interface:ContentReturns the type of content.Can be used to cast the content to the correct type.
-
video
-
equals
-
hashCode
-
toString
-
from
Create a newVideoContentfrom the given url.- Parameters:
url- the url of the video.- Returns:
- the new
VideoContent.
-
from
Create a newVideoContentfrom the given url.- Parameters:
url- the url of the video.- Returns:
- the new
VideoContent.
-
from
Create a newVideoContentfrom the given base64 data and mime type.- Parameters:
base64Data- the base64 data of the video.mimeType- the mime type of the video.- Returns:
- the new
VideoContent.
-
from
Create a newVideoContentfrom the given video.- Parameters:
video- the video.- Returns:
- the new
VideoContent.
-