ios - How to Display Live Camera Feed in AVPlayer? -
is there way stream live video feed phone camera directly avplayer? seems accept nsurl arguments. how access camera feed , pipe video player?
here's example:
nsstring *videopath = [[nsbundle mainbundle] pathforresource:@"congo" oftype:@"mp4"]; nsurl *videourl = [[nsurl alloc] initfileurlwithpath:videopath]; _player = [avplayer playerwithurl:videourl];
this close don't want play movie file.
Comments
Post a Comment