'Error with xml generation by the swftools_swf module' is the main error im getting now. Why? there is a playlist folder... and a playlist is being generated? if it's the path, i'm not sure how to fix it. i'll attach a screenshot of my dir structure

Followed the elliott rothman (drupal school) vid on swf tools to the letter, and here's where it deviates from the norm:

I downloaded the (new?) JW flash player (v3.99), put it in shared, renamed the folder (to 'flash_media_player') and the file (to 'mediaplayer.swf')

Does this have anything to do with the issue at all? Here is the flash player, output in Firebug below... I've done a lot of module tests, this is the first one i havent been able to put my finger on yet.

<object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="sameDomain" name="allowScriptAccess"/>
<param value="http://drupal5test:8888/drupal5/sites/8888.drupal5test/files/playlists/7fa8da9d09c6747c03779d2370f8f378.xml" name="movie"/>
<param value="opaque" name="wmode"/>
<param value="#FFFFFF" name="bgcolor"/>
<param value="showall" name="scale"/>
<param value="autohigh" name="quality"/>
<param value="l" name="align"/>
<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" salign="tl" base="http://drupal5test:8888/drupal5/sites/8888.drupal5test/files" name="" play="true" menu="false" loop="false" quality="autohigh" scale="showall" bgcolor="#FFFFFF" wmode="opaque" src="http://drupal5test:8888/drupal5/sites/8888.drupal5test/files/playlists/7fa8da9d09c6747c03779d2370f8f378.xml" swliveconnect="default"/>
</object>
CommentFileSizeAuthor
directory_img.png139.71 KBaterchin

Comments

dpancake’s picture

have you solved this? I am having the same problem. I thought perhaps downloading an older version of mediaplayer.swf might work but, alas, to no avail.

aterchin’s picture

not yet...

aterchin’s picture

Another note: opened up the playlist in text edit and there's no info even written to it.

djudjublondin’s picture

It seems to me that I am facing the same issue. I have also followed drupal school video and tried different configuration for swftools with no success ! I also tried example at emspace.com.

I am still searching aswell.

Djul

djudjublondin’s picture

It seems to me that I am facing the same issue. I have also followed drupal school video and tried different configuration for swftools with no success ! I also tried example at emspace.com.

I am still searching aswell.

Djul

aterchin’s picture

nothing yet. would love to use this player but i'm still an infant understanding php in the modules.
would love my swf tools testing to be productive eventually. :)

I get this message on preview:

warning: strpos() [function.strpos]: Empty delimiter. in /Applications/MAMP/htdocs/drupal5/sites/all/modules/swftools/swftools.module on line 880.

and this message on submit:

Error with xml generation by the swftools_swf module.

rdavl’s picture

Have you checked the generated XML playlist file?

it seems to me that generated path to file directory is wrong,

This is what i get in it: http://localhost/~rdavl/drupal/files/files/video.flv
but should be: http://localhost/~rdavl/drupal/files/video.flv

Notice the files directory is mentioned twice in first example...

Im trying to find where is ti generated, no luck yet, ill post it once i find it.

rdavl’s picture

swftools.module @ line 841

        $playlist_data['playlist'][$key]['filepath'] = swftools_get_media_path() .'/'. $data['filepath'];

swftools_get_media_path() returns files
and $data['filepath'] has value files/name_of_video.flv

thus wrong output to xml playlist. i just commented out the swftools_get_media_path() function call.

aterchin’s picture

Thanks for the input on this. Actually I already had that duplicate file directory problem earlier and I fixed it (but forgot how).
The problem I'm talking about HERE is that the swftools module can FIND the playlist but nothing is being written to it. Just opening it in a text editor reveals NO code whatsoever.
Could you perhaps paste your source output from firebug or whatever so I can see if yours is the same as mine?

aterchin’s picture

As of about 10 minutes ago (i dont know what i did, maybe update the integrated media settings, which i already had done in the past) but I got the flash player to show up, and code IS being written to the generated .xml playlist!
But the video doesnt play in the player, and I still get the same strpos warning in the preview.

Also, when I hit "submit" i get 4 warnings that say No player is configured for the action 'swftools_flv_display_list'

pulpzebra’s picture

Vers. 5.x-1.1 is somewhat buggy. Please upgrade to 5.x-1.x-dev, that fixes the double path inclusion and a few other issues.

smarion’s picture

Installed 5.x-1.x-dev and have the same problems as everyone else:

Submit file = Error with xml generation by the swftools_swf module.
Preview = warning: strpos(): Empty delimiter. in /sitename/modules/swftools/swftools.module on line 879.
Playlist.xlm file is empty.

Rowanw’s picture

I worked it out. I'm not sure if this will help everyone, but give it a try anyway.

Using 5.x-1.x-dev of SWFTools, the name of the shared folder for Wijering should be "jw_media_player" NOT "flash_media_player".

Also, in SWFTools > Generic Players > disable "Autostart FLV".

In SWFTools > File handling > File handling > Make sure Wijering is selected for everything.

I hope this helps.

spede’s picture

rdavl, thanks a lot! I had the same problem, files/files in playlist's path for my test mp3, and I got rid of it because of your tip, by removing that unnecessary "swftools_get_media_path() .'/'. " from swftools.module line 841. Great, another small bit of progress... Just have to vent a little, it's quite hard when all the info about Drupal is scattered all over these posts. I really appreciate the work people have put into the system, but for a newcomer it's really tough to get a hold of this. Well, that's it for now, at least I got one mp3 to play, let's see what next... Thanks again!

kulfi’s picture

Module just doesn't work.

I've tried to get this module to work quite a few times now, with no joy whatsoever. I can't get it to play uploaded files (which is what I would like) or the basic embed code to work:

<swflist player="wijering_imagerotator" files="image1.jpg&&image2.jpg&&image3.jpg&&image4.jpg" width="400" height="400" transition="random">

(results in nothing being displayed)

or

<?php
// You can grab a playlist using a simple file
// array, by calling the SWF Tools helper function.
$playlist = swftools_prepare_playlist_data(array('image1.jpg', 'image2.jpg', 'image3.jpg', 'image4.jpg'));

// Then pass this to swf_list.
print swf_list($playlist, "550x400", array('frameColor' => '#FF0000','bgcolor' => '#123456',));
?>

(results in error message "warning: strpos() [function.strpos]: Empty delimiter. in /var/www/drupal_sandbox/sites/all/modules/swftools/swftools.module on line 880.", also seen here: http://www.google.com.au/search?hl=en&client=firefox-a&rls=org.mozilla%3...)

I have the recommended file structure:

  swftools/
    shared/
      generic/generic_flv.swf
      generic/generic_mp3.swf
      1pixelout/player.swf                  
      flash_media_player/mediaplayer.swf 
      flash_image_rotator/imagerotator.swf
      simpleviewer/viewer.swf              
      swfobject/swfobject.js           
      lutman/jquery.flash.js             

It looks like this module is proving painful for others as well. Hopefully the authors can help us out with some feedback ...

sdfweb’s picture

Same problem for me. It seems that the filter don't work in textareas with "Filtered HTML" input type checked.
I solved by using the "Full HTML" input type with the syntax inside. In this way the mediaplayer works with or without files attachments, and also the imagerotatr player works for me.
Bye

martyr13’s picture

i don't understand why it seems to be working for some people. i did the exact same things as that elliot dude, but i am getting the same results as the people here. this module has the potential to help make a great website, but it doesn't seem to work very well.

i tried the two fixes here, but they didn't help. when i keept the folder as jw_media_player the module menu said they were missing, deleting line 841 didn't do anything either.
good luck to everyone

m.rheaume

martyr13’s picture

holy bejesus it worked.

i just did the drupal school steps with the exception that i put the dev. in. i did have to change the folder from jw to flash (like in drupal school).

Stuart Greenfield’s picture

Status: Active » Closed (fixed)

Over two years old!

I'm going to close the issue as part of queue maintenance.