public class VideoStream extends Stream
Modifier and Type | Field and Description |
---|---|
boolean |
isVideoOnly |
String |
resolution |
format, torrentUrl, url
Constructor and Description |
---|
VideoStream(String url,
boolean isVideoOnly,
ItagItem itag) |
VideoStream(String url,
MediaFormat format,
String resolution) |
VideoStream(String url,
MediaFormat format,
String resolution,
boolean isVideoOnly) |
VideoStream(String url,
String torrentUrl,
MediaFormat format,
String resolution) |
VideoStream(String url,
String torrentUrl,
MediaFormat format,
String resolution,
boolean isVideoOnly) |
Modifier and Type | Method and Description |
---|---|
boolean |
equalStats(Stream cmp)
Reveals whether two streams have the same stats (format and bitrate, for example)
|
int |
getBitrate() |
String |
getCodec() |
int |
getFps() |
int |
getHeight() |
int |
getIndexEnd() |
int |
getIndexStart() |
int |
getInitEnd() |
int |
getInitStart() |
int |
getItag() |
String |
getQuality() |
String |
getResolution()
Get the video resolution
|
int |
getWidth() |
boolean |
isVideoOnly()
Check if the video is video only.
|
containSimilarStream, equals, getFormat, getFormatId, getTorrentUrl, getUrl
public final String resolution
public final boolean isVideoOnly
public VideoStream(String url, MediaFormat format, String resolution)
public VideoStream(String url, MediaFormat format, String resolution, boolean isVideoOnly)
public VideoStream(String url, String torrentUrl, MediaFormat format, String resolution)
public VideoStream(String url, String torrentUrl, MediaFormat format, String resolution, boolean isVideoOnly)
public boolean equalStats(Stream cmp)
Stream
equalStats
in class Stream
public String getResolution()
public boolean isVideoOnly()
Video only streams have no audio
true
if this stream is vidpublic int getItag()
public int getBitrate()
public int getInitStart()
public int getInitEnd()
public int getIndexStart()
public int getIndexEnd()
public int getWidth()
public int getHeight()
public int getFps()
public String getQuality()
public String getCodec()