haku / mediatoad

Minimal media server with DLNA
Apache License 2.0
36 stars 13 forks source link

com.vaguehope.cdsc.CDSCBaseListener doesn't exist #14

Closed nospam2k closed 2 months ago

nospam2k commented 3 years ago

Trying to run from Intellij Idea. No com.vaguehope.cdsc

haku commented 3 years ago

I don't know anything about how IDEA handles Maven plugins, but it sounds like its not invoking antlr4-maven-plugin (which is used to convert the search grammar file into classes).

This is an untested guess, but perhaps https://github.com/antlr/intellij-plugin-v4 might help?

nospam2k commented 3 years ago

My basic interest has been to try and learn how to send an image to a dlna mediarenderer so from what I've learned about DLNA over the past several hours (starting from 0), I realize this project won't help with that so if you want to close this issue or leave it open. I won't have time to work out the problem. Thanks for getting back to me.

haku commented 3 years ago

This project will expose static images as DLNA resources that other devices can browse. But if you want to control a render device and tell it to do something you will also need to implement a control point. After device discovery etc has happened its basically two RPCs: SetAVTransportURI() Play()

Its not a clean example, but I do have another project that does all this, although its more music focused. As a vague starting point, this is its wrapper around the Cling calls: https://github.com/haku/MorriganDLNA/blob/master/com.vaguehope.morrigan.dlna/src/com/vaguehope/morrigan/dlna/players/AvTransportActions.java

nospam2k commented 3 years ago

Haku, I REALLY appreciate this info. What I'm after is I have a DLNA mediaRenderer projector that I just want to send an image to persist on until I change it or stop it. I've figured out the two calls using curl but it didn't show the image (just blipped on the projector. I tried mp4 and png.) so I'll look at your example. For that, I'll take the time to work on making this project work with intellij so let's keep this open. I look into it next week. If there is anything special about persisting an image, I'd appreciate that info. Once we are done, I'll clean up my entries here.

nospam2k commented 3 years ago

Ok, I got it! I found some info on setting the metadata and needed to change image info. I'll come back and look at the previous issue next week. Thanks for pointing me in the right direction with the SetAVTransportURI() and Play() functions.

One other thought... Is it possible rather than passing a url that I can send a data image url like in html?