Skip to content

Commit

Permalink
Fix mac sample. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lilfaf committed Nov 27, 2015
1 parent e9b17b4 commit 5dddded
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
25 changes: 16 additions & 9 deletions Sample/MacSample/MainWindow.xib
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6254" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.AVKitIBPlugin" version="6254"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6254"/>
<plugIn identifier="com.apple.AVKitIBPlugin" version="9060"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="MainWindowController">
Expand All @@ -20,13 +20,14 @@
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="578" height="363"/>
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/>
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/>
<view key="contentView" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="578" height="363"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nlo-2n-FoI">
<rect key="frame" x="492" y="7" width="66" height="25"/>
<animations/>
<buttonCell key="cell" type="roundTextured" title="Play" bezelStyle="texturedRounded" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="kIP-Ot-fn0">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
Expand All @@ -36,7 +37,8 @@
</connections>
</button>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qj8-EU-bhe">
<rect key="frame" x="20" y="8" width="291" height="23"/>
<rect key="frame" x="20" y="8" width="189" height="23"/>
<animations/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" title="http://vimeo.com/58600663" placeholderString="" drawsBackground="YES" id="o7L-xz-cIa">
<font key="font" metaFont="system"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
Expand All @@ -45,22 +47,27 @@
</textField>
<avPlayerView fixedFrame="YES" controlsStyle="none" translatesAutoresizingMaskIntoConstraints="NO" id="rfM-L3-aFx">
<rect key="frame" x="0.0" y="39" width="578" height="324"/>
<animations/>
</avPlayerView>
<segmentedControl verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yHQ-iH-HYR">
<rect key="frame" x="317" y="7" width="169" height="24"/>
<rect key="frame" x="215" y="6" width="273" height="24"/>
<animations/>
<segmentedCell key="cell" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="BKa-8I-9SX">
<font key="font" metaFont="system"/>
<segments>
<segment label="Low"/>
<segment label="Standard" selected="YES" tag="1"/>
<segment label="HD"/>
<segment label="270p"/>
<segment label="360p" selected="YES" tag="1"/>
<segment label="720p"/>
<segment label="1080p"/>
<segment label="Best"/>
</segments>
</segmentedCell>
<connections>
<action selector="changeQuality:" target="-2" id="QDN-ex-9zF"/>
</connections>
</segmentedControl>
</subviews>
<animations/>
</view>
<connections>
<outlet property="delegate" destination="-2" id="VVk-9V-9Ie"/>
Expand Down
15 changes: 10 additions & 5 deletions Sample/MacSample/MainWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ @implementation MainWindowController
- (void)windowDidLoad {
[super windowDidLoad];

self.quality = YTVimeoVideoQualityMedium;
self.quality = YTVimeoVideoQualityBestAvailable;
}

- (void)windowWillClose:(NSNotification *)notification {
Expand All @@ -51,16 +51,21 @@ - (IBAction)playVideo:(id)sender {
- (IBAction)changeQuality:(id)sender {
switch (self.qualitySeg.selectedSegment) {
case 0:
self.quality = YTVimeoVideoQualityLow;
self.quality = YTVimeoVideoQualityLow270;
break;
case 1:
self.quality = YTVimeoVideoQualityMedium;
self.quality = YTVimeoVideoQualityMedium360;
break;
case 2:
self.quality = YTVimeoVideoQualityHigh;

self.quality = YTVimeoVideoQualityHD720;
break;
case 3:
self.quality = YTVimeoVideoQualityHD1080;
break;
default:
self.quality = YTVimeoVideoQualityBestAvailable;
break;

}
}
@end
4 changes: 2 additions & 2 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.3.0"
s.version = "0.3.1"
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,7 +10,7 @@ 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.3.0" }
s.source = { :git => "https://github.com/lilfaf/YTVimeoExtractor.git", :tag => "0.3.1" }

s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
Expand Down

0 comments on commit 5dddded

Please sign in to comment.