Giter Site home page Giter Site logo

m3u8kit / m3u8parser Goto Github PK

View Code? Open in Web Editor NEW
257.0 9.0 83.0 246 KB

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

License: MIT License

Objective-C 85.57% Ruby 1.39% Swift 0.66% C 12.39%
m3u8 m3u8-parser objective-c cocoapods ios hls parser

m3u8parser's Introduction

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

Podfile

Specify it in your Podfile:

pod 'M3U8Kit'

Then, run the following command:

$ pod install

Released from 0.4.1

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.