Giter Site home page Giter Site logo

Comments (6)

kksharma1618 avatar kksharma1618 commented on July 17, 2024 1

@anacrolix
Thanks. Still not sure which route we want to go with. Currently we are using fuse api to mount our structure as a folder, and using dms on top of it. Don't know how stable that is especially on windows.

from dms.

kksharma1618 avatar kksharma1618 commented on July 17, 2024 1

@anacrolix
Regarding your previous comment "and allow for replacing or adding new locations"
I was checking your ./dlna/dms/cd-service-desc.go file.
You are specifying actions like CreateObject, DestroyObject, UpdateObject, MoveObject, ImportResource. But I dont see any implementation for them in the code. If we develop an interface, would it have to support those features.

from dms.

anacrolix avatar anacrolix commented on July 17, 2024

This would be a welcomed feature. You would need to distil the current filesystem related stuff as an interface to provide for abstracting out the current stuff, and allow for replacing or adding new locations.

from dms.

anacrolix avatar anacrolix commented on July 17, 2024

We can use this issue to track the interface we described?

from dms.

kksharma1618 avatar kksharma1618 commented on July 17, 2024

Sure. actually I have a working fork at https://github.com/kksharma1618/dms
master...kksharma1618:master
Which is good enough for our particular use. Instead of adding interface, I just added an argument "-contentProviderServer". I am providing url to our own backend there.
Then in dlna/dms/cds_server.go file, I am pulling content from that api.
That apis provides folders/items data as contentProviderServerItem struct. Which I transform into upnp.Object in Browse action.
That api also provides icon/media url. dms just proxies it.

Basically, "contentProviderServer" provides api endpoint with:
/browse?id={objectid}
-- gives array of children for root -> []contentProviderServerItem{}
-- item for media has thumbnail/media url set.

dms proxies thumbnail/media content from the provided url (I dont want to open up my app server on 0.0.0.0)
(dms.go serveCdpProxy)

I am not that familiar with golang, so code is probably pretty bad. But atleast works for our custom case.

from dms.

anacrolix avatar anacrolix commented on July 17, 2024

It looks best if you keep that code for your custom case.

from dms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.