Android application for live streaming. Source is taken from https://github.com/iptv-org/iptv using jsoup and m3u parse in realtime.
bachors / iptv-android Goto Github PK
View Code? Open in Web Editor NEWIPTV Android
License: MIT License
IPTV Android
License: MIT License
Android application for live streaming. Source is taken from https://github.com/iptv-org/iptv using jsoup and m3u parse in realtime.
First of all, great work..
i'm facing a issue, After selecting a specific country, the application crashes when you click the refresh button on the taskbar.
Hi
Thanks for sharing the app
How can i add the channel list to the app, i tried using a m3u file in the root and app folder.
Thanks in advance
The playlist parsing is missing several channels and throwing errors.
This should be a pull request, but here it goes:
PlaylistActivity.java:
private String parse_tvg(String line, String tvg_type){
List<String> matchList = new ArrayList<String>();
try {
Pattern regex = Pattern.compile(tvg_type+"=\"(.*?)\"", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE | Pattern.MULTILINE);
Matcher regexMatcher = regex.matcher(line);
while (regexMatcher.find()) {
matchList.add(regexMatcher.group());
}
} catch (PatternSyntaxException ex) {
// Syntax error in the regular expression
}
if ( matchList.isEmpty() ){
return "";
}else {
return matchList.get(0);
}
};
@Override
protected void onPostExecute(Void result) {
super.onPostExecute(result);
loading.dismiss();
stream = stream.replace("#EXTM3U", "");
String[] linesArray = stream.split("#EXTINF:-1");
linesArray = Arrays.copyOfRange(linesArray, 1, linesArray.length);
JSONArray ar = new JSONArray();
for (String currLine : linesArray) {
Log.e("IPTV", currLine);
JSONObject ob = new JSONObject();
try {
String[] channel = currLine.split("\n");
String url = channel[1];
String name = channel[0 ].split(",")[1];
String logo = parse_tvg(currLine, "tvg-logo");
ob.put("url", url);
ob.put("name", name);
ob.put("logo", logo);
ar.put(ob);
} catch (Exception fdfd) {
Log.e("Google", "Error: " + fdfd.fillInStackTrace());
}
}
goJson = ar.toString();
sharedPrefManager.saveSPString(SharedPrefManager.SP_CHANNELS, goJson);
Intent intent = new Intent(mcon, ChannelsActivity.class);
intent.putExtra("title", allData.get(key).getTitle());
startActivity(intent);
}
It would be nice if this app can be added to https://f-droid.org
Can I load my play list in this app?
after i complete apk from android studio and install app there is msg virus Evo-gen????
Hello,
Can anybody tell me how can I update the list and ad my personal m3u?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.