Hi,
I’m running into a problem when I sometimes update the current position or add to instant queue of a movie in my channel and the movie’s XML file ends up empty. It seems that some the Roku will not wait for the response that the file has been updated and closed before moving on. I’m updating the current position and instant queue via Java Servlets. I call a function that passes the values to the Java Servlet…
conn = CreateObject(“roAssociativeArray”)
conn.UrlUpdate = “http://” + solrIP + “:8080/UpdatePosition/UpdatePosition?type=” + videoType + “&directory=” + movieTitleForUrl + “&position=” + startTime.toStr()
http = NewHttp(conn.UrlUpdate)
rsp = http.GetToStringWithRetry()
After the response (rsp) statement, the function ends. Are there any suggestions as to how (code) the channel can wait and detect a response back from the server through the servlet, allowing the XML file update to finish and not empty?
Thanks,
Kevin
