oxyroid / M3UAndroid

FOSS Player, which made of jetpack compose. Android 8.0 and above supported.
https://t.me/m3u_android
Apache License 2.0
256 stars 26 forks source link

Integrate Xtream support into the M3U player #53

Closed heberjeur closed 4 months ago

heberjeur commented 6 months ago

Is your feature request related to a problem? Please describe.

The current lack of Xtream support in the M3U player limits users' choices and functionality, making it challenging to enjoy content through this platform.

Describe the solution you'd like

I propose the implementation of the Xtream feature in the M3U player, enabling users to access a broader range of channels and enhancing the overall streaming experience. This addition will provide users with more choices and make the app more versatile..

Describe alternatives you've considered

While there are various Xtream applications available, I prefer utilizing an open-source application like yours.

Additional context

oxyroid commented 6 months ago

Could you tell me more about Xtream feature?

sguinetti commented 6 months ago

@realOxy I think it refers to Xtreme Codes. The feature is similar to m3u files but it stands out for being more personalized and private for customer users. It consists of a url server, with username and password for login.

I am not sure how the Xtreme Codes works because I have not seen the official source code of their servers (Xtream UI?). But, as far as I know, it falls back to APIs to deliver the m3u file. I only found documentation on the implementation in the IPTVnator app. https://github.com/4gray/iptvnator/issues/53

oxyroid commented 4 months ago

@sguinetti Hi, where can I find a Xtream link for testing?

sguinetti commented 4 months ago

@sguinetti Hi, where can I find a Xtream link for testing?

Hello again. I find a public repository about this. But, I know about its content because I don't use Xtream links over m3u files. https://github.com/m3u8-xtream/m3u8-xtream-playlist

I tested with IPTVnator. The Xtream mechanism works, you can see the sections. But the streams do not works for me, maybe because they are saturated.

oxyroid commented 4 months ago

The app supports the Xtream from now on. Currently, it will only get the live streams and they are not grouped by catalogs. I will add catalogs and other stream types(vod and series) supports later.

heberjeur commented 4 months ago

@realOxy where I can add URL, user name and password like the screenshot, I can't found it. Screenshot_20240223-195552_Firefox

oxyroid commented 4 months ago

Change the Data Source from M3U to Xtream.

Screenshot_2024-02-24-02-59-18-439_com.m3u.androidApp.jpg

heberjeur commented 4 months ago

Ah yes thanks 😀, Could you add something to indicate to users that there is a menu there? It could be useful from a UX perspective.

oxyroid commented 4 months ago

OK, I will add a down arrow icon here

heberjeur commented 4 months ago

There are something wrong, can you see this video: https://we.tl/t-ANl2yBh3g5 If you want you can send to me a debug apk to known more about that...

oxyroid commented 4 months ago

@heberjeur You didn’t send any video

heberjeur commented 4 months ago

Check this link :

https://we.tl/t-ANl2yBh3g5

oxyroid commented 4 months ago

@heberjeur Please give me the xtream link, you can send it by https://t.me/sortBy

oxyroid commented 4 months ago

Xtream have basically been supported. The VOD and series media type from public xtream url cannot be played currently, please test them by your own xtream url then give me feedback.

heberjeur commented 4 months ago

It works now 🥳

themodfatherinc commented 3 months ago

i am having trouble with this feature. when i input the name, host, username and password, and click subscribe i get the message that it is adding the task however the playlist is never added. do you have any ideas what could be the issue?

themodfatherinc commented 3 months ago

Ok I got this working, the Url parser seems to be forcing the xtream link to be http and i required https, changing the http to https in the function has everything working so it just needs to be changed to keep the scheme instead of default to http.