How to stream live video from camera in iOS

Vineesh TP picture Vineesh TP · Sep 15, 2017 · Viewed 12.2k times · Source

How can I stream a live video from a camera to an iOS application. Let me know what are the possible way for stream video from the camera to cloud and view in iOS application.

Answer

Ganesh Bavaskar picture Ganesh Bavaskar · Sep 15, 2017

It depends on what your camera supports. There are two ways to implement live streaming in an ios application.

  1. HTTP Live Streaming :- HTTP Live Streaming (also known as HLS) is an HTTP-based media streaming communications protocol that provides mechanisms that are scalable and adaptable to different networks. HLS works by breaking down a video file into a sequence of small HTTP-based file downloads, with each download loading one short chunk of a video file.

    Reference Links : https://developer.apple.com/streaming/ https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html HTTP LIve Streaming https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html

  2. RTSP Streaming :- The Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and controlling media sessions between end points. There are third party library available which can be used for RTSP streaming Like FFMPEG, VideoKit etc.

    Reference Links :
    https://www.ffmpeg.org https://iosvideokit.com