Skip to content

Softvelum/sldp-playback-library-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS library and sample player for SLDP playback

Usage

Add SLDP playback library

Drag and drop this folder

sldp

files in your project.

Add bridging header

sldp/SldpPlayer-Bridging-Header.h

Simple Example

Use 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)

Sample player

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.

About

iOS library and sample player for SLDP playback

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors