Latest 1.0.1
Homepage https://github.com/filelife/FLVideoBGM
License MIT
Platforms ios 8.0, requires ARC
Authors

This repository encapsulate a function for adding background music to a video.

Import FLVideoBGM

 pod 'FLVideoBGM', '~>1.1.0'

Don’t forget to add ‘Privacy – Photo Library Usage Description’ and ‘Privacy – Photo Library Additions Usage Description’ into info.plist.

#import "FLVideoBGM.h"

How to

Just input video url and music url.

[FLVideoBGMManager processVideo:videoUrl 
                    InsertMusic:musicUrl 
               CompletionHandle:^(NSString *resultOutputFilePath, NSString *errorInfo) {

}];

Check to see if app’s album is exist.You should check it before your save video.

[FLAssetsManager checkAlbumBeforeSaveWithCompletionHandler:^(BOOL createNewCollection) {

}]

Save edited video.

[FLAssetsManager saveVideoWithUrl:[NSURL URLWithString:outputFilePath]];

Check the demo to see more.

Latest podspec

{
    "name": "FLVideoBGM",
    "version": "1.0.1",
    "summary": "This repository encapsulate a function for adding background music to a video.",
    "homepage": "https://github.com/filelife/FLVideoBGM",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gejiaxin": "[email protected]"
    },
    "social_media_url": "https://github.com/filelife",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/filelife/FLVideoBGM.git",
        "tag": "1.0.1"
    },
    "source_files": "FLVideoBGM/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This