Skip to content
/ hlsparse Public
forked from frejoel/hlsparse

Parses HLS master and media playlists into C structures

License

Notifications You must be signed in to change notification settings

FDH2/hlsparse

This branch is up to date with frejoel/hlsparse:master.

Repository files navigation

HLS Parse

Library for parsing an HLS master and media playlist into a C object structure. Supports Draft 23 of the Pantos specification. See https://tools.ietf.org/html/draft-pantos-http-live-streaming-23 for details.

Building

Run make static to build a static library. See the generated bin directory. Run make check to build and run the tests.

Example

For a more thorough example see examples/example.c in the source code.

    // Global initialization of the library.
    HLSCode res = hlsparse_global_init();

    // create a master playlist structure.
    master_t myMaster;
    res = hlsparse_master_init(&myMaster);

    // parse some playlist data into our master structure.
    masterSrc = /* char * utf8 master playlist string */
    int read = hlsparse_master(masterSrc, strlen(masterSrc), &myMaster);

About

Parses HLS master and media playlists into C structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.7%
  • Makefile 1.1%
  • Shell 0.2%