Skip to content

Commit

Permalink
Bump version to 0.2.0 and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
lilfaf committed Nov 10, 2015
1 parent e78b11b commit fceeb30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ Use the block based methods and pass it the video url and the desired quality
// handle error
NSLog(@"Video URL: %@", [videoURL absoluteString]);
} else {
// run player
self.playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[self.playerViewController.moviePlayer prepareToPlay];
[self presentViewController:self.playerViewController animated:YES completion:nil];
// run player
dispatch_async (dispatch_get_main_queue(), ^{
self.playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[self.playerViewController.moviePlayer prepareToPlay];
[self presentViewController:self.playerViewController animated:YES completion:nil];
});
}
}];
```
Expand Down Expand Up @@ -74,9 +76,11 @@ If the Vimeo videos have domain-level restrictions and can only be played from p
NSLog(@"Video URL: %@", [videoURL absoluteString]);
} else {
// run player
self.playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[self.playerViewController.moviePlayer prepareToPlay];
[self presentViewController:self.playerViewController animated:YES completion:nil];
dispatch_async (dispatch_get_main_queue(), ^{
self.playerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[self.playerViewController.moviePlayer prepareToPlay];
[self presentViewController:self.playerViewController animated:YES completion:nil];
});
}
}];
```
Expand All @@ -85,7 +89,7 @@ Check the sample application for more details.
## Requirements
YTVimeoExtractor requires iOS 5.0 and above as it is deployed for an ARC environment.
YTVimeoExtractor requires iOS 7.0 and above as it is deployed for an ARC environment.
## License
Expand Down
6 changes: 3 additions & 3 deletions YTVimeoExtractor.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "YTVimeoExtractor"
s.version = "0.1.0"
s.version = "0.2.0"
s.summary = "Fetches Vimeo's mp4 URLs for iOS."
s.description = <<-DESC
YTVimeoExtractor is a class which lets you get the iOS
Expand All @@ -10,9 +10,9 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/lilfaf/YTVimeoExtractor"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Louis Larpin" => "[email protected]" }
s.source = { :git => "https://github.com/lilfaf/YTVimeoExtractor.git", :tag => "0.1.0" }
s.source = { :git => "https://github.com/lilfaf/YTVimeoExtractor.git", :tag => "0.2.0" }

s.ios.deployment_target = '5.0'
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.8'
s.tvos.deployment_target = '9.0'
s.source_files = 'YTVimeoExtractor/*.{h,m}'
Expand Down

0 comments on commit fceeb30

Please sign in to comment.