site config problem with specific site

Hi,



working on mpora video playing and I can’t figure out how to get the crop dimensions correct. Here’s a URL I’ve scraped from the site:



http://video.mpora.com/ep/7eBlYgw3A.swf



However, when I use the standard technique to get the crop dimensions (screen shot from the page) the video in Plex is cropped off. It looks like the above URL does a redirection to another, eg:



http://cdn0.mpora.com/mporaPlayer2.1505200…A&site=live



which fills the browser and stays a full browser size when the browser is resized. So, any ideas how I get the real dimensions of the flash windows that I need to use for the site config parameters?



thanks

Jonny

You could set the size to “0” … this will get the correct size from the flash player …



I just looked at the SOURCE of the main page and got this as the size:



[codebox]swfobject.embedSWF(“http://mpora.com/loadres/home/flash/promoplayer.swf”,

“promo-player”,

“915”,

“345”,

[/codebox]



You could also get a screen shot from the main page … when it plays a stream … this will get the correct size & location of e.g. start/stop



Hope this helps.



Robert

Hi Robert,



thanks for the size=0 tip, that helped, at least the videos are displayed whole now, although the seek bar is visible with this approach.



However, the code you highlight actually hits on the real problem. I’ve been looking around a number of the pages on this site and it appears the size of the embedded player is set dynamically and it differs from page to page. Other parameters (eg HD = on) are also set dynamically. So, I guess the real question is how is dynamic sizing dealt with, as it seems to be alien to the site config approach? And a second question would be, how do we set parameters for the embedded player? (or is the answer the same?)



thanks,

Jonny


Best way to deal with it is to use relative coordinates.



height="-20" means “always crop 20 pixels off the bottom”



When you’re clicking, x="-20" means “20 pixels from the left” and y="-10" means "10 pixels from the bottom.

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