IOS live h.264 video stream

I have a video stream with video type / h 264 mime, which broadcasts live h.264 video from a security camera. I am trying to transmit this real time and decode h.264 frames (preferably hardware decoding) and display them as. I have searched many times for libraries or frameworks to support this, but I'm not quite sure if this is the right approach. I looked at AVFoundation a bit, but not sure how to handle the video / h 264 stream. Should I capture every frame (I frame / P frame) from the stream and pass it to AVAssetReader? Any links to a manual / sample code / library would be extremely helpful!

+4
source share
1 answer

You cannot play elementary h.264 on iOS. You can wrap it in mp4 or ts stream before playing [http pd download or hls]. But if you do not compile something else (e.g. ffmpeg) on ​​the device, you will not be able to play raw h.264

+2
source

All Articles