Overview
TheStreamInfo class represents detailed information about a video or audio stream. It extends the Info base class and provides comprehensive metadata about streams, including video/audio formats, uploader information, statistics, and additional metadata.
Static Methods
getInfo(String url)
Extracts stream information from a URL.
getInfo(StreamingService service, String url)
Extracts stream information from a URL using a specific service.
getInfo(StreamExtractor extractor)
Extracts stream information from a StreamExtractor instance.
Fields
Inherited from Info
The ID of the streaming service
The unique identifier for this stream (e.g., for YouTube: “RER5qCTzZ7”)
The cleaned URL of the stream
The original URL used to start extraction
The name/title of the stream
Stream Type and Basic Info
The type of stream. Possible values:
VIDEO_STREAM- Normal video with audioAUDIO_STREAM- Audio-only streamLIVE_STREAM- Live video streamAUDIO_LIVE_STREAM- Live audio streamPOST_LIVE_STREAM- Recently ended live videoPOST_LIVE_AUDIO_STREAM- Recently ended live audio
The age restriction for this stream
The duration of the stream in seconds. Returns -1 if not available.
Media Information
List of thumbnail images for the stream
The description of the stream
Stream URLs and Formats
List of available video streams (usually with audio)
List of available audio-only streams
List of available video-only streams (no audio)
The URL to the DASH manifest for adaptive streaming (empty string by default)
The URL to the HLS manifest for adaptive streaming (empty string by default)
List of available subtitle tracks
Uploader Information
The name of the uploader/channel (empty string by default)
The URL to the uploader’s channel (empty string by default)
List of uploader avatar images
Whether the uploader is verified
The number of subscribers the uploader has. Returns -1 if not available.
Sub-Channel Information
The name of the sub-channel (empty string by default, if applicable)
The URL to the sub-channel (empty string by default)
List of sub-channel avatar images
Statistics
The number of views. Returns -1 if not available.
The number of likes. Returns -1 if not available.
The number of dislikes. Returns -1 if not available.
Upload Date
The upload date as a text string (e.g., “2 days ago”)
The parsed upload date
Additional Metadata
The host/platform of the stream (empty string by default)
The privacy setting of the stream
The category of the stream (empty string by default)
The license information for the stream (empty string by default)
The language of the stream content
List of tags associated with the stream
Information about how to support the creator (empty string by default)
Playback Features
The starting position/timestamp in seconds
List of stream segments/chapters
Preview frames for storyboard/seekbar thumbnail previews
Related Content
List of related streams/videos
Additional metadata information
Content Classification
Whether this is short-form content (e.g., YouTube Shorts)
The availability status of the content
Methods
Getters and Setters
All fields have corresponding getter and setter methods following JavaBean conventions:getStreamType()/setStreamType(StreamType)getThumbnails()/setThumbnails(List<Image>)getDuration()/setDuration(long)getAgeLimit()/setAgeLimit(int)- And so on for all fields listed above
Inherited Methods from Info
Returns the service ID
Returns the StreamingService instance for this info object
Returns the unique identifier
Returns the cleaned URL
Returns the original URL used for extraction
Returns the name/title
Returns a list of non-fatal errors that occurred during extraction
Adds an error to the error list