Jump to content

How to Customize Dlna Server


Recommended Posts

Posted

You should enter at least one criteria in the Identification section, and at least one in the http headers section (also under Identification). The values you should use can be found in the log. Using manufacturer and/or model name is the most common.

Richard Branches
Posted
6 hours ago, beckfield said:

Don't just play a song. I don't think that will create the log entry you need.  Turn the receiver off, then on, and let it establish connection with the Emby server.  Grab the log file after that.

I still see the same result in the new log.

embyserver.txt

6 hours ago, Happy2Play said:
Source Ip: ‌‍‍192.168.18.208‌, UserAgent: dLeyna/0.5.0 GUPnP/0.20.13 DLNADOC/1.50

This is the receiver.

beckfield
Posted

Richard, your original post mentioned that you are trying to do this for an Onkyo receiver, is that correct?  None of the log files you've provided even mention Onkyo, which I would expect to see if the Onkyo successfully established a DLNA connection to the Emby server.

I'd like to have you follow these steps precisely to see if we can get what we need.  Sorry if this is overly specific, but I want to be sure we are getting precisely what we need:

  1. Turn the Onkyo off.
  2. On your Emby server, on the DLNA Settings page, UNcheck the "Enable DLNA debug logging" option and click "Save."
  3. On the Logs Settings page, set the "Enable debug logging" to "Yes."
  4. Turn the Onkyo on. Go to the DLNA area and select the Emby server, so you see the libraries.
  5. On the Emby server, go to the Logs page, refresh the page to be sure you see the latest log file, and download the "embyserver.txt" file at the top of the list.  It should have a timestamp of the last minute or so.
  6. Attach that log file for us to see.

If you've created a custom DLNA profile for the Onkyo, please screenshot the contents of the profile, including the contents of the "Identification" section.  We don't need the sections below Identification.

Richard Branches
Posted

I've been doing what you suggest but I still don't see anything about onkyo in the log.

embyserver.txt

Anyway, we should be able to see all available DLNA devices in the server's UI and customize each one independently without having to do all this which seems to be a hassle, it doesn't make it an easy task for non-tech people.

beckfield
Posted

I'm afraid I'm at a loss.  I don't understand how the Onkyo is connecting to the Emby server and not getting logged.  Without that, I don't know where to go from here.

Maybe the Emby folks can provide some insights.

Happy2Play
Posted

Something does seem right but you can create a Onkyo profile with the user-agent.

dLeyna/0.5.0

 

Richard Branches
Posted

Ok so I'm trying to create the profile and I see that the identification header is different than the one @beckfieldshows in the instructions he created, I see more fields, can you please clarify what should I put in each one?

Richard Branches
Posted

What should I put here?:

image.png.5f005285f59afc6bb8429d544cb36c20.png

Happy2Play
Posted

Your client is not providing that info per your logs so all you can do is the info you have available ie the useragent.

Just like in your case (per step 7) it is UserAgent not User-Agent per your log.

Richard Branches
Posted
1 hour ago, Happy2Play said:

so all you can do is the info you have available ie the useragent.

I know but in which field should I put it?

Happy2Play
Posted
1 minute ago, Richard Branches said:

I know but in which field should I put it?

As beckfield has already shown in linked topic but

Click create profile

image.png.cb89c5632338fba257a542c1e6e454f0.png

Give it any name you like

image.png.589685f3508d688d566cec9af33b1230.png

Go to Identification and apply your UserAgent

image.png.5f7cb2a8a531cc7e46877205aec37adb.png

As for match it depends on if you enter everything or a partial string.

In my case was a partial string so I used Substring Match

image.png.0cc78e7e6c122bf9298f70b54df25436.png

Hit Save

Restarted DLNA server

Launched client

2025-06-21 13:16:41.777 Debug DLNA: Found matching device profile: VLC Profile

Now editing all capabilities is really another story and don't believe the UI is really that helpful sometimes.  But will want to look at other profiles to modify playback capabilities.

Custom profile location

image.png.cc444dd8e5ab68f42745b7f8b32636d6.png

 

 

 

Richard Branches
Posted
1 hour ago, Happy2Play said:

Go to Identification and apply your UserAgent

image.png.5f7cb2a8a531cc7e46877205aec37adb.png

I don't see this anywhere, just the fields in the screenshot I shared earlier.

beckfield
Posted (edited)

At the bottom of the Identification section, click on the '+' next to "HeaderHttpHeaders":

image.png.d6e668bac91bc2e58fc4bd02c793bc65.png

Edited by beckfield
  • Agree 1
Happy2Play
Posted
6 minutes ago, Richard Branches said:

I don't see this anywhere, just the fields in the screenshot I shared earlier.

Did you click the + button?

image.png.985247608bf330375c63e6018a696d20.png

Richard Branches
Posted

That single step is not explained in @beckfield's instructions shared by @Happy2Playhence why I couldn't find it.

Should I put the whole string dLeyna/0.5.0 or just dLeyna ?

Richard Branches
Posted

Sorry for asking too much but I feel like a newbie:

What should I put in name and what should I put in value?

What is the "match type" for?

Happy2Play
Posted
1 minute ago, Richard Branches said:

That single step is not explained in @beckfield's instructions shared by @Happy2Playhence why I couldn't find it.

Should I put the whole string dLeyna/0.5.0 or just dLeyna ?

LOL Step 6

image.png.72d2605926ff7e5ade92d1a01052bd28.png

But I would test but probably just dLeyna and match Substring.

Richard Branches
Posted

I'm so blind right now 🥴

beckfield
Posted (edited)

Following Happy2Play's advice:

image.png.b4c5b0a88623e8bb3a5cea07d412c7e3.png

I probably should have added an extra screenshot on that step.  Unfortunately I can't edit the post anymore.

Edited by beckfield
beckfield
Posted

The Match Types determine whether the content in the Value field is the complete string ("equals") or partial ("Substring").  "Regex" tells me that Regular Expressions can be used, but I can't imagine why that would ever be needed (and I couldn't help you with it anyway).

I have to agree, this whole process is far from user-friendly.  But this (Emby) is also my first experience with DLNA in any detail.  I'm fairly tech-savvy, but not a code writer, so I have no idea how much easier it could possibly be.  I'd guess there's a fair amount of room for improvement.

Richard Branches
Posted

It appears it doesn't have any effect, I still see all media libraries despite I only check the audio checkbox:

image.png.0906c173d16cdd7c4e7b80f5e41d701b.png

image.png.a8c9830381ac8f75b82c25ee6a5950ba.png

beckfield
Posted (edited)

Ok, that brings us to the post I added in this thread, after they referred you to the steps I wrote.  That setting (Supported Media Types) doesn't have the effect you (and I) thought it would.

What you need to do next is to create a new User that will be used for your DLNA device.

  1. In Settings > Users, click on "+ New User":
    image.png.920638f0a168908d42de9b12e19a3962.png
     
  2. Give this new user a name of your choice.  I called mine "dlna Devices," but it can be whatever you want (other than "Richard," obviously): image.png.7605912f2229173647d4d2ba5a1f3e9f.png
     
  3. I don't think any other settings on the Profile page are relevant, so leave them alone, and click on the "Access" tab: image.png.ce28d82c5ee80297f01297842c29a6c1.png
     
  4. Here, leave "Enable access to all libraries" disabled, and de-select the libraries that you don't want to see on the Onkyo.  "Playlists" seems to be selected and unchangeable, so you won't be able to hide that.
  5. Click 'Save.'
  6. Back in your Custom DLNA Device profile, drop down the "User Library" list.  You should see the name of the new User you just created.  Select it, and click "Save."
    image.png.a1fe4ac1dc1f2863ea81023eb656fa73.png
     
  7. Allow the Onkyo to re-establish connection to the Emby server, and you should see only the libraries you selected in step three.
    image.png
Edited by beckfield
beckfield
Posted (edited)

I just noticed something in your last post. Your screenshot shows that you used "Match Type" of "Equals," rather than "Substring" in your HttpHeader, as Happy2Play instructed:

image.png.a8c9830381ac8f75b82c25ee6a5950ba.png

Edited by beckfield
Richard Branches
Posted

I tried all three options but didn't see any difference.

beckfield
Posted

Did you create the User?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...