Swiftpack.co - M3U8Kit/M3U8Parser as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by M3U8Kit.
M3U8Kit/M3U8Parser 1.0.2
A light weight M3U8 parser. Support X-Key & X-Session-Key.
⭐️ 223
🕓 1 year ago
.package(url: "https://github.com/M3U8Kit/M3U8Parser.git", from: "1.0.2")

M3U8Kit

Build Status CocoaPods Compatible Carthage compatible SPM supported Platform MIT license Compatiable with EXT-X-VERSION:4

TODO

  • ☐ Rewrite with Swift

New Features

  • EXT-X-Version:4 supported
  • Add X-Key parser support that is now for each ts resource.
  • Add support for AVERAGE-BANDWIDTH property

Installation

Cocoapods

Podfile

Specify it in your Podfile:

pod 'M3U8Kit'

Then, run the following command:

$ pod install

SPM ⚠️

Released from 0.4.1

Carthage

Cartfile

Specify it in your Cartfile:

github "M3U8Kit/M3U8Parser" ~> 1.0.0 

Run carthage to build the framework and drag the built M3U8Kit.framework into your Xcode project.

Manually

If you prefer not to use either of the above mentioned dependency managers, you can integrate M3U8Kit into your project manually by adding the files contained in the Source folder to your project.

Usage

  • Asynchronous
#import "NSURL+m3u8.h"

[<#URL#> m3u_loadAsyncCompletion:^(M3U8PlaylistModel *model, NSError *error) {
                                      }];
  • Synchronous
NSError *error = nil;
M3U8PlaylistModel *model = [[M3U8PlaylistModel alloc] 
            initWithURL:@"https://xxx.xxx.com/live.m3u8"
              error:&error];

License

M3U8Kit is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 223
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1 year ago
  • Set support from 9.0 instead of 8.0 in PodSpec

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics