it's pretty easy. make following http request to the server.
Code:
http://embed.livebox.cz/iprima/player-embed.js?__tok706919090__=681090310
highlighted numbers can be anything random. set the referrer for above request to
Code:
http://www.iprima.cz
it will return a javascript which contains rtmp address and token. playpath is embedded directly in video page.
sample JS:
Code:
http://pastebin.com/ZR2sx6Uh
sample playpath:
Code:
var embed_hereb32595d91ab534126210c280bb42bb6c = {
'dom_id':'embed_hereb32595d91ab534126210c280bb42bb6c',
'width': width,
'height':height,
'hq_id':'Prima-1203122002-15579_1000.mp4',
'lq_id': 'Prima-1203122002-15579_500.mp4',
'iph_id':'Prima-1203122002-15579.smil',
'section':'zpravy',
'thumbnail': 'Prima-1203122002-15579_1500_Thumb.jpg',
'zoneGEO': 0,
'st_date':'2012-03-12T19:00:00',
'name': 'VIP zpr??vy 12.3.2012',
'autoplay': false,
'topcat': 'topcat',
'player': 'player',
'online': 'online',
'relevant': 'relevant',
'new': 'new',
'top': 'top',
'url': 'url',
'channel': window.channel,
'like': 50,
'unlike': 50
};