Skip to content

azend/MJPEG-Framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have expanded #AlamofireImage for dealing with #MJPEG-Streams

Screenshot


MJPEG Framework

Carthage compatible

A MJPEG Framework for iOS

MJPEGConnection is a NSURLConnection subclass that takes an url, username and password. It has a responseDidFinisch callback that pass through each received image data

MJPEGImageView is a UIImageView subclass that has a MJPEGConnection and updates the image

Example

You can find an example project on GitHub: ugoArangino/MJPEG-Framework-Example I use this Framework for my app IP-Camera Viewer

@IBOutlet weak var mjpegImageView: MJPEGImageView!

let urlString = "http://wmccpinetop.axiscam.net/mjpg/video.mjpg"
if let url = NSURL(string: urlString) {
    let connectionData = ConnectionData(URL: url)
    mjpegImageView.setupMJPEGConnection(connectionData: connectionData)
    mjpegImageView.startConnection()
}

Make sure that the class of the UIImageView outlet is MJPEGImageView and the Module is MJPEG.

Install with Carthage

github "ugoArangino/MJPEG-Framework" >= 1.0.0

About

A MJPEG Framework for iOS (Swift 2.2)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%