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
Nice! Do share when you have it working.
What does the code look like?
Just started the Glitch project!
If you guys want to follow along: https://glitch.com/edit/#!/scalloped-tricolor-ballcap
1 Like
Implemented that on my website, I’ll deploy to glitch and github later.
Now when you click on a channel it opens in the browser.
https://riverside.rocks/apps/tv
Cool! Was it using my viewer stuff?
Yes, it works great! (I gave you credit in the source)
Ah thanks!
Yeah anyways very cool stuff!
I’m gonna upload this to GH, use Vercel to deploy to my domain, and volia!
Anyone can contribute, and it’s available for people to use and mess with.
3 Likes
Working on some details like the width and stuff! Keep watching!
Sky News works (its also on YouTube). The BBC ones don’t though
The reason those don’t is because it returns 403 Forbidden
1 Like
Some of them don’t work due to mixed content (non https)
Oh yeah maybe I should disable that with a URL param
I think I know a way to set this up with copying the code over…
Either an <iframe>
or you guys do redirect over to the website with the url parameters done already!
Both options are good depending on how you want it!
Hey, there’s BBC Arabic! And quite a few Indian channels!
1 Like
I might actually make this project into it’s own thread.
What project are we talking about lol
Tested the project and lot of channels are missing, and also a lot of have wrong icons/missing images or duplicated themselfs.
Depends on whether the channel is an IPTV channel or not, obviously all the channels can’t be present.
Here is why some are not working:
Some channels are non https, they cannot be played in an https environment.
Some channels are simply not found.
For details you can always check the devtools.
Also, I updated the Glitch and Github project so you can now watch videos on the browser there.
I looked and it was great! The weather channel worked fine but some wouldn’t load (just black)
1 Like
Some may not work (still working out the bugs). If you want details on why a station didn’t load, you should check the devtools. But I am glad you liked it!