mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 22:05:18 +00:00
Added seekbar data
This commit is contained in:
@@ -175,6 +175,11 @@ public class YoutubeService extends StreamingService {
|
||||
return YoutubeCommentsLinkHandlerFactory.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamExtractor getStreamExtractor(String url) throws ExtractionException {
|
||||
return super.getStreamExtractor(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommentsExtractor getCommentsExtractor(ListLinkHandler urlIdHandler)
|
||||
throws ExtractionException {
|
||||
|
@@ -335,6 +335,12 @@ public class StreamInfo extends Info {
|
||||
streamInfo.addError(e);
|
||||
}
|
||||
|
||||
try {
|
||||
streamInfo.setFrames(extractor.getFrames());
|
||||
} catch (Exception e) {
|
||||
streamInfo.addError(e);
|
||||
}
|
||||
|
||||
streamInfo.setRelatedItems(ExtractorHelper.getRelatedItemsOrLogError(streamInfo, extractor));
|
||||
|
||||
return streamInfo;
|
||||
@@ -386,6 +392,11 @@ public class StreamInfo extends Info {
|
||||
private List<StreamSegment> streamSegments = new ArrayList<>();
|
||||
private List<MetaInfo> metaInfo = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Frames, e.g. for the storyboard / seekbar thumbnail preview
|
||||
*/
|
||||
private List<Frameset> frames = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Get the stream type
|
||||
*
|
||||
@@ -711,6 +722,14 @@ public class StreamInfo extends Info {
|
||||
this.metaInfo = metaInfo;
|
||||
}
|
||||
|
||||
public List<Frameset> getFrames() {
|
||||
return frames;
|
||||
}
|
||||
|
||||
public void setFrames(List<Frameset> frames) {
|
||||
this.frames = frames;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public List<MetaInfo> getMetaInfo() {
|
||||
return this.metaInfo;
|
||||
|
Reference in New Issue
Block a user