forked from sahin/mobileplayer-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
MobilePlayerExamples/Assets.xcassets/PostrollExampleCode.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "PostrollExampleCode.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+26.1 KB
...erExamples/Assets.xcassets/PostrollExampleCode.imageset/PostrollExampleCode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// PostrollOverlayViewController.swift | ||
// MobilePlayer | ||
// | ||
// Created by Baris Sencan on 09/12/2015. | ||
// Copyright © 2015 MovieLaLa. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Foundation | ||
import MobilePlayer | ||
|
||
class PostrollOverlayViewController: MobilePlayerOverlayViewController { | ||
|
||
init() { | ||
super.init(nibName: "PostrollOverlayViewController", bundle: nil) | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9060" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PostrollOverlayViewController" customModule="MobilePlayerExamples" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="view" destination="iN0-l3-epB" id="M6u-gr-ijO"/> | ||
</connections> | ||
</placeholder> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view contentMode="scaleToFill" id="iN0-l3-epB"> | ||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="This is a post-roll overlay; shown automatically when playback completes and dismissed if it starts again." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TKZ-Yq-MKN"> | ||
<rect key="frame" x="12" y="279" width="576" height="41"/> | ||
<animations/> | ||
<fontDescription key="fontDescription" type="system" weight="light" pointSize="17"/> | ||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="MovielalaLogo" translatesAutoresizingMaskIntoConstraints="NO" id="2Fo-g7-MLe"> | ||
<rect key="frame" x="225" y="214" width="150" height="57"/> | ||
<animations/> | ||
</imageView> | ||
</subviews> | ||
<animations/> | ||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
<constraints> | ||
<constraint firstItem="TKZ-Yq-MKN" firstAttribute="width" secondItem="iN0-l3-epB" secondAttribute="width" constant="-24" id="FGT-6H-cLW"/> | ||
<constraint firstItem="TKZ-Yq-MKN" firstAttribute="top" secondItem="2Fo-g7-MLe" secondAttribute="bottom" constant="8" id="K98-VL-RGH"/> | ||
<constraint firstItem="TKZ-Yq-MKN" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="Req-Dx-8yf"/> | ||
<constraint firstItem="2Fo-g7-MLe" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="TTk-Hd-4iH"/> | ||
<constraint firstItem="TKZ-Yq-MKN" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="zWg-uZ-ZOM"/> | ||
</constraints> | ||
</view> | ||
</objects> | ||
<resources> | ||
<image name="MovielalaLogo" width="150" height="57"/> | ||
</resources> | ||
</document> |