If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

site config problem with specific site

jwrayjwray Posts: 1,268Members, Plex Pass Plex Pass
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

Comments

  • rniornio Posts: 162Members
    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
  • jwrayjwray Posts: 1,268Members, Plex Pass Plex Pass
    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

    rnio wrote on Jun 16 2009, 04:43 AM:
    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
  • elanelan CTO and Co-founder MauiPosts: 9,397Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    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.

    instagram @elan // the wife's photography site.
    the Medium page // the dog's twitter feed.

Sign In or Register to comment.