Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation/Clear Code #3

Open
abiusx opened this issue Mar 18, 2017 · 1 comment
Open

Documentation/Clear Code #3

abiusx opened this issue Mar 18, 2017 · 1 comment

Comments

@abiusx
Copy link

abiusx commented Mar 18, 2017

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?

@ttyridal
Copy link
Owner

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.

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

No branches or pull requests

2 participants