M3U8Kit 0.4.1

M3U8Kit 0.4.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2020

Maintained by Jin Sun, Frank.



M3U8Kit 0.4.1

  • By
  • M3U8Kit

M3U8Kit

Build Status CocoaPods Compatible Platform Carthage compatible

TODO

  • Rewrite with Swift
  • SPM support

New Features

  • Add X-Key parser support that is now for each ts resource.
  • Add support for AVERAGE-BANDWIDTH property
  • Add tvOS/watchOS/macOS support
  • Add support for Swift Package Manager

Installation

Cocoapods

Podfile

To integrate M3U8Kit into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'M3U8Kit'

Then, run the following command:

$ pod install

SPM ⚠️

Only test on master branch. No release yet.

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

To integrate MLSOAppDelegate into your Xcode project using Carthage, specify it in your Carfile:

github "M3U8Kit/M3U8Parser" ~> 0.2.1 

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#> loadM3U8AsyncCompletion:^(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.