Skip to content

DLNA library upgrades#70

Open
jhavens1566 wants to merge 2 commits into
paroj:edgefrom
jhavens1566:API-36
Open

DLNA library upgrades#70
jhavens1566 wants to merge 2 commits into
paroj:edgefrom
jhavens1566:API-36

Conversation

@jhavens1566

Copy link
Copy Markdown

I have been using this as a daily runner on my old API 28 phone and tested with the API levels 26, 29, 32 and 35 via emulator.

Some things that appear to be fixed:

  • MediaStore issues revolving around WRITE_EXTERNAL_STORAGE
  • Repetitive downloading issue
  • DLNA Cast now works
  • Other random issues may have been fixed as result that I cant remember right now

If there are any regressions please let me know and I'll commit fixes to this branch on my fork.

@paroj

paroj commented Aug 4, 2025

Copy link
Copy Markdown
Owner

can I force push to your branch here - or would resolving the merge make it difficult for you?

if(mediaRouteItem != null) {
MediaRouteButton mediaRouteButton = (MediaRouteButton) MenuItemCompat.getActionView(mediaRouteItem);
mediaRouteButton.setDialogFactory(new CustomMediaRouteDialogFactory());
//mediaRouteButton.setDialogFactory(new CustomMediaRouteDialogFactory());

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is commenting this out intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented it out since it had no visual effect on the theme which I think was the whole reason behind the class. But it did however prevent proper handling of touch events outside the dialog from closing it. I can put it back if you want but the stock API seems to follow the theme anyways, maybe something that was added.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah.. I see. If none of this is needed, we can probably remove all of the related code, no?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup I think so, unless additional implementation was planned, at this point Proguard is probably minimizing it out.

@jhavens1566

Copy link
Copy Markdown
Author

can I force push to your branch here - or would resolving the merge make it difficult for you?

I believe that would work fine for me, I have your remote and mine in my local repository so we could work on a like named branch across both forks and I could merge there. There are many ways to do it so however you feel is best works for me.

@jhavens1566

jhavens1566 commented Aug 5, 2025

Copy link
Copy Markdown
Author

I just added you as a collaborator so you can just add my remote and commit to the API-36 branch and they will show up here. That should prevent a potential history loss as with a force push. I could just hold off on any commits until you force push if you're more comfortable with that.

@paroj

paroj commented Aug 10, 2025

Copy link
Copy Markdown
Owner

I restructured your commits and merged the ones that do not require bumping minSdk.

I would probably do another patch release before bumping minSdk with 5.7.0.

Going to test the committed version for a few days now.

@jhavens1566

Copy link
Copy Markdown
Author

Sounds good, I'll stay hands-off in this branch for now since I'm not sure what state it's currently in. I think the API bump was required for the new Jetty, which seemed to help DLNA a lot.

paroj and others added 2 commits August 12, 2025 23:26
Updating libraries seemed to get DLNA working correctly, added jetty.server dependency as recommended by the jupnp website. Note: Jetty 9 must be used and has been updated to require MinSdkVersion to be changed to 26, this only seems to effect 1.4 percent of users based on apilevels.com
@paroj

paroj commented Aug 12, 2025

Copy link
Copy Markdown
Owner

right. merged the API level 36 commit to. Now there is only the minSdk + library update left here.

unfortunately I dont have any DLNA renderer to test with. Do you know something that can be installed on android/ linux?

@paroj paroj changed the title API level 36 and library upgrades DLNA library upgrades Aug 12, 2025
@jhavens1566

Copy link
Copy Markdown
Author

I think YAACC on fdroid should handle rendering. Also Kodi can do it, but takes a while to show up.

Jetty required minsdk to be raised for me but that was only when I depended on the latest Jetty 9 as recommended by Jupnp. Possibly Jetty 9 2018 works but I didn't test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants