IPTV
Search for public IPTV channels.
Watch free TV over the internet.
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
random
August 25, 2020, 6:05pm
2
British channels are not all going to be there, thanks to TV licensing laws
random
August 25, 2020, 6:08pm
4
these channels appear to be foreign, which do not require a license to watch
1 Like
random
August 25, 2020, 6:09pm
6
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
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.
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.
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