• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample code for IPTV

 
pradeep pr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need Sample java codes for IPTV.

Thanks,
Pradeep
 
Rob Spoor
Sheriff
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done already? Did you SearchFirst? We will not help you out if you're not willing to do anything yourself. We are NotACodeMill; you should ShowSomeEffort.
 
pradeep pr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am learning IPTV concepts now.I need to check how to write codes in java.So,that i can start building IPTV using java.Please send me any useFul links
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15369
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Do you have a more specific question? In other words, are there certain aspects that you want help with? Your question is now so general that it's hard to answer; I don't think anyone has a complete example for a working IPTV system ready to use for you.
 
pradeep pr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to check some sample pseudo code of java.So, it will be more helpful to start with
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15369
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you're asking "I want to build a big and complicated system, I don't really have an idea of what it is, can anybody give me some pseudocode to start with?".

You should stop thinking about code, and start thinking about the requirements of the system. What exactly is an IPTV system? What does it need to do? Is it going to run on a regular PC or on special hardware? Does it need to interface with other systems? What parts will the system consist of? How are those parts going to work together? Is there a user interface? If yes, then how should the user interface work?

Nobody builds big software systems by immediately starting to write code. You first need to have a clear and detailed idea of what your system is, what its functionality is going to be and what other requirements it will have. You'll need to spend time to get this clear before you start thinking about writing code. Nobody can give you example code or even pseudo-code without knowing what the requirements of the system are.
 
Bobbi Coughlin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was out looking for more information on writing iptv for a m3u file when I found this site and old post.

For starters, let me say I didn't know that IPTV code was java. I have worked with java in the past (10 years ago) but I never really wrote it just worked with scripts others made. And IPTV code looks nothing like java.
Anyway, I was looking for some information on IPTV for beginners. I know how to make the m3u file but the actual coding of it is something I dn't fully understand yet.

I know it starts off with the #EXTM3U like html starts off as <html> and for the beginning of each iptv string (i hope thats the correct word to call it) starts with a #EXTINF: tag.

As I stated above, as I start learning more about it I have learned it gets a lot harder. The basic starting tag starts off as #EXTM3U but I have seen it written as #EXTM3U tvg-shift=3 and thats why I have been searching for a guide for new beginners because it starts getting harder to understand and when problems starts and I can't figure it out is the main reason why I am here.

I recently installed a program called Kodi and been trying to make my own list of stream channels I like Vs ones others make that I dont care for and that's why I got back into this.
At the moment I have a list I made that the first 3 channel's will work, and the 3 that follow after it won't. But if I insert the non working ones in a vlc player by themselves written in basic simplest form then they will work. And the code they are using is the very same as the 3 that do work, yet for some reason the last 3 don't.

If i use the simplest form of writing them then they "ALL" work, but when I start adding their names, channel logo and grouping them is where the problems started even though each one is the exact same code.

[EXAMPLE]simplest form

#EXTM3U

#EXTINF:-1, (channel name would go here) http://url location would go here.m3u8
#EXTINF:-1, (channel name would go here) http://url location would go here.m3u8
#EXTINF:-1, (channel name would go here) http://url location would go here.m3u8
#EXTINF:-1, (channel name would go here) http://url location would go here.m3u8
and so on and so on

[EXAMPLE2]more advanced=the one that's not fully working and the one I am having the problems with.


#EXTM3U tvg-shift=3

#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 1",name of group
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 1",name of group
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 1",name of group
#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 2",name of group
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 2",name of group
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="channel name" tvg-logo="channel logo image" group-title="Group 2",name of group
http://url location would go here.m3u8

The first 3 work, but the last 3 of example2 don't even though they are the exact same.


Also, I started out researching this not only for my own private use but I wanted to combine them into groups instead of having one long list. Like news with the news group, series in their own group and so on and so on. But at the moment I am having problems and that's why I am here. I was hoping you/this site had a tutorial on it like starting off with a guide for beginners then workinng up from there.


[EXAMPLE3]
#EXTM3U tvg-shift=3

#EXTINF:-1 tvg-id="id1" tvg-name="NBC News" tvg-logo="url channel logo image" group-title="Group 1",NEWS GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="CNN" tvg-logo="url channel logo image" group-title="Group 1",NEWS GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="ABC News" tvg-logo="url channel logo image" group-title="Group 1",NEWS GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="Weather Nation" tvg-logo="url channel logo image" group-title="Group 1",NEWS GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="Gunsmoke Season12 Episode1" tvg-logo="channel logo image" group-title="Group 2",SERIES GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="Gunsmoke Season12 Episode2" tvg-logo="url channel logo image" group-title="Group 2",SERIES GROUP
http://url location would go here.m3u8
#EXTINF:-1 tvg-id="id1" tvg-name="Gunsmoke Season12 Episode3" tvg-logo="channel logo image" group-title="Group 2",SERIES GROUP
http://url location would go here.m3u8

Like I stated above. the first 4 work but the last 3 don't even thou they are the exact same code. and yes all the url's work. When I put them all back into the simplest form there is no problems with any of them.

I am trying to group them so I don't end up with a list thats a mile long and makes finding certain ones harder. Grouping them would be so much easier to find plus having the logos with them looks better



 
Campbell Ritchie
Sheriff
Pie
Posts: 49472
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bobbi Coughlin wrote:. . . I have worked with java in the past (10 years ago) . . .
There are lots of new features now, which you will not have encountered. Don't know about IPTV either, but welcome to the Ranch
 
Bobbi Coughlin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:
Bobbi Coughlin wrote:. . . I have worked with java in the past (10 years ago) . . .
There are lots of new features now, which you will not have encountered. Don't know about IPTV either, but welcome to the Ranch


Would you believe I was close to figuring that out and by myself. I searched all over the internet and kodi forums which is where i eventually found the solution. Someone posted a link to a m3u iptv editor and I had to let the program sort it out and after the list was made I viewed it under notepad and i was surprised how close I was. There are no tutorials on it what so ever. They have 2 or 3 very basic ones but I needed something more to make channel logos and category groups and sub groups which there are none tat I could find, not even on their forum there are none.

Anyway look and my 3rd example above and look what the editor made. I was close



#EXTM3U

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="ABC News" group-title="News",ABC News
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="Star Trek The Next Generation 24/7" group-title="Live Entertainment",Star Trek The Next Generation 24/7
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="Vevo Country (LIVE)" group-title="Music Videos",Vevo Country (LIVE)
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="Weather Nation" group-title="News",Weather Nation
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="WGN Chicago" group-title="Live Entertainment",WGN Chicago
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="Season12 Episode1 Snap Decision" group-title="Gunsmoke Series",Season12 Episode1 Snap Decision
http://url

#EXTINF:0, tvg-id="N/A" tvg-logo="logo url" tvg-name="Season12 Episode2 The Goldtaker" group-title="Gunsmoke Series",Season12 Episode2 The Goldtaker
http://url

And thanks for the welcome, and now I remember why I stopped working with code lines and tags lol. oh my what a mind bender that was with no instructions to read about it other than the very basic stuff. Thank god for editor programs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic