Post Tue Jul 31, 2012 4:09 pm

[Help Needed] New Ustream beta Url extraction

Help needed!

I am attempting to develop an enhanced groovy for Ustream to support their new beta version which provides menus of live and recorded events.
The live event streams can be accessed directly using the logic in the recently published ustream.groovy, or that previously published for accessing ustream sourced events in hahasport.groovy.

The problem is the recorded events. I can obtain the vid number (vid=nnn), similar to the cid number for live events, and I can play any vid in the browser using the .htm code below which extracts the vid from the .htm filename hence recorded24089674.htm will play an Elton John video while recorded24178671.htm will play a London Eye video all using the same .htm code.

I can also get the thumbnail from the source for each video http://www.ustream.tv/recorded/nnn
  Code:
http://static-cdn1.ustream.tv/i/video/picture/0/1/24/24089/24089674/1_11588704_24089674,192x108,b,1:2.jpg
http://static-cdn2.ustream.tv/i/video/picture/0/1/24/24178/24178671/1_4717475_24178671,192x108,b,1:2.jpg

By sniffing I can get the stream urls for these files as below which contains the same modifiers as the thumbnails but I cannot figure out how to access the base urls from the htm code.

Can anyone help me?
  Code:
Elton = http://upmv05.gblx.upmv.ustream.tv/0/1/24/24089/24089674/1_11588704_24089674.flv
London Eye = http://vodp20.ustream.tv/0/1/24/24178/24178671/1_4717475_24178671.flv

  Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
<head><title>Ustream.Tv</title><link rel="shortcut icon" href="http://static-cdn1.ustream.tv/static/images/favicon-blue:1.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="robots" content="INDEX, follow" />
<meta name="description" content="Ustream.Tv: Live streaming and video" /><link rel="stylesheet" type="text/css" href="http://static-
cdn2.ustream.tv/static/packed/embed:13433139871.css" /><script type="text/javascript" id="UstreamExposedVariables">if (!window.ustream) ustream = {};if (typeof ustream.vars == 'undefined') ustream.vars = {};ustream.vars.viewerSwf="http:\/\/static-cdn1.ustream.tv\/swf\/live\/viewer:66.swf";
</script><script type="text/javascript"></script></head><body id="Embed_Index" class="v3 ustream context-live lang-en-US ">
<!-- Embed_Index --><div id="EmbedViewer"></div><script type="text/javascript" src="http://static-cdn2.ustream.tv/static/packed/l10n/en_us/embed_build:13433140111.js"></script></body></html>