GithubHelp home page GithubHelp logo

m3u8-php-parser's Introduction

m3u8 / m3u PHP Parser

m3u PHP Parser.m3u8 parser to json

How to use it? (With or without callback)

/m3u-parser.php?callback=jQuery112403360297908445591&url=https://bit.ly/IPTVLIVE

/m3u-parser.php?url=https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u

Markdown created with Editconvert

Result for m3u-parser.php

{
  "list": {
    "service": "iptv",
    "title": "iptv",
    "item": [
      {
        "service": "iptv",
        "title": "Rrokum",
        "playlistURL": "https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u",
        "media_url": "http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8",
        "url": "http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8",
        "id": "RrokumTV.al",
        "aspect-ratio": "16:9",
        "author": "RrokumTV.al",
        "language": "Albanian/Kosovo",
        "country": "KS",
        "thumb_square": "https://2.bp.blogspot.com/-adXhlGiHqxw/WSGCBl9Y8LI/AAAAAAAAD5Q/-t48sLv989Uxb5hgB0b38QlfTdoAE576ACLcB/s1600/tvrrokum.png",
        "group": "TVSHQIP"
      },
     {
        "service": "iptv",
        "title": "JTV",
        "playlistURL": "https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u",
        "media_url": "http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8",
        "url": "http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8",
        "id": "TVJUG.AL",
        "author": "TVJUG.AL",
        "language": "Albanian/Kosovo",
        "country": "AL",
        "thumb_square": "https://4.bp.blogspot.com/-LXFMStwz6tI/WSGLzk0QgVI/AAAAAAAAD6I/T-rFp4KD_c4zbCRN9hGrjy_jS2nmXgPJwCLcB/s1600/tvjug.png",
        "group": "TVSHQIP"
      }
    ]
  }
}

Result for m3u-parser-simple.php

[
  {
    "id": 1,
    "tvtitle": "Newsmax TV",
    "tvmedia": "http://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8",
    "tvname": "Newsmax TV",
    "tvlanguage": "English",
    "tvcountry": "US",
    "tvid": "Newsmax-TV",
    "tvlogo": "http://i.imgur.com/Twkovic.gif",
    "tvgroup": "Entertainment"
  },
  {
    "id": 2,
    "tvtitle": "Infowars Live",
    "tvmedia": "http://infowarslive-lh.akamaihd.net/i/infowarslivestream_1@353459/index_800_av-p.m3u8",
    "tvlogo": "http://i.imgur.com/ODIWC6n.jpg",
    "tvname": "Infowars",
    "tvid": "Infowars",
    "tvgroup": "News"
  },
]

I used M3U8 PHP Parser on my website to load and play multiple IPTV Playlists (With ajax) and with my Videojs videojs-unmute plugin to mute & unmute autoplayed video.

Live Demo: hlsiptv.com

m3u8-php-parser's People

Contributors

onigetoc 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m3u8-php-parser's Issues

Security Contact

Hello maintainer(s),

I am a security researcher from the Institute of Application Security at TU Braunschweig, Germany. We discovered a (potential) security vulnerability in your project.

We would like to report this vulnerability to you in a responsible and ethical manner.
Therefore, we do not want to disclose any details of the vulnerability publicly until you have had a chance to review and fix it.

Could you please let us know your prefered way of receiving security reports?

You can contact us at [email protected] or by replying to this issue.

Thank you for your attention and cooperation.

Congratulations on your script!

It works flawlessly parsing content from the site you suggest as an example.

I'm in the educational sector, so thanks to you this will make language learning more accessible to thousands of people.

Thanks so much for putting it together.

Regards

Hugo Barbosa

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.