mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 16:00:33 +05:30
Add fps field as well.
This commit is contained in:
parent
4d096be14a
commit
8d54401233
@ -35,6 +35,7 @@ public class VideoStream extends Stream {
|
|||||||
private int indexEnd;
|
private int indexEnd;
|
||||||
private int width;
|
private int width;
|
||||||
private int height;
|
private int height;
|
||||||
|
private int fps;
|
||||||
private String codec;
|
private String codec;
|
||||||
|
|
||||||
public VideoStream(String url, MediaFormat format, String resolution) {
|
public VideoStream(String url, MediaFormat format, String resolution) {
|
||||||
@ -55,6 +56,7 @@ public class VideoStream extends Stream {
|
|||||||
this.codec = itag.getCodec();
|
this.codec = itag.getCodec();
|
||||||
this.height = itag.getHeight();
|
this.height = itag.getHeight();
|
||||||
this.width = itag.getWidth();
|
this.width = itag.getWidth();
|
||||||
|
this.fps = itag.fps;
|
||||||
}
|
}
|
||||||
|
|
||||||
public VideoStream(String url, String torrentUrl, MediaFormat format, String resolution) {
|
public VideoStream(String url, String torrentUrl, MediaFormat format, String resolution) {
|
||||||
@ -122,6 +124,10 @@ public class VideoStream extends Stream {
|
|||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getFps() {
|
||||||
|
return fps;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCodec() {
|
public String getCodec() {
|
||||||
return codec;
|
return codec;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user