Forum Discussion
belltown
10 years agoRoku Guru
"mitchstein" wrote:
request.SetMessagePort(port)
request.SetUrl("http://www.tvbydemand.com/video_update_views.asp?vpath=" & episode.url) (the error appears to be at the &)
what I'm trying to do is add code tothe sample player that will simply call up video_update_views.asp and pass the url of the video being played as "vpath"
there will be no return information back to the roku, just want to be able to update my videos in my database on my website.. figured this should be easy, but I'm missing something very simple.. (probably cause I've been working on this all night (31 hours straight without sleep)..
This might work ('+' is the BrightScript string concatenation operator):
request.SetUrl("http://www.tvbydemand.com/video_update_views.asp?vpath=" + episode.url)
Although you might need to url-escape the query string, in which case try:
request.SetUrl("http://www.tvbydemand.com/video_update_views.asp?vpath=" + request.Escape(episode.url))
EDIT: Looks like Rob beat me to it.