I can't play mpg (video) or mp3 (audio) with the flowplayer 3 in swftools 6.x

If I configure swftool to play mp3 audio using Flowplayer3 as the mp3 audioplayer I get the flowplayer3 presented op my page. That's OK. But as soon as I click the play button I get a error message from Flowplayer3:

202 The provider specified in this clip in not loaded, Provider audio.clip: [clip] PATH_TO_CLIP.mp3

If I thy to play a mpg video fiel I get a other error:

2000 stream not found NetStream.Play Play.Not.Found

When I switch to defaultplayer of flowplayer(2) than the file play normal.

This thread is opened in place of this post as that was a different thread.

CommentFileSizeAuthor
#6 Screenshot-02.png35.4 KBneorg
#6 Screenshot-01.png69.63 KBneorg

Comments

Stuart Greenfield’s picture

This sounds like FlowPlayer can't find the audio plugin (you need both the FlowPlayer AND the audio plugin)

From the SWF Tools project page...

FlowPlayer is a little more tricky to set up - you will need to download the player (the zip includes the player and the control bar plugin). Then for audio playback you need the audio plugin, and for rtmp you need the streaming plugin. All plugins are also installed in swftools/shared/flowplayer3. Note that the name of the player and the streaming plugin varies with each FlowPlayer release, so remember to visit the site configuration page and make sure the names match the ones you have!

Verify that you have the correct plugin, and that your configuration page also has the right filename (FlowPlayer3 filenames change between versions). The latest player is flowplayer-3.0.7.swf and the latest audio plug in is flowplayer.audio-3.0.4.swf

I'm not sure about mpg video playback - I've never tried that through FlowPlayer!

But everything is working ok for me here, and if you can play the audio through FlowPlayer 2 then it says SWF Tools is working correctly, so the missing plugin is the most likely problem.

davebv’s picture

I have this problem (or so I think). The player and the plugins are in shared/flowplayer3/ and the filenames are flowplayer-3.0.7.swf, flowplayer.controls-3.0.4.swf, flowplayer.audio-3.0.4.swf, flowplayer.rtmp-3.0.2.swf. (All in the same folder)

In the settings page, (admin/settings/swftools/flowplayer3) in files section I just have 2 text boxes, one for the player name, and the other for the rtmp plugin name. Is this correct? Should it be one for each file?

Thanks for your help

Stuart Greenfield’s picture

THat's right - the audio and controls plugins are detected automatically by FlowPlayer so they don't appear on the config page.

So you are saying FlowPlayer3 isn't working, even with all the plugins in apparently in place??

I seem to remember having an issue with the cache - try emptying your browser cache and reloading the page to see if that kicks it in to life!

davebv’s picture

I have no luck, empty the cache in firefox and safari. Is there any information I can provide to help debug the problem?

Stuart Greenfield’s picture

Can you confirm the version of SWF Tools, the embedding method that you are using (direct, SWF Object2 etc) and the code that you are using to generate the content (e.g. swf tools input filter, PHP call). Please post an example of the code.

The problem is that SWF Tools has so many variables, that it gets tricky to diagnose problems now!

(note to self - could a "diagnostic" mode be created that helps people get the data needed to help fault find?)

neorg’s picture

Title: flowplayer 202 The provider specified in this clip in not loaded, Provider audio.clip: [clip] » Confirmation of use embedding method and filters
StatusFileSize
new69.63 KB
new35.4 KB

Dear Stuart,

I can confirm that I am using direct embedding method.

On /admin/settings/swftools/embed I got 3 possible selections (radio buttons) I do not even have the java SWFObjects installed.

Embedding methods:
-------------------------------------------------------------------------------
OFF_SWFObject 1.5 - JavaScript - Missing - Download here
OFF_SWFObject 2 - JavaScript - Missing - Download here
ON__Direct embedding - do not use JavaScript replacement
------------------------------------------------------------------------------

SWF-Tools version
------------------------------------------------------------------------------
SWF Tools 6.x-2.3
------------------------------------------------------------------------------

Code
-----------------------------------------------------------------------
On the page is use this code to generate the content:

<swf file="MY_MP3_FILE.mp3">

Filter
----------------------------------------------------------------------
I am using an swf filter (not in combination with a PHP filter. See screenshot 02. (I also tried a filter with SWF and PHP together. No positive result)

Result
-----------------------------------------------------------------------
In screenshot-01 you seen my result and error message

Edit!! [20090312 15:49 GMT +1]
-----------------------------------------------------------------------
I also got the flowplayer.audio swf installed

 ls -l flowplayer*
-rw-r--r--  flowplayer-3.0.7.swf
-rw-r--r--  flowplayer.audio-3.0.4.swf
-rw-r--r--  flowplayer.controls-3.0.4.swf

Edit!! [20090312 16:17 GMT +1]
-----------------------------------------------------------------------
I found this threat on the flowplayer forum. It looks that the problem is (not only) in Drupal

http://flowplayer.org/forum/1/16002

Unfortunately there is solution in that forum neither.

davebv’s picture

SWTools version 2.3

Embedding method (tried with SWFObject2 and direct)

Code I use: PHP call, within my template:

$files = array('sample1.mp3', 'sample2.mp3') ;
print swf($files
        );

Edit:
The player and the plugins are in shared/flowplayer3/ and the filenames are flowplayer-3.0.7.swf, flowplayer.controls-3.0.4.swf, flowplayer.audio-3.0.4.swf, flowplayer.rtmp-3.0.2.swf. (All in the same folder)

Stuart Greenfield’s picture

Title: Confirmation of use embedding method and filters » flowplayer 202 The provider specified in this clip is not loaded, Provider audio.clip: [clip]
Priority: Normal » Critical

@neorg - you need to download and add the JavaScript to the shared directory (the documentation page describes this, and has links to the files you need).

But, davebv has tried both direct embedding, and SWF Object 2, and neither worked for him (and actually, when you view the source of what SWF Object actually produces it is pretty much the same as what direct embedding does!)

Do either of you have a public facing page with the non-functional player on it? All I can think of to do is view the source code for your pages that don't work, and compare to my pages that do. I'm not sure what I'm looking for, but we can at least compare paths, see if there's some funny JavaScript going on. A long shot but I'm not sure where else to go.

I'm really puzzled as I do my development here on a laptop, I have a desktop that I occassionally use, and I recently did some dev work on my work laptop, and they all worked fine with FlowPlayer3. All I can think of is that for some reason the way that FlowPlayer is supposed to grab the audio plug in is failing on your installations. Where are your files hosted? Do you know what they're hosted on?

Out of interest, if you try to play an flv (that doesn't need the audio plugin), does that work ok?

NB - reverting title to original in case anyway else is experiencing this issue and so that they know where to post. Raising status to critical.

Last thought - try downloading the audio plug in again, but use the zip file. I vaguely recall having an issue early on with flowplayer audio not working, and the direct download file was half the size to the one in the zip. When I used the one out the zip it worked (sorry, feel like I'm clutching at straws now but I'd really like to get this working for you!) Here's the link: http://www.flowplayer.org/plugins/streaming/audio.html

Stuart Greenfield’s picture

--edit
DON'T MAKE THE CODE CHANGE DESCRIBED HERE! Rename your audio plugin as described here instead!
--/edit

This is bizarre - I just made a brand new Drupal install, and now I get the same error!

So there is something weird going on with FlowPlayer3's auto detection process.

Try adding the following at line 177 of flowplayer3.module

  // Manually add the flowplayer audio plugin
  $plugin_path = $GLOBALS['base_url'] .'/'. swftools_get_player_path() . '/flowplayer3/';
  $flowplayer['plugins']['audio']['url'] = $plugin_path . 'flowplayer.audio-3.0.4.swf';

It goes just before

  // Convert flowplayer array to JSON, and assign to a flashvar called config
  $flashvars['config'] = drupal_to_js($flowplayer);

This will force the plug in to load from the specific directory, and a specific file (the 3.0.4 version of the plug in), rather than relying on FlowPlayer3 to "automatically" detect it.

That fixed it for me. Given that this issue seems to be unpredictable as to whether it will impact a site or not then if this works for you I think I will put this in the module as a "guarantee" that the plugin will load.

Note to self - I am guessing that this issue will break the streaming plugin, which is working fine on the system where the audio is currently working!

Stuart Greenfield’s picture

OK - I've done some experiments between my two systems, and it looks like the issue is the flowplayer.audio-3.0.4.swf. With version 3.0.3 it works without having to set an explicit path to the plugin. Just drop the plugin in to the shared folder and off it goes. But try that with 3.0.4 you have to be explicit, which the FlowPlayer3 module doesn't do!

On my (working) installation I had both the 3.0.3 and 3.0.4 plugins in my shared folder. I tested, and if you have both plugins available then again it works without being explicit (no idea which one it actually loads!)

Unfortunately, because I did all my development on a machine with both plugins available it all looked ok!

I tried looking on the FlowPlayer website, but I can't see the 3.0.3 file for download anywhere.

In the meantime, the suggested code above will fix the issue for the flowplayer module.

Also, as the issue seems to be the audio plug in I'm hoping the streaming plug in will work "out of the box".

davebv’s picture

Hey! thanks a lot for your effort and solution, now it works ok!!!!!

I added the lines where you posted and the audio files (I tested 2 mp3) works.

Again, thanks a lot!

Stuart Greenfield’s picture

Glad we got it fixed. Developing SWF Tools can be very frustrating because it is now such a complex module, people try to do all sorts with it, and the players themselves keep getting updated.

I posted a reply to neorg's over at the flowplayer forum (http://www.flowplayer.org/forum/1/16002#post-16712)

Hopefully the developers will be able to fix the plugin so we can go back to the (much more elegant) way of doing things where you can just drop the plugin in the right place.

Anyhow, glad we got it sorted!

@neorg - the fix will hopefully work for you too!

Stuart Greenfield’s picture

Aha! I don't know why this didn't occur to me before. I suspect that if you look in your Drupal site event log you will see lots of instances of

  • Type: page not found
  • Location: {module path}/shared/flowplayer3/flowplayer.audio-3.0.3.swf
  • Referrer: {module path}/shared/flowplayer3/flowplayer-3.0.7.swf

IE - the player is trying to call version 3.0.3 of the audio plugin. My log is full of these. So we can see for sure that the player is trying to load the 3.0.3 plugin. But rather than having to fix the Drupal flowplayer module, which is ugly, you can just rename flowplayer.audio-3.0.4.swf to flowplayer.audio-3.0.3.swf. As far as I can tell from a very quick look in the source code the player only builds a filename, and there doesn't appear to be any "version string" inside the plugin.

Do that and you can have the latest audio plug in (3.0.3 had some bugs in it), and you don't have to change the code as described in #9.

Probably have to clear your browser cache to pick up the new plugin! That's good discipline anyway when trying fault find flash!!!!

davebv’s picture

Mmm, I removed the lines, changed the name of the audio plugin and mp3 playback works ok.

But!! I am having the same error when I try to play an flv file. No errors in the drupal log (so I guess the audio plugin is found) but the message is exactly the same: ... Provider audio clip...

The method is the one I descibed above, tested with direct and swfobject2 embed method, with php call.

btw, thanks for the quick answers!

neorg’s picture

Ok, Got it SOLVED !!!

Thanks to Stuart.
I have the same error in my log files (Why didn't I look there before?)

Now I am sure that the problem is in flowplayer-3.0.7.swf. This tries to load the wrong version of the audio.swf player.
It's searching for version flowplayer.audio-3.0.3.swf while I have version flowplayer.audio-3.0.4.swf. So something go's wrong in the way flowplayer3 will automatically loads the flowplayer.audio.swf player.

SOLUTION:
---------------------------------------------------------------------------------------------
If made a lymbolic link from version flowplayer.audio-3.0.4.swf to flowplayer.audio-3.0.4.swf. I am sure this is a better solution than renaming the 3.0.4 player to 3.0.3. With the symlink you avoid later confusion about the version you are using.

To make the symlink.
Go the the directory where the swf files are located. In my case that's in /var/www/drupal/sites/all/modules/contrib/swftools/shared/flowplayer3

cd /var/www/drupal/sites/all/modules/contrib/swftools/shared/flowplayer3

No make a symlink from flowplayer.audio-3.0.4.swf to flowplayer.audio-3.0.4.swf

ln -s ./flowplayer.audio-3.0.4.swf ./flowplayer.audio-3.0.3.swf

NOTES:

#1

@neorg - you need to download and add the JavaScript to the shared directory (the documentation page describes this, and has links to the files you need).

Is not a issue or solution in this problem.

#2

Try adding the following at line 177 of flowplayer3.module

// Manually add the flowplayer audio plugin
$plugin_path = $GLOBALS['base_url'] .'/'. swftools_get_player_path() . '/flowplayer3/';
$flowplayer['plugins']['audio']['url'] = $plugin_path . 'flowplayer.audio-3.0.4.swf';

Didn't solve the problem on my installation. There was no different at all. It didn't do anything for me. (Yes, I cleared browser cache)

#3
Using the flowplayer.audio-3.0.4.swf from the zip archive is stead of the separate flowplayer.audio-3.0.4.swf file ( see bottom of page on http://www.flowplayer.org/plugins/streaming/audio.html ) dosn't make any different. (Yes, I cleared browser cache)

#4
I will post this solution also on the Flowplayer forum.

davebv’s picture

@neorg: Have you tried to play flv file? (If not... may you try?)

I can't play flv files (I think couldn't before, but was not sure if I was doing something wrong) Now I tried and can play mp3 but not flv files.
I got the exact same error, so this is strange, given the flv is not "audio".

Thanks for the help

Stuart Greenfield’s picture

@davebv - is your issue maybe related to http://drupal.org/node/395502#comment-1337240? If the flv file is missing metadata then it seems to result in various outcomes, including flv not playing, or playing the audio but no video.

There are instructions at that link of how to check your flv.

I tested a known good flv locally and it's working ok for me.

davebv’s picture

I tried the solutions in the posts you linked, but still have no flv playback. What is strange is it gives me the exact error code, 202 as with the mp3 before (but now I can play mp3, no flv).

I added the metadata with yamdi.

Thanks for the tips

davebv’s picture

This is the most strange thing. I did the same in my sandbox live site and it seems to work ok, but not in my local installation. I will try to uninstall swftools and reinstallit to see what happens.

davebv’s picture

Reinstalling the module does not help.

In my remote server is working.

In my local server, with MAMP, I still have the error.

I removed the audio plugin.

I do not know why with the flv file is trying to load the audio plugin.

Do you know why this would happen? Anything I can do to provide information or things to try to debug the problem?

Thanks!

Stuart Greenfield’s picture

Given the player is working on a remote site it sounds like it must be a config issue, but that's something I really don't know much about I'm afraid!

I don't know how flowplayer works out whether the file is audio or video, so don't know whether it looks at the file extension or the file header.

Thinking out loud - is the local server serving the file as the right type? Is it possible that although it has the extension flv it is being served as an audio type, and it's confusing the player??!!

I think we need someone with some more experience on server configuration at this point! Sorry!!

davebv’s picture

No problem! thanks for the help! I'll try to make it work and post the solution in case I find one, which seems difficult for me hehe!

Stuart Greenfield’s picture

I've been having a look around inside the source code of FlowPlayer3, and it looks like it just uses the file extension (at least, I think it does), so that kind of kills the idea of it being a server config!

Does the flv play in, say, Wijering, or FlowPlayer 2?

I'm still stumped, so not sure what else to suggest!

davebv’s picture

I've tried with 3 different flv files and all of them play with the default player and JW4 correctly. Did no try with flowplayer 2. Now I am going to do a clean drupal installation to see if there is something wrong in the database.

It happens with both the php call and swf input filter.

I also tried to add the flv mime type to the server and did not work either.

Let's see if a clean installation works!

And again, thanks a lot for the help!

Stuart Greenfield’s picture

I've tried with 3 different flv files and all of them play with the default player and JW4 correctly.

That makes it sound like the actual FlowPlayer3 is unhappy about something. It's working for me here so I'm fairly confident the Drupal module is ok. I've been having a few odd glitches with FlowPlayer3 - sometimes it refuses to play streamed media for no obvious reason, and then it works again. It's a great looking player, but I wonder if it still has a few wrinkles in it underneath :-)

davebv’s picture

Yep I guess it not drupal's fault. Either mine or flowplayer's. Haven't tried yet with a clean new drupal installation, but the same files I tried to play in my local installation (which did not work), they work in my sandbox remote online server. Arg! It does not make sense.

davebv’s picture

Ok, did a clean drupal install and flowplayer works ok! Don't ask me why........ The other installation was pretty clean too (just installed some other modules... but not related to swf tools...) I do not know what was wrong with the other one.

If I find out what was happeing... I'll post.

Stuart Greenfield’s picture

Priority: Critical » Normal
Status: Active » Fixed

Glad you got it working, even if we're not sure what was wrong!

Setting this thread as fixed now since all issues in here are resolved, at least with respect to SWF Tools!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.