Package io.github.thoroldvix.api
Class TranscriptContent
java.lang.Object
io.github.thoroldvix.api.TranscriptContent
Represents the content of a transcript for a single video.
When the transcript content is fetched from YouTube, it is provided in the form of XML containing multiple transcript fragments.
For example:
<transcript>
<text>Text</text>
<start>0.0</start>
<dur>1.54</dur>
</transcript>
<transcript>
<text>Another text</text>
<start>1.54</start>
<dur>4.16</dur>
</transcript>
This interface encapsulates the transcript content as a List<Fragment>
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents a single fragment of the transcript content. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves a list ofTranscriptContent.Fragment
objects that represent the content of the transcript.int
hashCode()
toString()
-
Constructor Details
-
TranscriptContent
-
-
Method Details
-
getContent
Retrieves a list ofTranscriptContent.Fragment
objects that represent the content of the transcript.- Returns:
- A
List
ofTranscriptContent.Fragment
objects.
-
hashCode
public int hashCode() -
equals
-
toString
-