androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.71k stars 408 forks source link

Enhancing Media3 Demo App: Automatic Removal of Invalid Media Items #1881

Open pooya-mohammadhossein opened 1 day ago

pooya-mohammadhossein commented 1 day ago

Subject: Enhancing Media3 Demo App: Automatic Removal of Invalid Media Items

I propose a valuable enhancement for the Media3 Demo app to improve its user experience and resource efficiency: Implement a background service or scheduled task to periodically check the HTTP status of media items listed in the Android Assets folder. If a media item's associated URL is found to be inaccessible (e.g., returns a 404 or other error code), and the item hasn't been played recently, remove it from the list of available media items. Rationale:

marcbaechinger commented 8 hours ago

Thanks for your suggestion. The purpose of the demo app for us is that it is a demo app. While your suggestions sound like an interesting project, I don't think we would get to do that for the demo app as it meets our current requirements of having a catalogue of items to test with. The demo app isn't intended to be a blueprint for productive apps I'm afraid. While we think that the implementation of the PlayerView is very solid and demonstrates a stable way of integrating a playback activitvy into Android, we don't aim for the demo app having productive user experience features like the ones you are listing.

I'm sorry if there are stale samples that don't work. This is mainly due to the wide range of supported formats of the player and that we don't have self-hosted samples for all of these. So we link to external resources that we do not control. If you are annoyed by these, we happily accept pull requests that remove these from the '.exolist.json' file when they are constantly not available.

pooyair commented 4 hours ago

Sigh! If it's interesting project then let's also other senior Engineer same as us have a chance to share their idea on this topic. Please also consider, Most Senior Android Developers would developing their IPTV etc android app base on Media3 Demo Project including myself which I significantly have developed the Media3 Demo Apps for a long time and I have just developed this android app for my parents personal usage. so as mentioned in the first post still I believe there are still more ways to Media3 demo which can provide a more reliable and user-friendly experience for all users and developers.if anyone has any questions or concerns still they could let me know. Bye!