I bumped upon this issue after having the error 303: Failed to load a resource: Unable to load resources: Error #2036 (which is solved - guess the path of my background-image in the Canvas properties of Flowplayer3 wasn't right - so I emptied that field - after upgrading to the newest version of the SWF Tools module and all Flowplayer3 swf's in the sites/libraries-folder).

The problem was that when I saved the page, the video (and thumb) would appear just fine. But when I navigated to the page or refreshed that page it was suddenly gone. In my console I found these errors:

Error: uncaught exception: Flowplayer cannot access element: swftools-4d9d951009975

Error: $f(playerID) is null
Source: http://domain.com/sites/all/modules/swftools/flowplayer3/swftools_flowpl...
Line: 58

The reason was that the script was loaded in the header apparently. By default the Javascript placement in SWF Tools' Embedding settings (admin/settings/swftools/embed) is set to "Body".

I switched this to "Header" - something I shouldn't have done. After searching all the way around I eventually find out that this was the culprit for the behaviour described above. I switched it back to "Body", which solved the problem.

Just posting this in case someone else would run into this.

CommentFileSizeAuthor
JavaScript placement6.82 KBknalstaaf

Comments

knalstaaf’s picture

Also make sure that the domain is set up correctly in the swftools_media_url-variable if applied (located in settings.php).

 $conf = array(
#   'site_name' => 'My Drupal site',
#   'theme_default' => 'minnelli',
#   'anonymous' => 'Visitor',
  'swftools_media_url' => 'http://domain.com', // No trailing slashes!
);

Don't forget to flush your cache after adjusting.