From fceeb305a24277d1d0d90cc4cf15e1002e469f17 Mon Sep 17 00:00:00 2001 From: Louis Larpin Date: Tue, 10 Nov 2015 02:07:37 +0100 Subject: [PATCH] Bump version to 0.2.0 and update README --- README.md | 20 ++++++++++++-------- YTVimeoExtractor.podspec | 6 +++--- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fd8f801..4c32b33 100644 --- a/README.md +++ b/README.md @@ -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]; + }); } }]; ``` @@ -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]; + }); } }]; ``` @@ -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 diff --git a/YTVimeoExtractor.podspec b/YTVimeoExtractor.podspec index b255a31..5e5eb3e 100644 --- a/YTVimeoExtractor.podspec +++ b/YTVimeoExtractor.podspec @@ -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 @@ -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" => "louis.larpin@gmail.com" } - 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}'