Code Monkey home page Code Monkey logo

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.

m3u8parser's People

Contributors

alexsun avatar darwinzhao avatar everappz avatar karolbielski avatar noamtamim avatar pierreperrin avatar surrenderios avatar wolfcon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m3u8parser's Issues

Make xMediaList public

xMediaList contains audio tracks info, and it is useful to be able to access them on multi audio streams.

Add OSS License?

Great library, I would like to use and contribute. Did you intentionally not include a license? If you add an open source license, (Apache2?), others can use more freely and will potentially contribute back as well!

Inconsistent Package Naming Prevents Release on SPM and Cocoapods

Describe the bug (对 bug 进行描述)

  • We integrated your package into our package to parse the m3u8 files and we planned to release it in SPM and Cocoapods.
  • But I am facing this issue `error: no such module 'M3U8Parser' when we try to release our package in Cocoapods because the package was named "M3u3Parser" in SPM and "M3u8Kit" in CocoaPods and we're importing the package as "M3u8Parser", and getting the above error.
  • This inconsistency is preventing us from successfully publishing our package on both SPM and Cocoapods.

To Reproduce (产生步骤)
Steps to reproduce the behavior:

  1. Git clone https://github.com/testpress/iOSPlayerSDK
  2. Checkout to this branch release-in-cocoapods
  3. Run pod spec lint TPStreamsSDK.podspec
  4. See error

Expected behavior (期待的行为)

  • We expect the library's name to be consistent across different package managers to avoid conflicts.

Additional context (附加的相关信息)

  • Do you have any potential workarounds to address this issue, or is there any way I can assist in resolving it? I'm more than willing to help.

Could you support parsing M3U8PlaylistModel into .m3u8 files?

After parsing the .m3u8 file into M3U8PlaylistModel, I tried to modify the details of the model. But I need to convert it to the original .m3u8 file URL and use it as the AVPlayerItem of AVPlayer. So, is there any way to serialize M3U8PlaylistModel to original .m3u8 file?

M3U8Parser is the best HLS parser kit I'v seen. Any answers are helpful, thank you.

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.