Skip to content

Commit

Permalink
Add support for HTTP Live Streaming (HLS)
Browse files Browse the repository at this point in the history
Closes #38
  • Loading branch information
SoneeJohn committed Mar 15, 2016
1 parent a8d0468 commit a0601ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions YTVimeoExtractor/YTVimeoVideo.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ It is very important that you do not create a subclass of `YTVimeoVideo`
* @return The lowest quality stream URL.
*/
-(NSURL *)lowestQualityStreamURL;
/**
* The HTTP Live Stream URL for the video.
*/
@property (nonatomic, readonly, nullable) NSURL *HTTPLiveStreamURL;
NS_ASSUME_NONNULL_END

@end
1 change: 1 addition & 0 deletions YTVimeoExtractor/YTVimeoVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ - (void)extractVideoInfoWithCompletionHandler:(void (^)(NSError *error))completi
NSMutableDictionary *streamURLs = [NSMutableDictionary new];
NSMutableDictionary *thumbnailURLs = [NSMutableDictionary new];

_HTTPLiveStreamURL = [NSURL URLWithString:[self.infoDict valueForKeyPath:@"request.files.hls.url"]];

for (NSDictionary *info in filesInfo) {

Expand Down

0 comments on commit a0601ce

Please sign in to comment.