parser m3u file using java in android studio

谁都会走 提交于 2019-12-08 03:52:56

问题


i am looking to parser m3u file in java. channel name then its link I've googled for this but unable to find solution. m3u file looks like this:

#EXTM3U
#EXTINF:-1,VIP AR: Bein Max 1 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9589.ts
#EXTINF:-1,VIP AR: Bein Max 2 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9590.ts
#EXTINF:-1,VIP AR: Bein Max 3 HD
http://portal.onlineiptv.net:5210/live/Jyw2SMYjxe/9591.ts

i want to show the details like this:

ChannelCategory - ChannelName
Url of that channel 

i have a working code but in that i'm unable to fetch channels links


回答1:


You can parse M3U file in C# using Regular expressions & in Java you can do same Or create custom Parser.

https://github.com/sajjad0321/iptv



来源:https://stackoverflow.com/questions/41823429/parser-m3u-file-using-java-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!