Playing a video file saved in the app's documents directory

前端 未结 2 1463
悲&欢浪女
悲&欢浪女 2021-01-06 09:06

I have a video file saved in my app\'s local directory in the documents folder. I want to playback the file when the user clicks on the item in an embedded table view I crea

2条回答
  •  不知归路
    2021-01-06 09:39

    The mistake in you was you missed / before DemoRecording.mp4

    It should be

    NSString* path = [documentPath stringByAppendingPathComponent:@"/DemoRecording.mp4"];
    

    Also you are writing player statements before declaring it.

提交回复
热议问题