ttyridal / phpdlna Goto Github PK
View Code? Open in Web Editor NEWUPnP / DLNA server in PHP - use an existing web server as media hub
License: GNU Affero General Public License v3.0
UPnP / DLNA server in PHP - use an existing web server as media hub
License: GNU Affero General Public License v3.0
Hi,
As far as I can tell the php runs ok, but I am struggling to figure out exactly how to use it.
An example would be great, including how to use the debug/logging.
Looks like it could be very useful.
I coded php many years ago, but am only now returning to it, so I am a bit rusty to say the least.
Many thanks
Andy
I have a folders names which appear to be truncated when displayed in the list. Whatever they can be properly opened and content is accessible.
It seems to happen with folder name with a like [ mydomain.com ] my wonderfull folder
because of the point in the square bracket. With such a name the folder appear as [ mydomain
I configured a server on http://dlna.digitalk7.com/phpdlna/rootDesc.xml but it doesn't work. I get strange error messages. I also tried to configure Kodi with this URL but I'm not sure how to do it, never used Kodi as a renderer for such a remote server.
I'm not using the UDP broadcast, I'm simply putting the URL on my UPnP client, which is a procedure that works with other remote-non-broadcast servers.
Is there any debug messages I can send you to help me fix this ?
Thank you in advance
Hi,
Your code is a little confusing. I am trying to use it to implement DLNA in a PHP application that already can handle media. The application will be used on an embedded device, and I want DLNA devices to be able to use it.
I understand how the announcer works, but was unable to see how it is used in the PHP. I'm interested in a PHP library that does what you do, rather than a PHP application.
Can you help?
From the apache logs I can see some clients requesting a truncated URL where there are spaces in the path (resulting in a error), and testing with VLC logs failures for all paths containing spaces (without actually making a server request).
Quick fix seems to be to rawurlencode the path as it assembled in lookup_real_path, and in BrowseDirectChildren which replaces the spaces with %20 and seems to fix the VLC issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.