phpdlna icon indicating copy to clipboard operation
phpdlna copied to clipboard

Documentation/Clear Code

Open abiusx opened this issue 7 years ago • 1 comments

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?

abiusx avatar Mar 18 '17 22:03 abiusx

Well, it is basically a library. implement config.php and line 295 and down of cdCtrl.php in your own script and you're more or less ready to go.

The media files are just looked up in the file system (as configured by config.php) and mapped. If you follow that path you should be able to inject the media, as handled by your existing app.

the announcer is a separate application (c++ or python), what it does is to reference clients to the php stuff. It is not used by the php code.

ttyridal avatar Mar 19 '17 19:03 ttyridal