• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps iptv app

techker

Well-Known Member
Hey guy's im new in Android dev ( a few months) i have an iptv business and would like to have my own app for viewing ..the apps that are out there or not the greatest and some the source code are impossible to find to mod ..
i need to read from url :h.t.t.p://link.xyz:83/get.php?username=$User&password=$pass&type=m3u_plus&output=ts
so i need an activity to login and set the login details in the $user and $ pass
so it load a M3u file that contains the channel information and links to the TS file or M38u movie.
So parsing the m3u file and showing the content(grouped)
i know that there is a repo on git from Alexander that uses the iptvcore for player but the core is not opensource..
can somebody help me?
thx guy's
 
Last edited:
What's your current level of knowledge, and what part of this do you need help with?
 
well to be honest i have just a few months..im starting in that now..i have mostly web and app experience.

i now the basic of the dev and learning every day.
 
Thing is, as you probably well know, you have to learn to walk before you can run.
If you don't know Java, then learn that language first. Start with with the basics of writing apps, and build from there.
If you have specific questions, feel free to ask.
 
ya im pocking around for tutorials and stuff but have a good basic of thing.if i had a basic template that has the modules build in i can continue the rest..

but open source players are hard to find..
 
ya i have tried it..but the core is ugly..i want to modify the look of it..

if i want to test the app in my emulator it says core is not installed.how can i add an apk to emulator?
 
Oh I see, the client app actually relies on the Core IPTV app being installed.
In that case, I don't think this can be tested on the emulator. You'll need to deploy and test on a real device.
And as for changing the look of the Core IPTV app, that's not possible, unless the developer gives you the source code, or they change it for you.
 
It's in pretty poor shape. There's a missing class called "Login".
Also references to missing resources.
Plus you'll need to download the google-services.json, which can be generated by going to https://developers.google.com/mobile/add
So it needs a bit of work just to get it in a buildable state.

And then looking through the code, it's relying on an external player being installed MX Player, so I don't think this app is a stand alone video player. Is that what you were expecting?
 
nice.ya in android boxes it uses mx player .do that part is ok

for the json i will download and for the class?odd..i will post on the git to se if they will answer. really appreciate your help.
do you have an android box?
 
That Login class does exist in their Git repository, but what I did was just download the zip file. That's not complete.
I think what I'll do is add Github as a source repository, and do a pull request.

I don't have an Android TV Box.
 
Last edited by a moderator:
Works ok in the emulator. Video plays too.

iptv.png
 
Another thing that confused me with this project was that while the app built and ran ok, I was getting red errors highlighted in my code. The way to fix that is to do
File -> Synchronize (or CTLR+ALT+Y)
 
Wow!let me try it out!You rock man.
to bad you don't have a box i would of gave you a month of tv..lol
 
ok..finally got it to run..Git and also needed to download google.jsk file and change the path..

so it loads seems ok in login java file I see commented code for verifying url that is good. I switch it to that.

is this correct?

Java:
http://server.org:83/get.php?username=\" + mEmailView.getText() +\ "&password=\" + mPasswordView.getText() + \"&type=m3u&output=ts"
 
I try it but it always comme's back to login screen .no message saying it is wrong.also changed in the class from search activity to mainActivity since on press it would go to search page..
 
So the next lesson you have to learn is how to debug your code. This will involve running the app in debug mode - It's under the 'Run' menu, or SHIFT+F9. Setting breakpoints at crucial lines will allow you to trace the execution and work out what's happening.
Mastering skills like this is vital if you want to be an effective Android programmer.
 
Back
Top Bottom