Commit 5241072942c26c641c520b0cb44bfae4731d07fc
1 parent
a78d127e
0.3.8.006 新建模化块项目
Showing
16 changed files
with
202 additions
and
1 deletions
DSCnliveShopSDK.podspec
| ... | ... | @@ -8,7 +8,7 @@ Pod::Spec.new do |s| |
| 8 | 8 | s.author = { 'BIKE' => '694092596@qq.com' } |
| 9 | 9 | s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/DSCnliveShopSDK.git', :tag => s.version.to_s } |
| 10 | 10 | s.ios.deployment_target = '9.0' |
| 11 | - s.vendored_frameworks = 'DSCnliveShopSDK/Frameworks/DSCnliveShopSDK.framework' | |
| 11 | + s.vendored_frameworks = 'DSCnliveShopSDK/Frameworks/**/*.framework' | |
| 12 | 12 | s.frameworks = 'Foundation', 'UIKit', 'Accelerate', 'AVFoundation', 'CoreMedia', 'CoreMotion', 'GLKit', 'JavaScriptCore', 'MediaPlayer', 'SystemConfiguration' |
| 13 | 13 | s.library = 'sqlite3' |
| 14 | 14 | s.static_framework = true | ... | ... |
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/Headers/NativeVideoPlayer.h
0 → 100755
| 1 | +#import <AVFoundation/AVFoundation.h> | |
| 2 | +#import <OpenGLES/ES2/gl.h> | |
| 3 | +#import <OpenGLES/ES2/glext.h> | |
| 4 | + | |
| 5 | +typedef enum _MEDIAPLAYER_STATE{ | |
| 6 | + NOT_READY = 0, | |
| 7 | + READY = 1, | |
| 8 | + PLAYING = 2, | |
| 9 | + PAUSED = 3, | |
| 10 | + END = 4, | |
| 11 | + STOPPED = 5, | |
| 12 | + ERROR = 6 | |
| 13 | + | |
| 14 | +}MEDIAPLAYER_STATE; | |
| 15 | + | |
| 16 | +@interface NativeVideoPlayer : NSObject | |
| 17 | + | |
| 18 | +- (void)play; | |
| 19 | +- (void)pause; | |
| 20 | +- (void)stop; | |
| 21 | +- (void)seekTo:(float) position; | |
| 22 | +- (int)getState; | |
| 23 | +- (int)getWidth; | |
| 24 | +- (int)getHeight; | |
| 25 | + | |
| 26 | +- (void)setVideoURL:(NSURL*)url; | |
| 27 | +- (int)updateVideoTexture:(int)textureID; | |
| 28 | + | |
| 29 | + | |
| 30 | +@property (nonatomic, retain) AVPlayer* videoPlayer; | |
| 31 | +@property (nonatomic, retain) AVPlayerItemVideoOutput* videoOutput; | |
| 32 | +@property (nonatomic) bool isObserverRemoved; | |
| 33 | + | |
| 34 | +@end | |
| 35 | + | ... | ... |
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/Headers/SY_AR.h
0 → 100755
| 1 | +#ifndef SY_AR_h | |
| 2 | +#define SY_AR_h | |
| 3 | + | |
| 4 | +#define DLL_API | |
| 5 | + | |
| 6 | +#include <vector> | |
| 7 | +#include <string> | |
| 8 | +#include <iostream> | |
| 9 | + | |
| 10 | +using namespace std; | |
| 11 | + | |
| 12 | + | |
| 13 | +#ifdef __cplusplus | |
| 14 | +extern "C" { | |
| 15 | +#endif | |
| 16 | + //type 0 表示 2D物体 1 表示 3d物体 | |
| 17 | + typedef void (*OnFound)(int type ,std::string markerName, std::string videoURL,std::string extData); | |
| 18 | + typedef void (*OnLost)(int type ,std::string markerName); | |
| 19 | + typedef void (*OnFullScreenVideoPlay)(std::string url); | |
| 20 | + | |
| 21 | + int DLL_API _SetCallback(OnFound _onFound, OnLost _onLost , OnFullScreenVideoPlay _onFullScreenVideoPlay); | |
| 22 | + int DLL_API _ReleaseAR(); | |
| 23 | +#ifdef __cplusplus | |
| 24 | +} | |
| 25 | +#endif | |
| 26 | +#endif /* SY_AR_h */ | |
| 27 | + | ... | ... |
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/Headers/SY_GameViewController.h
0 → 100755
| 1 | +#import <UIKit/UIKit.h> | |
| 2 | +#import <GLKit/GLKit.h> | |
| 3 | +//#import <MediaPlayer/MediaPlayer.h> | |
| 4 | + | |
| 5 | +@interface SY_GameViewController : GLKViewController | |
| 6 | + | |
| 7 | +-(void)startTracking; | |
| 8 | +-(void)stopTracking; | |
| 9 | +-(bool)getTrackingStatus; | |
| 10 | +-(void)testingEnvironment; | |
| 11 | +-(void)productionEnvironment; | |
| 12 | +-(void)setKey:(char*)userName:(char*)password; | |
| 13 | +@end | ... | ... |
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/Headers/SY_ViewController.h
0 → 100755
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/Info.plist
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/SYFramework
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/SY_Main.storyboardc/BV1-FR-VrT-view-3se-qz-xqx.nib
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/SY_Main.storyboardc/Info.plist
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/SY_Main.storyboardc/SY_GameViewController.nib
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/ARFramework/SYFramework.framework/View.nib
0 → 100644
No preview for this file type
DSCnliveShopSDK/Frameworks/JDSDK/JDSDK.framework/Headers/JDKeplerSDK.h
0 → 100755
| 1 | +// | |
| 2 | +// JDKeplerSDK.h | |
| 3 | +// JDKeplerSDK | |
| 4 | +// | |
| 5 | +// Created by JD.K on 16/3/15. | |
| 6 | +// Copyright © 2016年 JD.K. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | + | |
| 11 | +//! Project version number for JDKeplerSDK. | |
| 12 | +FOUNDATION_EXPORT double JDKeplerSDKVersionNumber; | |
| 13 | + | |
| 14 | +//! Project version string for JDKeplerSDK. | |
| 15 | +FOUNDATION_EXPORT const unsigned char JDKeplerSDKVersionString[]; | |
| 16 | + | |
| 17 | +// In this header, you should import all the public headers of your framework using statements like #import <JDKeplerSDK/PublicHeader.h> | |
| 18 | +#import<JDSDK/KeplerApiManager.h> | |
| 19 | + | |
| 20 | + | ... | ... |
DSCnliveShopSDK/Frameworks/JDSDK/JDSDK.framework/Headers/KeplerApiManager.h
0 → 100755
| 1 | +// | |
| 2 | +// KeplerApiManager.h | |
| 3 | +// KeplerApp | |
| 4 | +// 提供Kepler服务 | |
| 5 | +// Created by JD.K on 16/6/20. | |
| 6 | +// Copyright © 2016年 JD.K. All rights reserved. | |
| 7 | +// version 1.0.0 | |
| 8 | + | |
| 9 | +#import <Foundation/Foundation.h> | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | + | |
| 12 | +/** 初始化成功回调 */ | |
| 13 | +typedef void (^initSuccessCallback)(); | |
| 14 | +/** 初始化失败回调 */ | |
| 15 | +typedef void (^initFailedCallback)(NSError *error); | |
| 16 | +/** | |
| 17 | + * 响应失败的错误回调,返回一个错误的链接 | |
| 18 | + */ | |
| 19 | +typedef void(^responseFailedCallback)(NSInteger code, NSString *url); | |
| 20 | + | |
| 21 | + | |
| 22 | +@interface KeplerApiManager : NSObject | |
| 23 | + | |
| 24 | +/** | |
| 25 | + 分佣的 AppKey2 | |
| 26 | + */ | |
| 27 | +@property (nonatomic, copy) NSString *secondAppKey; | |
| 28 | +//********************************* 通过京东APP打开链接相关参数 ************************************ | |
| 29 | + | |
| 30 | +/** | |
| 31 | + 当isOpenByH5为 NO 时,准备跳转到JD APP时会调用这些代码。可以把开启 Loading动画的代码放到这里 | |
| 32 | + 为避免造成混乱,在关闭Kepler界面时,会置为nil。因此需要在每次打开Kepler之前单独设置。 | |
| 33 | + */ | |
| 34 | +@property (nonatomic, copy) void(^startOpenJDAppBlock)(); | |
| 35 | + | |
| 36 | +/** | |
| 37 | + 当isOpenByH5为 NO 时,跳转JD APP准备工作完成时会调用这些代码,success为YES表示成功,可以打开JD APP,为NO时表示打开失败。 | |
| 38 | + 为避免造成混乱,在关闭Kepler界面时,会置为nil。因此需要在每次打开Kepler之前单独设置。 | |
| 39 | + */ | |
| 40 | +@property (nonatomic, copy) void(^finishOpenJDAppBlock)(BOOL success,NSError *error); | |
| 41 | + | |
| 42 | +/** | |
| 43 | + * 京东达人内容ID 关闭kepler界面时会清除 如果需要此值 再次打开需要再次设置 | |
| 44 | + **/ | |
| 45 | +@property (nonatomic, copy) NSString *actId; | |
| 46 | + | |
| 47 | +/** | |
| 48 | + * 京东达人 内容渠道扩展字段 关闭kepler界面时会清除 如果需要此值 再次打开需要再次设置 | |
| 49 | + **/ | |
| 50 | +@property (nonatomic, copy) NSString *ext; | |
| 51 | + | |
| 52 | +/** | |
| 53 | + * 是否走服务端的渠道,默认走本地渠道 | |
| 54 | + */ | |
| 55 | +@property (nonatomic, assign) BOOL isServerChannel; | |
| 56 | + | |
| 57 | +/** | |
| 58 | + 打开京东超时时间设置 关闭 Kepler 界面时不会重置 默认为60 | |
| 59 | + */ | |
| 60 | +@property (nonatomic, assign) NSTimeInterval openJDTimeout; | |
| 61 | + | |
| 62 | + | |
| 63 | +//******************************************************************************************************* | |
| 64 | + | |
| 65 | +/** | |
| 66 | + * KeplerApiManager 单例 | |
| 67 | + * | |
| 68 | + * @return KeplerApiManager 单例 | |
| 69 | + */ | |
| 70 | ++ (KeplerApiManager *)sharedKPService; | |
| 71 | + | |
| 72 | +/** | |
| 73 | + * 注册Kepler 服务 | |
| 74 | + * | |
| 75 | + * @param appKey 注册的appKey | |
| 76 | + * @param appSecret 注册的secretKey | |
| 77 | + */ | |
| 78 | +- (void)asyncInitSdk:(NSString *)appKey | |
| 79 | + secretKey:(NSString *)appSecret | |
| 80 | + sucessCallback:(initSuccessCallback)sucessCallback | |
| 81 | + failedCallback:(initFailedCallback)failedCallback; | |
| 82 | + | |
| 83 | +/** | |
| 84 | + 跳转京东app | |
| 85 | + | |
| 86 | + @param url 调用方传入的URl参数 | |
| 87 | + @param userInfo 调用sdk时传入的kepler自定义参数 | |
| 88 | + @param failedCallback code 表示错误编码, url 引起调用失败的url | |
| 89 | + */ | |
| 90 | +- (void)openKeplerPageWithURL:(NSString *)url userInfo:(NSDictionary *)userInfo failedCallback:(responseFailedCallback)failedCallback; | |
| 91 | + | |
| 92 | +@end | |
| 93 | + | ... | ... |
DSCnliveShopSDK/Frameworks/JDSDK/JDSDK.framework/Info.plist
0 → 100755
No preview for this file type
DSCnliveShopSDK/Frameworks/JDSDK/JDSDK.framework/JDSDK
0 → 100755
No preview for this file type