'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>
| Comment | File | Size | Author |
|---|---|---|---|
| directory_img.png | 139.71 KB | aterchin |
Comments
Comment #1
dpancake commentedhave 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.
Comment #2
aterchin commentednot yet...
Comment #3
aterchin commentedAnother note: opened up the playlist in text edit and there's no info even written to it.
Comment #4
djudjublondin commentedIt 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
Comment #5
djudjublondin commentedIt 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
Comment #6
aterchin commentednothing 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.
Comment #7
rdavl commentedHave 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.
Comment #8
rdavl commentedswftools.module @ line 841
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.
Comment #9
aterchin commentedThanks 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?
Comment #10
aterchin commentedAs 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'
Comment #11
pulpzebra commentedVers. 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.
Comment #12
smarion commentedInstalled 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.
Comment #13
Rowanw commentedI 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.
Comment #14
spede commentedrdavl, 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!
Comment #15
kulfi commentedModule 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:
(results in nothing being displayed)
or
(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.jsIt looks like this module is proving painful for others as well. Hopefully the authors can help us out with some feedback ...
Comment #16
sdfweb commentedSame 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
Comment #17
martyr13 commentedi 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
Comment #18
martyr13 commentedholy 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).
Comment #19
Stuart Greenfield commentedOver two years old!
I'm going to close the issue as part of queue maintenance.