Drag and drop this folder
sldpfiles in your project.
sldp/SldpPlayer-Bridging-Header.hUse this code to add SLDP playback in your existing app.
let sampleBufferLayer = AVSampleBufferDisplayLayer()
sampleBufferLayer.frame = view.bounds
sampleBufferLayer.videoGravity = AVLayerVideoGravity.resizeAspect
view.layer.addSublayer(sampleBufferLayer)
let config = StreamConfig()
config.uri = URL(string: "wss://demo-nimble.softvelum.com/live/bbb")!
engine = SldpEngineProxy()
engine.setDelegate(self)
engine.setVideoLayer(sampleBufferLayer)
engine.createStream(config)Open player.xcodeproj, this project contains complete code to make your own SLDP player from scratch.
Also, read introduction blog post about this initiative. Also check our SLDP open source playback on Android in this blog post.