Latest 0.1.0
Homepage https://github.com/hollanderbart/NPOStream
License MIT
Platforms ios 12.0, tvos 12.0
Authors

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..

Latest podspec

{
    "name": "NPOStream",
    "version": "0.1.0",
    "summary": "Swift framework to get real-time streams of Dutch broadcasting studio (NPO).",
    "description": "To get the dynamic strean URL of the Dutch TV broadcasting NPO channels. So with this library it will be super easy to get a steam URL to use in your iOS app.",
    "homepage": "https://github.com/hollanderbart/NPOStream",
    "license": "MIT",
    "authors": {
        "Bart den Hollander": "[email protected]"
    },
    "social_media_url": "https://twitter.com/hollanderbart",
    "platforms": {
        "ios": "12.0",
        "tvos": "12.0"
    },
    "source": {
        "git": "https://github.com/hollanderbart/NPOStream.git",
        "tag": "0.1.0"
    },
    "source_files": "NPOStream/**/*"
}

Pin It on Pinterest

Share This