Slightly complicated streaming

Hi,



I have some slightly complicated streaming requirements and I was wondering if there was any way to improve the user experience.



I have a set of urls and titles. Each url represents one video file but it is slightly time consuming to convert the url I have to the final url from which I can download the videos. When I have the video url I have to wait a certain amount of time before I can download it (currently 45 seconds). Currently this is implemented as below but there are a number of drawbacks.


  1. For some reason get_stream is being executed twice. This doubles the amount of time waited.
  2. Sometimes the process for converting the url to a video url requires entering a captcha. Is this possible with Plex?
  3. It would be nice to give the user some feedback/distraction while they wait for 45 (or as it is now 90) seconds. Is that possible with Plex?



    Number 1 is pressing issue for now but anything that could help the overall experience would be helpful too.

    Thanks for your time.



<br />
<br />
mc = MediaContainer( viewGroup = "/video/blah" )<br />
mc.Append( Function(<br />
	              VideoItem(<br />
			             get_stream,<br />
				     title = title<br />
			        ),<br />
			title = title,<br />
			url = url<br />
		)<br />
	)<br />
<br />
def get_stream( sender , title , url ):<br />
<br />
	Log( "Title = " + title + "Url = " + url )<br />
<br />
	# work out the url to stream<br />
<br />
	time.sleep(45)<br />
	return Redirect(stream_url)<br />


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.