iphone - How to play H264 Video file using VideoToolbox.framework in iOS 8? -


i want play .h264 video file in ios 8 use of videotoolbox.framework , not ffmpeg library.

i have found few tutorials + reference links understand videotoolbox.framework, still couldn't find, "how play .h264 in ios?".

few examples :

reference links :

you can download test (.h264) video testing here.

videotoolbox.framework not used display video files on screen rather decoding , conversion of video data. use avkit.framework or avfoundation.framework play h264 video instead.

see apples documentation of media layer:

the video toolbox framework comprises 64-bit replacement quicktime image compression manager. video toolbox provide services video compression , decompression, , conversion between raster image formats stored in core video pixel buffers.


Comments