cybergarage / cybergarage-upnp

cybergarage-upnp is a development package for UPnP™ developers. cybergarage-upnp controls these protocols automatically, and supports to create your devices and control points quickly.
http://www.cybergarage.org/
BSD 3-Clause "New" or "Revised" License
386 stars 145 forks source link

Can't play video for some tv #10

Open LozariaVinok opened 9 years ago

LozariaVinok commented 9 years ago

Hi! For some tv i can't play video. This happened because services sometimes include full path for SCPDURL, sontrolURL, eventSubURL and sometimes include path relative of description file path. Description file path: /dmr/ddd.xml

urn:schemas-upnp-org:service:AVTransport:1 urn:upnp-org:serviceId:AVTransport /dmr/sdd_2.xml /dmr/control_2 /dmr/event_2

Can you help me? Log: 11-19 13:42:29.571: I/System.out(28780): CyberGarage warning : java.io.FileNotFoundException: /dmr/sdd_2.xml: open failed: ENOENT (No such file or directory) 11-19 13:42:29.571: I/System.out(28780): org.cybergarage.xml.ParserException: java.io.FileNotFoundException: /dmr/sdd_2.xml: open failed: ENOENT (No such file or directory) 11-19 13:42:29.571: I/System.out(28780): at org.cybergarage.xml.Parser.parse(Parser.java:107) 11-19 13:42:29.571: I/System.out(28780): at org.cybergarage.upnp.Service.getSCPDNode(Service.java:392) 11-19 13:42:29.576: I/System.out(28780): at org.cybergarage.upnp.Service.getSCPDNode(Service.java:441) 11-19 13:42:29.576: I/System.out(28780): at org.cybergarage.upnp.Service.getActionList(Service.java:471) 11-19 13:42:29.576: I/System.out(28780): at org.cybergarage.upnp.Service.getAction(Service.java:490)

wypx commented 8 years ago
Service devService = dev.getService("urn:schemas-upnp-org:service:WANIPConnection:1");
                            devService.setSCPDURL("http://192.168.31.1:5351/WANIPCn.xml");
                            Action addPortAct = devService.getAction("AddPortMapping");

I use this way to solve it . but not the best. the path relative of description file path should be pasered in the library anyway.

ximencx commented 7 years ago

i have some question , @wypx @cybergarage video source is hls stream,how to solve it?

jametang commented 6 years ago

I have the same problem!