IPTV Search - Search and Watch Internet TV channels

view source remix this

IPTV

Search for public IPTV channels.

Watch free TV over the internet.

Live Demo

Requirements

  • PHP 7 or higher
  • Webserver (Apache works the best)

(If you are going to use this on Glitch, please use the LAMP server project)

Setup

Clone the repo:

git clone https://github.com/RiversideRocks/IPTV.git

Open your browser to localhost/IPTV/

Watching the Stream

Open VLC and click on the media tab. Click “Network Stream” and open the URL of the requested channel.

Data from https://iptv-org.github.io

Questions? Ask me here.

2 Likes

British channels are not all going to be there, thanks to TV licensing laws

https://riverside.rocks/apps/tv?q=BBC

BBC turned up a few results.

these channels appear to be foreign, which do not require a license to watch

1 Like

Interesting…

btw, can you make it so we can watch in the browser?

I could look into it. I might be able to make an iframe with the video in it, not sure if it would work.

1 Like

maybe, it may work.

the law:

The law says that you must have a TV licence if you: watch or record live TV programmes on any channel, even if it’s not on the BBC . … download or watch any BBC programmes on iPlayer.

This is a awesome idea!
I do have two suggestions:

  • Clone the JSON file and allow PRs to add new channels.
  • Allow Multiple JSON files.

I get the data from:
https://iptv-org.github.io/iptv/channels.json

If you want to add a new channel, make a PR here:

I don’t supply the data, I just parse it.

2 Likes

I’ll make a browser player in a bit!
I’ll give the link when i’m done!

If you can do it, that would be pretty great. I tried with just the <video> element, but that doesn’t support m3u8 videos.

You need to improve the searching
E.G.
A search for bbc returns nothing, but a search for BBC returns 8 channels

Good point, I don’t have a great solution at the moment.

1 Like

If you want to use some JS… do this:

const searchTerm = "example term";
searchTerm = searchTerm.toUpperCase(); // or .toLowerCase()

I belive that there is somthing like that in PHP (it may be strtolower()) but that causes the other issue of not all titles are in caps, and not all titles are in lowercase.

Hmmm… Interesting.

Maybe there is a function to convert the first letter of each word? I could look into it.

I think I how I’m gonna make the browser player…
I’m getting to work!

1 Like