Latest 0.0.7
Homepage https://github.com/Makeanamesohard/FlyClipSDK
License MIT
Platforms ios 8.0
Frameworks UIKit, AVFoundation, CoreMedia, CoreFoundation
Authors

FlyClipSDK 集成教程

SDK安装

Cocoapods工程使用pod ‘FlyClipSDK’, ‘~> 0.0.6’进行SDK的安装。也可到"https://github.com/Makeanamesohard/FlyClipSDk.git”下载最新的SDK包
FlyClipSDK安装依赖包:CoreFoundation,AVFoundation,CoreMedia。

SDK集成

*第一步根据App key获取SDK授权

  • (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions
    {
    [FlyClip startWithAppKey:@"your App Key"];
    return YES;
    }

    *第二步实现一下步骤

  • (BOOL)application:(UIApplication )application openURL:(NSURL )url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    {
    [FlyClip applicationOpenedWithURL:url.absoluteString];
    return YES;
    }
    //9.0以后使用新API接口
  • (BOOL)application:(UIApplication )app openURL:(NSURL )url options:(NSDictionary<NSString, id> )options
    {
    [FlyClip applicationOpenedWithURL:url.absoluteString];
    return YES;
    }

    SDK使用

    第一步获取目的App的HOST(URLSchema)并设置当前App的HOST。
    [FlyClip setURLSchema:@"当前App的HOST"];
    第二步设置多媒体信息
    FCMedia media = [[FCMedia alloc]init];
    media.type = MediaTypeImage;
    media.imageURL = @"http://img.bimg.126.net/photo/j20fszdB7NJOv9zVFSVjNg==/4848124998881145405.jpg";
    [FlyClip setCurrentMedia:media];
    根据目的App的HOST进行App跳转
    [FlyClip openApplicationWithHost:@"目的App的HOST"];

    注:
    1.FCMedia为封装的多媒体信息类,当type为Video时,需要设置当前媒体的播放进度。
    且对应的URL不能为空。
    2.当前SDK没有添加X86_64架构,请使用真机进行测试。

Latest podspec

{
    "name": "FlyClipSDK",
    "version": "0.0.7",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/Makeanamesohard/FlyClipSDK",
    "authors": {
        "eric": "[email protected]"
    },
    "summary": "version 0.0.7",
    "source": {
        "git": "https://github.com/Makeanamesohard/FlyClipSDk.git",
        "tag": "0.0.7"
    },
    "platforms": {
        "ios": "8.0"
    },
    "vendored_frameworks": "FlyClipSDK/FlyClipSDK.framework",
    "frameworks": [
        "UIKit",
        "AVFoundation",
        "CoreMedia",
        "CoreFoundation"
    ]
}

Pin It on Pinterest

Share This