XIBO .Net Client: Problem with web page (it embeds swf) reloading

Asked by Maurizio Migliore

Hi all,
I have a layout composed in 7 regions. Each region is a xibo web-page and each xibo web-page embeds an SWF and it's html code is something like this:

<html>
<body style="width:100%;height:100%;padding:0px; margin:0px;" >
<object wmode="transparent" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="movie_name" align="middle" style="width:100%;height:100%;">
  <param name="movie" value="Meteo.swf"/>
     <param name=FlashVars value="debug=false&xmlfile=http://url.to.meteo.source" />
  <param name="wmode" value="transparent">
  <embed style="width:100%;height:100%;" src="Meteo.swf" flashvars="debug=false&xmlfile=http://url.to.meteo.source" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>
</body>
</html>

After some hour Xibo client plays this layout, a subset of the 7 regions (sometimes 1, sometimes 2...), is not correctly loaded. In detail, these regions appears empty. Them contain html code but swf is not instantiated.
In fact, if I right click on the region I see the IE context menu and I can view HTML source code.

What's happening?

Do you suggest me to use "Embedded HTML code" instead of "web page" component?

Thanks in advance,
Maurizio.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Maurizio Migliore
Solved:
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

Does the item come back when it is next loaded?

Xibo hands off the web page (and embedded HTML) to IE for rendering... once its handed off we don't have any control over it. Meteo.swf is a local file? referring to web content?

Revision history for this message
Maurizio Migliore (maurizio-migliore) said :
#2

The item comes back only if I restart Xibo. Meteo.swf is a remote resource (it stays on the apache server that exposes html pages).

Anyway, I have done some test and it seems to be always the same swf to go in error. So, I'll continue searching for problem in flash code, maybe the error is there.

I'll keep the community tuned on our tests.

Revision history for this message
Maurizio Migliore (maurizio-migliore) said :
#3

I think I have found the problem:
- During test sessions, I noticed the swf in html region is present but has reduced size so it appears invisible.
- Content of the swf resizes itself depending of stage size. Stage size depends on the size of the div that contains it (style="width:100%;height:100%;").
- XIBO constructs regions dinamically (Dan, is it true?). If flash load div size before XIBO builds html DOM, the result is that swf stage size are wrong.

In fact, adding a timeout (500 milliseconds) to the initialization of swf, it always loads correctly.

To avoid troubles depending on time, I'll instantiate swf by javascript on onload document event.

Revision history for this message
Dan Garner (dangarner) said :
#4

The embedded media type will actually get saved to a temporary HTML file and then loaded all at once (just like a normal webpage).

Potentially.... something I put in 1.3.3 might have broken in (I further embedded in an Iframe so I could offset the page). This will be removed in 1.4.0-rc1.

Anyway - glad you have a workaround in place.