2011-09-06, 00:12
To all addon developers that need ustream. This is how to get the stream url:
Taken from a SportsDevil config file:
Take care that the 'stream' part of the url doesn't end with a slash.
Have fun!
Taken from a SportsDevil config file:
Code:
########################################################
# Ustream.tv - Videos
########################################################
item_infos="(http://www.ustream.tv/channel-popup/([^"]+))"
item_order=tmpUrl|channel
item_info_name=rtmp
item_info_from=channel
item_info_convert=getInfo('http://cgw.ustream.tv/Viewer/getStream/1/%s.amf','.*(rtmp://ustream.+?)\x00.*')
item_info_build=%s
item_info_name=stream
item_info_from=channel
item_info_convert=getInfo('http://cgw.ustream.tv/Viewer/getStream/1/%s.amf','.*streamName\W\W\W(.+?)[/]*\x00.*')
item_info_build=%s
item_info_name=swf
item_info_from=tmpUrl
item_info_convert=getInfo('%s','.*movie:\s*"([^"]+)".*')
item_info_build=%s
item_info_name=url
item_info_from=rtmp + stream + ' swfUrl=' + swf + ' swfVfy=1 live=true pageUrl=' + tmpUrl
item_info_build=%s
item_info_name=title
item_info_from=url
item_info_build=Ustream - %s
item_info_name=type
item_info_build=direct.video
item_url_build=%s
Take care that the 'stream' part of the url doesn't end with a slash.
Have fun!