Skip to content

Commit ab3b101

Browse files
committed
add Develop App code
1 parent d2ca6f1 commit ab3b101

File tree

117 files changed

+7848
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+7848
-89
lines changed

Example/VPInterfaceControllerDemo.xcodeproj/project.pbxproj

Lines changed: 368 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1020"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "069D54341F04DC6D001E5324"
18+
BuildableName = "VPInterfaceControllerDemo.app"
19+
BlueprintName = "VPInterfaceControllerDemo"
20+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "069D54341F04DC6D001E5324"
34+
BuildableName = "VPInterfaceControllerDemo.app"
35+
BlueprintName = "VPInterfaceControllerDemo"
36+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
39+
<Testables>
40+
</Testables>
41+
</TestAction>
42+
<LaunchAction
43+
buildConfiguration = "Debug"
44+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
45+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
46+
launchStyle = "0"
47+
useCustomWorkingDirectory = "NO"
48+
ignoresPersistentStateOnLaunch = "NO"
49+
debugDocumentVersioning = "YES"
50+
debugServiceExtension = "internal"
51+
allowLocationSimulation = "YES">
52+
<BuildableProductRunnable
53+
runnableDebuggingMode = "0">
54+
<BuildableReference
55+
BuildableIdentifier = "primary"
56+
BlueprintIdentifier = "069D54341F04DC6D001E5324"
57+
BuildableName = "VPInterfaceControllerDemo.app"
58+
BlueprintName = "VPInterfaceControllerDemo"
59+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
60+
</BuildableReference>
61+
</BuildableProductRunnable>
62+
</LaunchAction>
63+
<ProfileAction
64+
buildConfiguration = "Release"
65+
shouldUseLaunchSchemeArgsEnv = "YES"
66+
savedToolIdentifier = ""
67+
useCustomWorkingDirectory = "NO"
68+
debugDocumentVersioning = "YES">
69+
<BuildableProductRunnable
70+
runnableDebuggingMode = "0">
71+
<BuildableReference
72+
BuildableIdentifier = "primary"
73+
BlueprintIdentifier = "069D54341F04DC6D001E5324"
74+
BuildableName = "VPInterfaceControllerDemo.app"
75+
BlueprintName = "VPInterfaceControllerDemo"
76+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
77+
</BuildableReference>
78+
</BuildableProductRunnable>
79+
</ProfileAction>
80+
<AnalyzeAction
81+
buildConfiguration = "Debug">
82+
</AnalyzeAction>
83+
<ArchiveAction
84+
buildConfiguration = "Release"
85+
revealArchiveInOrganizer = "YES">
86+
</ArchiveAction>
87+
</Scheme>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1110"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "064570C7235ED37300BDEE49"
18+
BuildableName = "VideoOSDevApp.app"
19+
BlueprintName = "VideoOSDevApp"
20+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<LaunchAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
launchStyle = "0"
30+
useCustomWorkingDirectory = "NO"
31+
ignoresPersistentStateOnLaunch = "NO"
32+
debugDocumentVersioning = "YES"
33+
debugServiceExtension = "internal"
34+
allowLocationSimulation = "YES">
35+
<BuildableProductRunnable
36+
runnableDebuggingMode = "0">
37+
<BuildableReference
38+
BuildableIdentifier = "primary"
39+
BlueprintIdentifier = "064570C7235ED37300BDEE49"
40+
BuildableName = "VideoOSDevApp.app"
41+
BlueprintName = "VideoOSDevApp"
42+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
43+
</BuildableReference>
44+
</BuildableProductRunnable>
45+
</LaunchAction>
46+
<ProfileAction
47+
buildConfiguration = "Debug"
48+
shouldUseLaunchSchemeArgsEnv = "YES"
49+
savedToolIdentifier = ""
50+
useCustomWorkingDirectory = "NO"
51+
debugDocumentVersioning = "YES">
52+
<BuildableProductRunnable
53+
runnableDebuggingMode = "0">
54+
<BuildableReference
55+
BuildableIdentifier = "primary"
56+
BlueprintIdentifier = "064570C7235ED37300BDEE49"
57+
BuildableName = "VideoOSDevApp.app"
58+
BlueprintName = "VideoOSDevApp"
59+
ReferencedContainer = "container:VPInterfaceControllerDemo.xcodeproj">
60+
</BuildableReference>
61+
</BuildableProductRunnable>
62+
</ProfileAction>
63+
<AnalyzeAction
64+
buildConfiguration = "Debug">
65+
</AnalyzeAction>
66+
<ArchiveAction
67+
buildConfiguration = "Release"
68+
revealArchiveInOrganizer = "YES">
69+
</ArchiveAction>
70+
</Scheme>

Example/VPInterfaceControllerDemo/AppDelegate.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,30 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3737
// [VPIConfigSDK setAppKey:@"93db5ef3-7fbc-485a-97b0-fc9f4e7209f5" appSecret:@"74f251d40a49468a"];
3838
// [VPIConfigSDK setAppKey:@"d1af1f73-7b60-4141-8261-2d9ad20b2a23" appSecret:@"97154eab13424013"];
3939
// [VPIConfigSDK setAppKey:@"7a741182-c30e-4edf-9eaa-ae8974093214" appSecret:@"8940b66d7052437b"];
40-
[VPIConfigSDK setAppKey:@"73d5a8f8-3682-4080-ad7c-996c4e19fc1e" appSecret:@"c276b70aba84491a"];
40+
// [VPIConfigSDK setAppKey:@"73d5a8f8-3682-4080-ad7c-996c4e19fc1e" appSecret:@"c276b70aba84491a"];
41+
42+
[VPIConfigSDK setAppKey:@"66c9bafa-abd0-4aa9-8066-3deaf9dc7f71" appSecret:@"bcfee675bca844bd"];
4143

4244
// [[VPUPDebugSwitch sharedDebugSwitch] switchEnvironment:VPUPDebugStateDevelop];
4345
[[VPUPDebugSwitch sharedDebugSwitch] switchEnvironment:VPUPDebugStateTest];
4446
// [[VPUPDebugSwitch sharedDebugSwitch] switchEnvironment:VPUPDebugStateOnline];
45-
47+
48+
#ifdef VIDEOOS_DEVAPP
49+
NSLog(@"this current tag is VIDEOOS_DEVAPP");
50+
application.statusBarStyle = UIStatusBarStyleLightContent;
51+
[VPIConfigSDK setAppDevEnable:true];
52+
#else
53+
NSLog(@"this current tag is VPInterfaceControllerDemo");
54+
#endif
55+
56+
57+
4658
[VPIConfigSDK initSDK];
4759
return YES;
4860
}
4961

5062

63+
5164
- (void)applicationWillResignActive:(UIApplication *)application {
5265
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
5366
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"filename" : "[email protected]",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"filename" : "[email protected]",
15+
"scale" : "3x"
16+
}
17+
],
18+
"info" : {
19+
"version" : 1,
20+
"author" : "xcode"
21+
}
22+
}
1.18 KB
Loading
2.02 KB
Loading

Example/VPInterfaceControllerDemo/Base.lproj/LaunchScreen.storyboard

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_1" orientation="portrait" appearance="light"/>
34
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
5-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="7.0"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
6+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
67
</dependencies>
78
<scenes>
89
<!--View Controller-->
910
<scene sceneID="EHf-IW-A2E">
1011
<objects>
11-
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+
<viewController interfaceStyle="dark" id="01J-lp-oVM" sceneMemberID="viewController">
1213
<layoutGuides>
1314
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
1415
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
1516
</layoutGuides>
1617
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
18+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
1819
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20+
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
21+
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2022
</view>
2123
</viewController>
2224
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>

Example/VPInterfaceControllerDemo/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>2.0.0</string>
20+
<string>2.3.0</string>
2121
<key>CFBundleURLTypes</key>
2222
<array>
2323
<dict/>
2424
</array>
2525
<key>CFBundleVersion</key>
26-
<string>37</string>
26+
<string>54</string>
2727
<key>LSApplicationQueriesSchemes</key>
2828
<array>
2929
<string>wechat</string>

Example/VPInterfaceControllerDemo/VPLiveSelectStatusViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ - (IBAction)portraitButtonDidClicked:(UIButton *)sender {
110110
- (IBAction)landscapeButtonDidClicked:(UIButton *)sender {
111111
[PrivateConfig shareConfig].verticalFullScreen = NO;
112112
VPSinglePlayerViewController *playerVC = [[VPSinglePlayerViewController alloc] initWithUrlString:@"http://qa-video.oss-cn-beijing.aliyuncs.com/mp4/mby02.mp4" platformUserID:[PrivateConfig shareConfig].identifier isLive:YES];
113+
playerVC.modalPresentationStyle = UIModalPresentationFullScreen;
113114
[self presentViewController:playerVC animated:YES completion:nil];
114115
}
115116

0 commit comments

Comments
 (0)