Skip to content

Commit 8d54401

Browse files
committed
Add fps field as well.
1 parent 4d096be commit 8d54401

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/stream/VideoStream.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class VideoStream extends Stream {
3535
private int indexEnd;
3636
private int width;
3737
private int height;
38+
private int fps;
3839
private String codec;
3940

4041
public VideoStream(String url, MediaFormat format, String resolution) {
@@ -55,6 +56,7 @@ public VideoStream(String url, boolean isVideoOnly, ItagItem itag) {
5556
this.codec = itag.getCodec();
5657
this.height = itag.getHeight();
5758
this.width = itag.getWidth();
59+
this.fps = itag.fps;
5860
}
5961

6062
public VideoStream(String url, String torrentUrl, MediaFormat format, String resolution) {
@@ -122,6 +124,10 @@ public int getHeight() {
122124
return height;
123125
}
124126

127+
public int getFps() {
128+
return fps;
129+
}
130+
125131
public String getCodec() {
126132
return codec;
127133
}

0 commit comments

Comments
 (0)