Comments (6)
@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.
@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.
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.
We can use this issue to track the interface we described?
from dms.
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.
It looks best if you keep that code for your custom case.
from dms.
Related Issues (20)
- can not serv the flac and mp3 file HOT 1
- BubbleUPnP and DMS HOT 3
- HomeAssistant TorrServe error HOT 1
- dms binary can't be executed in NixOS. HOT 6
- binary: log level configuration HOT 1
- got an SSDP server running in LAN already, so how to disable SSDP listening in dms? HOT 7
- ssdp panic while caltulating delay time HOT 2
- Verbose/Debug output? HOT 3
- broken pipe from ffmpeg when transcoding HOT 3
- old LG stalled subscribe connection went away HOT 3
- Subtitles HOT 1
- Can it cast to Chromecast audio directly? HOT 2
- Samsung TV: Video found but cannot be played (works on minidnla, trace attached) HOT 10
- foobar2k iOS? HOT 1
- Not discovered by LG WebOS HOT 4
- Path must be absolute HOT 5
- docs HOT 1
- grep not works on usage message HOT 4
- how to use ffmpeg instead avconv? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dms.