{"action":"created","comment":{"url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/comments/83813066","pull_request_review_id":4630295,"id":83813066,"diff_hunk":"@@ -0,0 +1,110 @@\n+//\n+//  MergeTwoVideoViewController.swift\n+//  VideoEditor\n+//\n+//  Created by Huynh Quang Tien on 10/18/16.\n+//  Copyright © 2016 Asian Tech Co., Ltd. All rights reserved.\n+//\n+\n+import UIKit\n+import AVFoundation\n+import MobileCoreServices\n+import AssetsLibrary\n+import MediaPlayer\n+import CoreMedia\n+\n+class MergeTwoVideoViewController: UIViewController {\n+\n+    @IBOutlet private weak var processTitleLB: UILabel!\n+    var firstAsset: AVAsset?\n+    var secondAsset: AVAsset?\n+    var loadingAssetOne = false\n+    var videoEditorService: VideoEditorService!\n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        let defaultSetting = RenderSettings()\n+        videoEditorService = VideoEditorService(renderSettings: defaultSetting)\n+    }\n+\n+    // MARK: privates\n+    func savedPhotosAvailable() -> Bool {\n+        if !UIImagePickerController.isSourceTypeAvailable(.SavedPhotosAlbum) {\n+            let alert = UIAlertController(title: \"Not Available\", message: \"No Saved Album found\", preferredStyle: .Alert)\n+            alert.addAction(UIAlertAction(title: \"OK\", style: UIAlertActionStyle.Cancel, handler: nil))\n+            presentViewController(alert, animated: true, completion: nil)\n+            return false\n+        }\n+        return true\n+    }\n+\n+    // MARK: IBActions\n+    @IBAction func loadAssetOne(withSender sender: AnyObject) {\n+        if savedPhotosAvailable() {\n+            loadingAssetOne = true\n+            startMediaBrowserFromViewController(self, usingDelegate: self)\n+        }\n+    }\n+\n+    @IBAction func loadAssetTwo(withSender sender: AnyObject) {\n+        if savedPhotosAvailable() {\n+            loadingAssetOne = false","path":"Demo/MergeTwoVideoViewController/MergeTwoVideoViewController.swift","position":50,"original_position":50,"commit_id":"0b344c710f0fa31b713a6e7bebd295f16284253f","original_commit_id":"0b344c710f0fa31b713a6e7bebd295f16284253f","user":{"login":"at-tienhq","id":12907224,"avatar_url":"https://avatars.githubusercontent.com/u/12907224?v=3","gravatar_id":"","url":"https://api.github.com/users/at-tienhq","html_url":"https://github.com/at-tienhq","followers_url":"https://api.github.com/users/at-tienhq/followers","following_url":"https://api.github.com/users/at-tienhq/following{/other_user}","gists_url":"https://api.github.com/users/at-tienhq/gists{/gist_id}","starred_url":"https://api.github.com/users/at-tienhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-tienhq/subscriptions","organizations_url":"https://api.github.com/users/at-tienhq/orgs","repos_url":"https://api.github.com/users/at-tienhq/repos","events_url":"https://api.github.com/users/at-tienhq/events{/privacy}","received_events_url":"https://api.github.com/users/at-tienhq/received_events","type":"User","site_admin":false},"body":"It's test example merge two video, it will change to merge list video!","created_at":"2016-10-18T09:19:08Z","updated_at":"2016-10-18T09:19:08Z","html_url":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4#discussion_r83813066","pull_request_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/comments/83813066"},"html":{"href":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4#discussion_r83813066"},"pull_request":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4","id":89754365,"html_url":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4","diff_url":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4.diff","patch_url":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4.patch","issue_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/4","number":4,"state":"open","locked":false,"title":"feature - editor func example","user":{"login":"at-tienhq","id":12907224,"avatar_url":"https://avatars.githubusercontent.com/u/12907224?v=3","gravatar_id":"","url":"https://api.github.com/users/at-tienhq","html_url":"https://github.com/at-tienhq","followers_url":"https://api.github.com/users/at-tienhq/followers","following_url":"https://api.github.com/users/at-tienhq/following{/other_user}","gists_url":"https://api.github.com/users/at-tienhq/gists{/gist_id}","starred_url":"https://api.github.com/users/at-tienhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-tienhq/subscriptions","organizations_url":"https://api.github.com/users/at-tienhq/orgs","repos_url":"https://api.github.com/users/at-tienhq/repos","events_url":"https://api.github.com/users/at-tienhq/events{/privacy}","received_events_url":"https://api.github.com/users/at-tienhq/received_events","type":"User","site_admin":false},"body":"+ VideoEditor service\r\n+ ViewControllers example","created_at":"2016-10-18T06:34:05Z","updated_at":"2016-10-18T09:19:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a5a6ccd5c8d4f237eee0bbf7a6c0fafaa0b173e","assignee":{"login":"at-tienhq","id":12907224,"avatar_url":"https://avatars.githubusercontent.com/u/12907224?v=3","gravatar_id":"","url":"https://api.github.com/users/at-tienhq","html_url":"https://github.com/at-tienhq","followers_url":"https://api.github.com/users/at-tienhq/followers","following_url":"https://api.github.com/users/at-tienhq/following{/other_user}","gists_url":"https://api.github.com/users/at-tienhq/gists{/gist_id}","starred_url":"https://api.github.com/users/at-tienhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-tienhq/subscriptions","organizations_url":"https://api.github.com/users/at-tienhq/orgs","repos_url":"https://api.github.com/users/at-tienhq/repos","events_url":"https://api.github.com/users/at-tienhq/events{/privacy}","received_events_url":"https://api.github.com/users/at-tienhq/received_events","type":"User","site_admin":false},"assignees":[{"login":"at-tienhq","id":12907224,"avatar_url":"https://avatars.githubusercontent.com/u/12907224?v=3","gravatar_id":"","url":"https://api.github.com/users/at-tienhq","html_url":"https://github.com/at-tienhq","followers_url":"https://api.github.com/users/at-tienhq/followers","following_url":"https://api.github.com/users/at-tienhq/following{/other_user}","gists_url":"https://api.github.com/users/at-tienhq/gists{/gist_id}","starred_url":"https://api.github.com/users/at-tienhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-tienhq/subscriptions","organizations_url":"https://api.github.com/users/at-tienhq/orgs","repos_url":"https://api.github.com/users/at-tienhq/repos","events_url":"https://api.github.com/users/at-tienhq/events{/privacy}","received_events_url":"https://api.github.com/users/at-tienhq/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4/commits","review_comments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4/comments","review_comment_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/4/comments","statuses_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/statuses/0b344c710f0fa31b713a6e7bebd295f16284253f","head":{"label":"AsianTechInc:feature/editor-func-example","ref":"feature/editor-func-example","sha":"0b344c710f0fa31b713a6e7bebd295f16284253f","user":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"repo":{"id":70672783,"name":"VideoEditor-Swift","full_name":"AsianTechInc/VideoEditor-Swift","owner":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AsianTechInc/VideoEditor-Swift","description":"Created as DaoNV requested ","fork":false,"url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift","forks_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/forks","keys_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/teams","hooks_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/hooks","issue_events_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/events","assignees_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/tags","blobs_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/languages","stargazers_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/stargazers","contributors_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/contributors","subscribers_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/subscribers","subscription_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/subscription","commits_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/merges","archive_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/downloads","issues_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/labels{/name}","releases_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/releases{/id}","deployments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/deployments","created_at":"2016-10-12T07:06:44Z","updated_at":"2016-10-15T05:51:41Z","pushed_at":"2016-10-18T06:34:58Z","git_url":"git://github.com/AsianTechInc/VideoEditor-Swift.git","ssh_url":"git@github.com:AsianTechInc/VideoEditor-Swift.git","clone_url":"https://github.com/AsianTechInc/VideoEditor-Swift.git","svn_url":"https://github.com/AsianTechInc/VideoEditor-Swift","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AsianTechInc:master","ref":"master","sha":"6b8804dbdd48793f1b72100d1c75e0dcd418e89a","user":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"repo":{"id":70672783,"name":"VideoEditor-Swift","full_name":"AsianTechInc/VideoEditor-Swift","owner":{"login":"AsianTechInc","id":12997183,"avatar_url":"https://avatars.githubusercontent.com/u/12997183?v=3","gravatar_id":"","url":"https://api.github.com/users/AsianTechInc","html_url":"https://github.com/AsianTechInc","followers_url":"https://api.github.com/users/AsianTechInc/followers","following_url":"https://api.github.com/users/AsianTechInc/following{/other_user}","gists_url":"https://api.github.com/users/AsianTechInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AsianTechInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AsianTechInc/subscriptions","organizations_url":"https://api.github.com/users/AsianTechInc/orgs","repos_url":"https://api.github.com/users/AsianTechInc/repos","events_url":"https://api.github.com/users/AsianTechInc/events{/privacy}","received_events_url":"https://api.github.com/users/AsianTechInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AsianTechInc/VideoEditor-Swift","description":"Created as DaoNV requested ","fork":false,"url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift","forks_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/forks","keys_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/teams","hooks_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/hooks","issue_events_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/events{/number}","events_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/events","assignees_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/assignees{/user}","branches_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/branches{/branch}","tags_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/tags","blobs_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/statuses/{sha}","languages_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/languages","stargazers_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/stargazers","contributors_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/contributors","subscribers_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/subscribers","subscription_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/subscription","commits_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/contents/{+path}","compare_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/merges","archive_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/downloads","issues_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues{/number}","pulls_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls{/number}","milestones_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/milestones{/number}","notifications_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/labels{/name}","releases_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/releases{/id}","deployments_url":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/deployments","created_at":"2016-10-12T07:06:44Z","updated_at":"2016-10-15T05:51:41Z","pushed_at":"2016-10-18T06:34:58Z","git_url":"git://github.com/AsianTechInc/VideoEditor-Swift.git","ssh_url":"git@github.com:AsianTechInc/VideoEditor-Swift.git","clone_url":"https://github.com/AsianTechInc/VideoEditor-Swift.git","svn_url":"https://github.com/AsianTechInc/VideoEditor-Swift","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4"},"html":{"href":"https://github.com/AsianTechInc/VideoEditor-Swift/pull/4"},"issue":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/4"},"comments":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/AsianTechInc/VideoEditor-Swift/statuses/0b344c710f0fa31b713a6e7bebd295f16284253f"}}}}
{"actor":{"display_login":"at-tienhq"}}