setAVTransportURI and Play actions sequences

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

setAVTransportURI and Play actions sequences

James_Carr
Hi Christian!
I am developping a control point on my android phone.
My problem is that on my phone, if I execute setAVTransportURI action and Play action after, i can display my image item on a MediaRenderer. But on my phone when i go back and select another item, and send it throught setAVTransportURI and play action, one of the actions fails or both succeed but the image on the renderer never changes.
at the setAVTransportURI  action failure, i receive this message :
Error: Current state of service prevents invoking that action. Connection error or no response received.
although i notice in the AVTransport service spec that the action setAVTransportURI  doen't have any state dependency.
Thanks for your help.
Reply | Threaded
Open this post in threaded view
|

Re: setAVTransportURI and Play actions sequences

Christian Bauer
Administrator
First, you need to enable debug logging.

Now if Cling says "Connection error or no response received" that means your mediarenderer device didn't even accept the HTTP/TCP connection or that Cling could make the connection but didn't receive any response data within the read timeout period.
Reply | Threaded
Open this post in threaded view
|

Re: setAVTransportURI and Play actions sequences

James_Carr
Hi!
Thanks for your help. In fact I enable the debug logging. And i noticed that any time that one of my actions failed, i receive this message for example :
======================= SOAP BODY BEGIN =====================================
 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
 <s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
 <InstanceID>0</InstanceID>
 <CurrentURI>http://192.168.0.137:8088/geturl/tulips.jpg.jpg%3ftype%3dimage%252fjpeg%26url%3dfile%253a%252f%252fc%253a%252ftemp%252fmediacontent%252fpictures%252f%26title%3dTulips%26ext%3d.jpg</CurrentURI>
 <CurrentURIMetaData></CurrentURIMetaData>
 </u:SetAVTransportURI>
 </s:Body>
 </s:Envelope>
 -=================== SOAP BODY END =============================
03-02 10:38:49.643: DEBUG/STREAMCLIENT(14815): CLIENT CONNECTION WAS ABORTED: THE OPERATION TIMED OUT
03-02 10:38:49.649: DEBUG/StreamClient(14815): Preparing HTTP request message with method 'POST': (OutgoingActionRequestMessage) POST http://192.168.0.137:50345/AVTransport/96567b60-cead-100d-0562-4e22e5e8984c/control.xml
03-02 10:38:49.649: DEBUG/StreamClient(14815): Preparing HTTP request entity as string
03-02 10:38:49.649: INFO/System.out(14815): SetAVT  :Error: Current state of service prevents invoking that action. Connection error or no response received.
------------------------------------------------------------------------------------------------------------------------------------------------

So the problem is timed out operations. How can i handle this problem cause i cannot move forward without solving this.
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: setAVTransportURI and Play actions sequences

Sandeep
How to enable debug logging as i am also facing the same issue please help me