Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
/ NPOStream Public archive

Swift library to get real-time streams of Dutch broadcasting studio (NPO)

License

Notifications You must be signed in to change notification settings

hollanderbart/NPOStream

Repository files navigation

NPOStream

Swift framework to get real-time streams of Dutch broadcasting studio (NPO).

Available NPO channels
NPO1
NPO2
NPO3
NPONieuws
NPOPolitiek
NPO101
NPOCultura
NPOZappXtra
NPORadio1
NPORadio2
NPO3FM
NPORadio4

Version

  • 0.1.0: Version compatible with Swift 4.2 and Xcode 10.

Usage

  1. Import framework in Xcode project using Cocoapods pod "NPOStream"
  2. Declare: import NPOStream on top of your swift file
  3. Call the NPOStream.getStream function with a ChannelTitle enum case. ChannelTitle is a enum with all available NPO TV channels that NPOStream can provide.

NPOStream.getStream(ChannelTitle, onCompletion: (URL?, NSError?) -> Void)

Example

NPOStream.getStream(ChannelTitle.NPO3) { (url: URL?, error: NSError?) in
  guard let streamURL = url, error == nil else { return }
  self.performSegue(withIdentifier: "player", sender: streamURL)
}

Take a look at the Example project for more details..

About

Swift library to get real-time streams of Dutch broadcasting studio (NPO)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published