iOS分段式视频录制

一个自定义界面 & 可以分段录制的摄像机

使用方法:

将demo中的XDVideoCamera文件夹拖入到项目中

引入头文件
#import "XDVideocamera.h"
在点击事件里进行跳转即可
XDVideocamera *video = [[XDVideocamera alloc]init];
        [self presentViewController:video animated:YES completion:^{
            NSLog(@"进入摄像机");
        }];

demo链接:https://github.com/Xiexingda/XDVideoCamera.git
UI界面已经单独写入了VideoUI中,需要改变界面的话直接在该类中进行就可以了
喜欢的话记得在github给颗小星星哦😊!

下面是对实现过程进行的详细叙述

1.视频录制的实现

相关属性

@property (strong,nonatomic) AVCaptureSession *session;                     //会话管理
@property (strong,nonatomic) AVCaptureDeviceInput *deviceInput;             //负责从AVCaptureDevice获得输入数据
@property (strong,nonatomic) AVCaptureMovieFileOutput *movieFileOutput;     //视频输出流
@property (strong,nonatomic) AVCaptureVideoPreviewLayer *videoPreviewLayer; //相机拍摄预览图层

@property (nonatomic, strong) NSMutableArray *videoArray;

@property (strong,nonatomic) CALayer *previewLayer; //视频预览layer层
@property (strong,nonatomic) UIView *focusView;     //聚焦
@property (assign,nonatomic) BOOL enableRotation;   //是否允许旋转(注意在视频录制过程中禁止屏幕旋转)
@property (assign,nonatomic) CGRect *lastBounds;    //旋转的前大小
@property (assign,nonatomic) UIBackgroundTaskIdentifier backgroundTaskIdentifier;//后台任务标识

在进入和退出界面时开始和停止会话

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self.session startRunning];
}

- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    [self.session stopRunning];
}

调整角度

//屏幕旋转时调整预览图层
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    AVCaptureConnection *connection = [self.videoPreviewLayer connection];
    connection.videoOrientation = (AVCaptureVideoOrientation)toInterfaceOrientation;
}

//旋转后重新设置大小
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
    _videoPreviewLayer.frame = self.previewLayer.bounds;
}

初始化会话管理 & 相关设备

- (void)configSessionManager {
    //初始化会话
    _session = [[AVCaptureSession alloc]init];
    [self changeConfigurationWithSession:_session block:^(AVCaptureSession *session) {
        if ([session canSetSessionPreset:AVCaptureSessionPresetHigh]) {
            [session setSessionPreset:AVCaptureSessionPresetHigh];
        }
        
        //获取输入设备
        AVCaptureDevice *device = [self getCameraDeviceWithPosition:AVCaptureDevicePositionBack];
        if (!device) {
            NSLog(@"获取后置摄像头失败");
            return;
        }
        
        //添加一个音频输入设备
        AVCaptureDevice *audioDevice = [[AVCaptureDevice devicesWithMediaType:AVMediaTypeAudio]firstObject];
        if (!audioDevice) {
            NSLog(@"获取麦克风失败");
        }
        
        //用当前设备初始化输入数据
        NSError *error = nil;
        _deviceInput = [[AVCaptureDeviceInput alloc]initWithDevice:device error:&error];
    
        if (error) {
            NSLog(@"获取视频输入对象失败 原因:%@",error.localizedDescription);
            return;
        }
        
        //用当前音频设备初始化音频输入
        AVCaptureDeviceInput *audioInput = [[AVCaptureDeviceInput alloc]initWithDevice:audioDevice error:&error];
        if (error) {
            NSLog(@"获取音频输入对象失败 原因:%@",error.localizedDescription);
        }
        
        //初始化设备输出对象
        _movieFileOutput = [[AVCaptureMovieFileOutput alloc]init];
        
        //将设备的输入输出添加到会话管理
        if ([session canAddInput:_deviceInput]) {
            [session addInput:_deviceInput];
            [session addInput:audioInput];
        }
        
        if ([session canAddOutput:_movieFileOutput]) {
            [session addOutput:_movieFileOutput];
        }
        
        //创建视频预览层,用于实时展示摄像头状态
        _videoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc]initWithSession:session];
        
        _videoPreviewLayer.frame = _previewLayer.bounds;
        _videoPreviewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill;
        
        [_previewLayer insertSublayer:_videoPreviewLayer below:_focusView.layer];
        
        _enableRotation = YES;
        [self addNotificationToDevice:device];
    }];
}

添加通知&移除通知

/**
 给输入设备添加通知
 */
-(void)addNotificationToDevice:(AVCaptureDevice *)captureDevice{
    //注意添加区域改变捕获通知必须首先设置设备允许捕获
    [self changeDeviceProperty:^(AVCaptureDevice *captureDevice) {
        captureDevice.subjectAreaChangeMonitoringEnabled=YES;
    }];
    NSNotificationCenter *notificationCenter= [NSNotificationCenter defaultCenter];
    //捕获区域发生改变
    [notificationCenter addObserver:self selector:@selector(areaChanged:) name:AVCaptureDeviceSubjectAreaDidChangeNotification object:captureDevice];
    //链接成功
    [notificationCenter addObserver:self selector:@selector(deviceConnected:) name:AVCaptureDeviceWasConnectedNotification object:captureDevice];
    //链接断开
    [notificationCenter addObserver:self selector:@selector(deviceDisconnected:) name:AVCaptureDeviceWasDisconnectedNotification object:captureDevice];
    //会话出错
    [notificationCenter addObserver:self selector:@selector(sessionError:) name:AVCaptureSessionRuntimeErrorNotification object:captureSession];
}


-(void)removeNotificationFromDevice:(AVCaptureDevice *)captureDevice{
    NSNotificationCenter *notificationCenter= [NSNotificationCenter defaultCenter];
    [notificationCenter removeObserver:self name:AVCaptureDeviceSubjectAreaDidChangeNotification object:captureDevice];
    [notificationCenter removeObserver:self name:AVCaptureDeviceWasConnectedNotification object:captureDevice];
    [notificationCenter removeObserver:self name:AVCaptureDeviceWasDisconnectedNotification object:captureDevice];
}

/**
 移除所有通知
 */
-(void)removeNotification{
    NSNotificationCenter *notificationCenter= [NSNotificationCenter defaultCenter];
    [notificationCenter removeObserver:self];
}

通知处理

/**
 设备连接成功
 
 @param notification 通知对象
 */
-(void)deviceConnected:(NSNotification *)notification{
    NSLog(@"设备已连接...");
}

/**
 设备连接断开
 
 @param notification 通知对象
 */
-(void)deviceDisconnected:(NSNotification *)notification{
    NSLog(@"设备已断开.");
}

/**
 捕获区域改变
 
 @param notification 通知对象
 */
-(void)areaChanged:(NSNotification *)notification{
    NSLog(@"区域改变...");
    CGPoint cameraPoint = [self.videoPreviewLayer captureDevicePointOfInterestForPoint:self.view.center];
    [self focusWithMode:AVCaptureFocusModeAutoFocus exposureMode:AVCaptureExposureModeAutoExpose atPoint:cameraPoint];
}

/**
 会话出错
 
 @param notification 通知对象
 */
-(void)sessionError:(NSNotification *)notification{
    NSLog(@"会话错误.");
}

获取摄像头设备

/**
 取得指定位置的摄像头
 
 @param position 摄像头位置

 @return 摄像头设备
 */
-(AVCaptureDevice *)getCameraDeviceWithPosition:(AVCaptureDevicePosition )position{
    NSArray *cameras= [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
    for (AVCaptureDevice *camera in cameras) {
        if ([camera position]==position) {
            return camera;
        }
    }
    return nil;
}

工具方法

/**
 改变设备属性的统一操作方法
 
 @param propertyChange 属性改变操作
 */
-(void)changeDeviceProperty:(PropertyChangeBlock)propertyChange{
    AVCaptureDevice *captureDevice= [self.deviceInput device];
    NSError *error;
    //注意改变设备属性前一定要首先调用lockForConfiguration:调用完之后使用unlockForConfiguration方法解锁
    if ([captureDevice lockForConfiguration:&error]) {
        if (propertyChange) {
           propertyChange(captureDevice);
        }
        [captureDevice unlockForConfiguration];
        
    }else{
        NSLog(@"出错了,错误信息:%@",error.localizedDescription);
    }
}

/**
 改变会话同意操作方法

 @param currentSession self.session
 @param block Session操作区域
 */
- (void)changeConfigurationWithSession:(AVCaptureSession *)currentSession block:(void (^)(AVCaptureSession *session))block {
    [currentSession beginConfiguration];
    if (block) {
        block(currentSession);
    }
    [currentSession commitConfiguration];
}

/**
 获取时间

 @return 返回日期,用日期命名
 */
- (NSString *)getCurrentDate {
    //用日期做为视频文件名称
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    formatter.dateFormat = @"yyyyMMddHHmmss";
    NSString *dateStr = [formatter stringFromDate:[NSDate date]];
    return dateStr;
}

/**
 提示框

 @param title 提示内容
 @param btn 取消按钮
 @return 提示框
 */
- (UIAlertView *)noticeAlertTitle:(NSString *)title cancel:(NSString *)btn {
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:title message:nil delegate:self cancelButtonTitle:btn otherButtonTitles:nil, nil];
    [alert show];
    return alert;
}

/**
 清除视频Url路径下的缓存

 @param urlArray _videoArray
 */
- (void)freeArrayAndItemsInUrlArray:(NSArray *)urlArray {
    if (urlArray.count <= 0) {
        return;
    }
    for (NSURL *url in urlArray) {
        [[StoreFileManager defaultManager] removeItemAtUrl:url];
    }
}

切换摄像头

/**
 切换摄像头

 @return 返回bool值用于改变按钮状态
 */
- (BOOL)changeBtClick {
    bool isBackground;
    //获取当前设备
    AVCaptureDevice *currentDevice = [self.deviceInput device];
    AVCaptureDevicePosition currentPosition = [currentDevice position];
    [self removeNotificationFromDevice:currentDevice];
    AVCaptureDevice *toDevice;
    AVCaptureDevicePosition toPosition;
    if (currentPosition == AVCaptureDevicePositionUnspecified || currentPosition == AVCaptureDevicePositionFront) {
        toPosition = AVCaptureDevicePositionBack;
        isBackground = YES;
    } else {
        toPosition = AVCaptureDevicePositionFront;
        isBackground = NO;
    }
    
    toDevice = [self getCameraDeviceWithPosition:toPosition];
    [self addNotificationToDevice:toDevice];
    
    //获得要调整的设备输入对象
    NSError *error = nil;
    AVCaptureDeviceInput *toDeviceInput = [[AVCaptureDeviceInput alloc]initWithDevice:toDevice error:&error];
    if (error) {
        NSLog(@"获取设备失败");
    }
    
    [self changeConfigurationWithSession:_session block:^(AVCaptureSession *session) {
        //移除原有输入对象
        [session removeInput:self.deviceInput];
        self.deviceInput = nil;
        //添加新输入对象
        if ([session canAddInput:toDeviceInput]) {
            [session addInput:toDeviceInput];
            self.deviceInput = toDeviceInput;
        }
    }];
    
    return isBackground;
}

点击开始录制按钮

/**
 录制

 @return 返回bool值用于改变按钮状态
 */
- (BOOL)videoBtClick {
    //根据设备输出获得链接
    AVCaptureConnection *connection = [self.movieFileOutput connectionWithMediaType:AVMediaTypeVideo];
    //根据链接取出设备输出的数据
    if (![self.movieFileOutput isRecording]) {
        self.enableRotation = NO;
        
        //如果支持多任务则开启多任务
        if ([[UIDevice currentDevice] isMultitaskingSupported]) {
            self.backgroundTaskIdentifier=[[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:nil];
        }
        
        //预览图层和视频方向保持一致
        connection.videoOrientation = [self.videoPreviewLayer connection].videoOrientation;
        
        //视频防抖模式
        if ([connection isVideoStabilizationSupported]) {
            connection.preferredVideoStabilizationMode = AVCaptureVideoStabilizationModeAuto;
        }
        
        //用日期做为视频文件名称
        NSString *str = [self getCurrentDate];
        
        NSString *outputFilePath = [NSTemporaryDirectory() stringByAppendingString:[NSString stringWithFormat:@"%@%@",str,@"myMovie.mov"]];
        
        NSURL *fileUrl = [NSURL fileURLWithPath:outputFilePath];
        [self.movieFileOutput startRecordingToOutputFileURL:fileUrl recordingDelegate:self];
        return YES;
        
    }
    [self.movieFileOutput stopRecording];
    return NO;
}

聚焦

点击屏幕是更改所点位置的聚焦和白平衡

/**
 点击屏幕聚焦

 @param view 手势所在的视图
 @param gesture 手势
 */
- (void)videoLayerClick:(SelectView *)view gesture:(UITapGestureRecognizer *)gesture {
    CGPoint point = [gesture locationInView:view];
    NSLog(@"位置:%f",point.y);
    CGPoint cameraPoint = [self.videoPreviewLayer captureDevicePointOfInterestForPoint:point];
    
    [self setFocusViewWithPoint:point];
    [self focusWithMode:AVCaptureFocusModeAutoFocus exposureMode:AVCaptureExposureModeAutoExpose atPoint:cameraPoint];
}

/**
 设置聚焦光标位置
 
 @param point 光标位置
 */
-(void)setFocusViewWithPoint:(CGPoint)point{
    self.focusView.center=point;
    self.focusView.transform=CGAffineTransformMakeScale(1.5, 1.5);
    self.focusView.alpha=1.0;
    [UIView animateWithDuration:1.0 animations:^{
        self.focusView.transform=CGAffineTransformIdentity;
    } completion:^(BOOL finished) {
        self.focusView.alpha=0;
        
    }];
}

/**
 设置聚焦点
 
 @param point 聚焦点
 */
-(void)focusWithMode:(AVCaptureFocusMode)focusMode exposureMode:(AVCaptureExposureMode)exposureMode atPoint:(CGPoint)point{
    [self changeDeviceProperty:^(AVCaptureDevice *captureDevice) {
        if ([captureDevice isFocusModeSupported:focusMode]) {
            [captureDevice setFocusMode:focusMode];
        }
        if ([captureDevice isFocusPointOfInterestSupported]) {
            [captureDevice setFocusPointOfInterest:point];
        }
        if ([captureDevice isExposureModeSupported:exposureMode]) {
            [captureDevice setExposureMode:exposureMode];
        }
        if ([captureDevice isExposurePointOfInterestSupported]) {
            [captureDevice setExposurePointOfInterest:point];
        }
    }];
}

AVFoundation的代理

在代理中把每段录制的视频资源放入数组中为 之后的合并视频做准备

-(void)captureOutput:(AVCaptureFileOutput *)captureOutput didStartRecordingToOutputFileAtURL:(NSURL *)fileURL fromConnections:(NSArray *)connections{
    NSLog(@"开始录制...");
    [_videoArray addObject:fileURL];
    NSLog(@"%@",fileURL);
}

- (void)captureOutput:(AVCaptureFileOutput *)captureOutput didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL fromConnections:(NSArray *)connections error:(NSError *)error {
    NSLog(@"视频录制完成");
    self.enableRotation = YES;
    NSLog(@"%@",outputFileURL);
}

2.视频合并的实现

/**
 开始合并视频
 */
- (void)mergeClick {
    if (_videoArray.count <= 0) {
        [self noticeAlertTitle:@"请先录制视频,然后后在合并" cancel:@"确定"];
        return;
    }
    
    if ([self.movieFileOutput isRecording]) {
        NSLog(@"请录制完成后在合并");
        [self noticeAlertTitle:@"请录制完成后在合并" cancel:@"确定"];
        return;
    }
    
    UIAlertView *alert = [self noticeAlertTitle:@"处理中..." cancel:nil];
    NSString *pathStr = [self getCurrentDate];
    [[XDVideoManager defaultManager]
     mergeVideosToOneVideo:_videoArray
     toStorePath:pathStr
     WithStoreName:@"xiaoxie"
     backGroundTask:_backgroundTaskIdentifier
     success:^(NSString *info){
         NSLog(@"%@",info);
         [_videoArray removeAllObjects];
         
         [alert dismissWithClickedButtonIndex:-1 animated:YES];

     } failure:^(NSString *error){
         NSLog(@"%@", error);
        [_videoArray removeAllObjects];
    }];
}

调用方法

- (void)mergeVideosToOneVideo:(NSArray *)tArray toStorePath:(NSString *)storePath WithStoreName:(NSString *)storeName backGroundTask:(UIBackgroundTaskIdentifier)task success:(void (^)(NSString *info))successBlock failure:(void (^)(NSString *error))failureBlcok
{
    AVMutableComposition *mixComposition = [self mergeVideostoOnevideo:tArray];
    NSURL *outputFileUrl = [self joinStorePaht:storePath togetherStoreName:storeName];
    [self storeAVMutableComposition:mixComposition withStoreUrl:outputFileUrl WihtName:storeName backGroundTask:(UIBackgroundTaskIdentifier)task filesArray:tArray success:successBlock failure:failureBlcok];
}

视频合并的核心代码

/**
 多个视频合成为一个
 
 @param array 多个视频的NSURL地址
 
 @return 返回AVMutableComposition
 */
- (AVMutableComposition *)mergeVideostoOnevideo:(NSArray*)array
{
    AVMutableComposition* mixComposition = [AVMutableComposition composition];
    AVMutableCompositionTrack *a_compositionVideoTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid];
    
    AVMutableCompositionTrack *a_compositionAudioTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];
    Float64 tmpDuration =0.0f;
    
    for (NSURL *videoUrl in array)
    {
        
        AVURLAsset *asset = [[AVURLAsset alloc]initWithURL:videoUrl options:nil];
        
        AVAssetTrack *videoAssetTrack = [[asset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0];
        AVAssetTrack *audioAssetTrack = [[asset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0];
    
        CMTimeRange video_timeRange = CMTimeRangeMake(kCMTimeZero,asset.duration);
        
        [a_compositionVideoTrack setPreferredTransform:videoAssetTrack.preferredTransform];
        [a_compositionAudioTrack setPreferredTransform:audioAssetTrack.preferredTransform];

        /**
         依次加入每个asset
        
         param TimeRange 加入的asset持续时间
         param Track     加入的asset类型,这里都是video
         param Time      从哪个时间点加入asset,这里用了CMTime下面的CMTimeMakeWithSeconds(tmpDuration, 0),timesacle为0
         */
        NSError *error;
        [a_compositionVideoTrack insertTimeRange:video_timeRange ofTrack:videoAssetTrack atTime:CMTimeMakeWithSeconds(tmpDuration, 0) error:&error];
        
        
        [a_compositionAudioTrack insertTimeRange:video_timeRange ofTrack:audioAssetTrack atTime:CMTimeMakeWithSeconds(tmpDuration, 0) error:&error];
        tmpDuration += CMTimeGetSeconds(asset.duration);
    }
    return mixComposition;
}

视频合并后的存储路径

/**
 拼接url地址

 @param sPath sPath 沙盒文件夹名
 @param sName sName 文件名称
 @return 返回拼接好的url地址
 */
- (NSURL *)joinStorePaht:(NSString *)sPath togetherStoreName:(NSString *)sName
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentPath = [paths objectAtIndex:0];
    NSFileManager *fileManager = [NSFileManager defaultManager];
    
    NSString *storePath = [documentPath stringByAppendingPathComponent:sPath];
    BOOL isExist = [fileManager fileExistsAtPath:storePath];
    if(!isExist){
        [fileManager createDirectoryAtPath:storePath withIntermediateDirectories:YES attributes:nil error:nil];
    }
    NSString *realName = [NSString stringWithFormat:@"%@.mov", sName];
    storePath = [storePath stringByAppendingPathComponent:realName];
    
    [[StoreFileManager defaultManager] removeItemAtPath:storePath];
    
    NSURL *outputFileUrl = [NSURL fileURLWithPath:storePath];
    
    return outputFileUrl;
}

对合并完成后的视频进行存储

/**
 存储合成的视频

 @param mixComposition mixComposition参数
 @param storeUrl 存储的路径
 @param aName 视频名称
 @param task 后台标识
 @param files 视频URL路径数组
 @param successBlock 成功回调
 @param failureBlcok 失败回调
 */
- (void)storeAVMutableComposition:(AVMutableComposition*)mixComposition withStoreUrl:(NSURL *)storeUrl WihtName:(NSString *)aName backGroundTask:(UIBackgroundTaskIdentifier)task filesArray:(NSArray *)files success:(void (^)(NSString *outPath))successBlock failure:(void (^)(NSString *error))failureBlcok
{
    AVAssetExportSession* _assetExport = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPresetHighestQuality];
    _assetExport.outputFileType = AVFileTypeQuickTimeMovie;
    _assetExport.outputURL = storeUrl;
    
    __block typeof(task) blockTask = task;
    [_assetExport exportAsynchronouslyWithCompletionHandler:^{
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
            //写入系统相册
            ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc]init];
            [assetsLibrary writeVideoAtPathToSavedPhotosAlbum:storeUrl completionBlock:^(NSURL *assetURL, NSError *error) {
                [[StoreFileManager defaultManager] removeItemAtPath:[storeUrl path]];
                [self freeFilesInArray:files];
                
                //通知后台挂起
                if (blockTask != UIBackgroundTaskInvalid) {
                    [[UIApplication sharedApplication] endBackgroundTask:blockTask];
                    blockTask = UIBackgroundTaskInvalid;
                }

                if (error) {
                    if (failureBlcok) {
                        NSString *errorStr = [NSString stringWithFormat:@"存入相册失败:%@",error.localizedDescription];
                        failureBlcok(errorStr);
                    }
                    
                } else {
                    if (successBlock) {
                        NSString *successStr = [NSString stringWithFormat:@"视频保存成功,相册Url:%@",assetURL];
                        successBlock(successStr);
                    }
                }
            }];
        });
    }];
}

清理缓存

/**
 释放缓存

 @param filesArray 存放视频URL路径的数组
 */
- (void)freeFilesInArray:(NSArray *)filesArray {
    for (NSURL *fileUrl in filesArray) {
        [[StoreFileManager defaultManager] removeItemAtUrl:fileUrl];
    }
}

至此已经完成了一个分段式录制摄像机,具体详情请查看demo中的代码
demo链接:https://github.com/Xiexingda/XDVideoCamera.git
喜欢的话记得在github给颗小星星哦😊!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 195,719评论 5 462
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 82,337评论 2 373
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 142,887评论 0 324
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,488评论 1 266
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,313评论 4 357
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,284评论 1 273
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,672评论 3 386
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,346评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,644评论 1 293
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,700评论 2 312
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,457评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,316评论 3 313
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,706评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,990评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,261评论 1 251
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,648评论 2 342
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,859评论 2 335

推荐阅读更多精彩内容