Closed funme closed 3 years ago
Hello, Thanks for raising this. FYI go2tv has not been tested on all TV models. I had some issues for example with some Hisense TVs too. Let me do some digging.
The "controlURL" does not look like a valid URL. This is how it looks on my Sasmsung TV
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<controlURL>/upnp/control/RenderingControl1</controlURL>
<eventSubURL>/upnp/event/RenderingControl1</eventSubURL>
<SCPDURL>/RenderingControl_1.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<controlURL>/upnp/control/ConnectionManager1</controlURL>
<eventSubURL>/upnp/event/ConnectionManager1</eventSubURL>
<SCPDURL>/ConnectionManager_1.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<controlURL>/upnp/control/AVTransport1</controlURL>
<eventSubURL>/upnp/event/AVTransport1</eventSubURL>
<SCPDURL>/AVTransport_1.xml</SCPDURL>
</service>
Edit 1: According to http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf (page 46)
<controlURL>
REQUIRED. URL for control (see section 3, “Control”). MUST be relative to the URL
at which the device description is located in accordance with section 5 of RFC 3986.
Specified by UPnP vendor. Single URL.
Thanks for reply.After a few times test with v1,sometimes it just works,and get stuck in waiting for status ...
sometimes.
Yes, v1 should be the correct one. I'll raise a PR to fix the parsing. As for the "waiting for status ..." it's really up to the device to send the Subscription notifications. I noticed that sometimes devices fail to do so. Please try the following
I noticed similar issus with my Samsung TV when I tried sending a video the second I opened it. It's not a critical issue. Can you please confirm if PLAY/PAUSE actions still work in this case?
pause / play works well.
fixed in v1.5.0
./go2tv -version Go2TV Version: 1.4.0, Build: 20210516093811
./go2tv -l
Device 1
Model: Linux/3.14.29, UPnP/1.0, Portable SDK for UPnP devices/1.6.19 URL: http://172.16.9.84:49152/description.xml
./go2tv -v 1.mp4 Encountered error(s): parse "http://172.16.9.84:49152_urn:schemas-upnp-org:service:AVTransport_event": invalid port ":AVTransport_event" after host
target is an android TCL tv.
edit file go2tv/internal/soapcalls/xmlparsers.go and rebuild (v1)
edit file go2tv/internal/soapcalls/xmlparsers.go and rebuild (v2)
but no video on tv
I read a little document about dlna, found v2 is wrong, i will test v1 later again.