Package io.github.thoroldvix.api
Interface TranscriptContent
public interface 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
Modifier and TypeInterfaceDescriptionstatic interface
Represents a single fragment of the transcript content. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list ofTranscriptContent.Fragment
objects that represent the content of the transcript.
-
Method Details
-
getContent
List<TranscriptContent.Fragment> getContent()Retrieves a list ofTranscriptContent.Fragment
objects that represent the content of the transcript.- Returns:
- A
List
ofTranscriptContent.Fragment
objects.
-