Skip to content

Instantly share code, notes, and snippets.

@jk0
Created September 24, 2012 14:19
Show Gist options
  • Save jk0/3776176 to your computer and use it in GitHub Desktop.
Save jk0/3776176 to your computer and use it in GitHub Desktop.
@route("/video/amazoninstantvideo/playvideo")
@indirect
def PlayVideo(url):
try:
flash_vars = utils.parse_flash_vars(url)
rtmp_url, clip_stream = utils.prepare_rtmp_info(flash_vars)
except KeyError:
return MessageContainer("Error", "Unable to load video.")
oc = ObjectContainer()
oc.add(VideoClipObject(key=RTMPVideoURL(url=rtmp_url, clip=clip_stream)))
return oc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment