Reproduzca el video en la celda de vista de colección como los videos que se reproducen en la aplicación de Facebook Línea de tiempo

Quiero reproducir video en la celda de vista de colección, el requisito es como la línea de tiempo de instagram y reproducir video es como reproducir videos en la línea de tiempo de Facebook,

para esto utilicé UICollectionViewCell en el que tengo algunas imágenes, no videos, ahora soy imágenes de la galería, estoy tomando la imagen con la cámara y estoy grabando el video, cada vez que salgo de lo anterior y salgo tener agregar a la línea de tiempo.

Por ejemplo, tomamos 3vc 1st vc está teniendo una vista de colección con algunas imágenes, en el segundo vc estamos obteniendo salida, ya sea video, imágenes, estoy tomando las imágenes y el primer cuadro de la imagen en la matriz común que es en el VC3 de VC3, estoy pasando la matriz y la URL de la ruta de salida de video al 1stVC usando el centro de notificaciones

 - (IBAction)sharebuttn:(id)sender {

[self dismissViewControllerAnimated:YES completion:^{

    //  Tabbar index

    [[NSNotificationCenter defaultCenter] postNotificationName:@"ShareArray" object:_selectedimgarray];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"SharetitleArray" object:_newtile];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"sharevideooutputurl" object:_finalvideourl];

}];

y en el 1stVC los estoy recuperando así

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receivedArray:) name:@"ShareArray" object:nil];


[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receivedtitleArray:) name:@"SharetitleArray" object:nil];


[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sharevideooutputurl:) name:@"Sharevideourl" object:nil];

- (nulo) recibido Matriz: (NSNotification *) notificación {

    NSMutableArray* userInfo = notification.object;
UIImage *image = [userInfo firstObject];


if ([userInfo count]>0) {

     //[_imagearray insertObject:[userInfo firstObject] atIndex:0];
    [app.array1 insertObject:[userInfo firstObject] atIndex:0];
    [self.collection reloadData];
    NSLog(@"%@",app.array1);

}
 //[_imagearray insertObject:[userInfo firstObject] atIndex:0];

 // [self.collection reloadData];
_collection.delegate=self;
_collection.dataSource=self;

}

- (nulo) recibido título Array: (NSNotification *) notificación {

    NSMutableArray* userInfotitle = notification.object;
NSLog(@"%@",userInfotitle);
//[_tittlearray insertObject:[userInfotitle firstObject] atIndex:0];

 [app.tarray1 insertObject:[userInfotitle firstObject] atIndex:0];
 NSLog(@"%@",app.tarray1);
//NSLog(@"%@",_tittlearray);



_collection.delegate=self;
_collection.dataSource=self;    

[self.tabBarController setSelectedIndex:0];


     //[self.collection reloadData];

} - (nulo) sharevideooutputurl: (NSNotification *) notificación {

NSURL *finalsharevideourl=notification.object;

[self.collection reloadData];
_collection.delegate=self;
_collection.dataSource=self;

}

y en la colección viewcell

  - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

 //[self.collection reloadData];
homeceeCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];


UIImage *image;
NSInteger row = [indexPath row];


NSLog(@"indexpath = %ld", (long)row);
 if( [app.array1[row] isKindOfClass:[UIImage class]]) {
   image= app.array1[row];
}
 else
 {
    image = [UIImage imageNamed:app.array1[row]];

}
cell.img.image = image;

cell.text.text=[app.tarray1 objectAtIndex:indexPath.row];


    return cell;

} La imagen y la imagen del primer fotograma del video se están agregando con éxito. También quiero ver el video, cuando me desplazo.

Soy nuevo en el objetivo c, algunos por favor ayúdenme, gracias por la rápida respuesta

Respuestas a la pregunta(1)

Su respuesta a la pregunta