Hi, I found out that when you want to know the duration of a media file, specifically a movie, the instruction:
Code: _videoDuration = CMTimeGetSeconds([_data->avplayer.currentItem duration]); returns 0, I tried to use the following instead: Code: _videoDuration = CMTimeGetSeconds([[_data->avplayer.currentItem asset] duration]); that seems to return the correct movie's duration in seconds. If you agree I will send a pull request about this fix. Cheers, Alessandro ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72784#72784 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org