wess / Glimpse

UIView recording library.
MIT License
557 stars 42 forks source link

Having issue to Save fileOutPutUrl to device #4

Closed VaibhaviOSGeek closed 8 years ago

VaibhaviOSGeek commented 10 years ago

I can save video to Documents of Mac ,but could not save video file to real device using Here is my code ,What I've done so far

        ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
       glim=[[Glimpse alloc]init];

     [glim startRecordingView:self.view onCompletion:^(NSURL *fileOuput) {
     NSLog(@"File Output :%@",fileOuput.absoluteString);
    if (fileOuput)
    {
    if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:fileOuput])
        {
            [library writeVideoAtPathToSavedPhotosAlbum:fileOuput
                                        completionBlock:^(NSURL *assetURL, NSError *error){}
             ];
        }

    }

}];