Skip to content

namndev/M3U8Parser

 
 

Repository files navigation

M3U8Kit

Build Status CocoaPods Compatible Platform MIT license

TODO

  • Rewrite with Swift

New Features

  • Add X-Key parser support that is now for each ts resource.
  • Add support for AVERAGE-BANDWIDTH property

Installation

Podfile

Specify it in your Podfile:

pod 'UZM3U8Kit'

Then, run the following command:

$ pod install

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

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

About

A light weight M3U8 parser. Support X-Key & X-Session-Key.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.7%
  • Ruby 1.7%
  • Starlark 1.6%