Skip to content

Parses HLS master and media playlists into C structures

License

Notifications You must be signed in to change notification settings

frejoel/hlsparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Contributors 3

  •  
  •  
  •