Hello,
I've installed your module, but my flv player is not loading on the page itself. In ckeditor, I don't see the flv-file in the preview either...

I've included two screenshots, the first is what I see in ckeditor. The second is what I see in FireBug. The area where the flv should be is blank though...

Please help

CommentFileSizeAuthor
#9 SWF_no_preview.png58.75 KBbenovic
firebug51.88 KBsamdds
ckeditor51 KBsamdds

Comments

anrikun’s picture

Hi samdds.
Obviously, you did not configure the module properly.
Please do it again reading the full documentation on the project page.
Or use my contact form and send me credentials to login to your site so that I do it for you.

Applebee’s picture

I've got exactly the same issue. And I suppose I followed the steps. Could you help me?

anrikun’s picture

Please use my contact form and send me credentials to login to your site so that I check your configuration.

Meeyo’s picture

subscribing

ikarusweb’s picture

same problem, dont see the flv player but load a white flash quad.

can u help me plz?

anrikun’s picture

I cannot help you without knowing more.
Most likely you did not follow the project page instructions properly.
If you want, I can check your config but I need some credentials to login to your site.
You can send them using my contact form.

pablogy’s picture

How do I setup flowplayer as the video player?

I downloaded flowplayer and changed the settings in the ckeditor swf menu
----------------------------------------------------
return array(
'video/x-flv' => array(
'path' => 'sites/all/libraries/flowplayer/flowplayer-3.2.5.swf',
'offsetHeight' => 24,
'fileName' => 'file',
----------------------------
the flowplayer shows up but would not play the video.

anrikun’s picture

@pablogy (#7): please post this as a separate issue as it is a different problem.

benovic’s picture

StatusFileSize
new58.75 KB

subscribing.

same here, followed the installation instructions.

setup:
* localhost (LAMP)
* CKEditor 3.4.2, IMCE, CKEditor SWF
* JW Player 5
* input filter: html purifier

if anyone of the commenters above could solve this - i'd be glad to hear how to!

anrikun’s picture

Title: PLayer not loading, blank screen » PLayer not loading, blank screen, no preview
Version: 6.x-2.1 » 6.x-2.x-dev

Hi Benovic,
Could you please try the last dev? http://drupal.org/node/917024
Follow the configure instructions again.
Tell me if it works better then.

KeesMK’s picture

Hi all,

In the settings from CKEditor SWF in the first part of the screen you have to insert some code for example from the example configurations displayed. For example copy "Sample configuration #1":

return array(
'video/x-flv' => array(
'path' => 'sites/all/libraries/mediaplayer/player.swf',
'offsetHeight' => 24,
'fileName' => 'file',
),
'audio/mpeg' => array(
'path' => 'sites/all/libraries/mediaplayer/player.swf',
'offsetHeight' => 0,
'fileName' => 'file',
'defaultWidth' => 280,
'defaultHeight' => 24,
),
);

And paste this in the "Players configuration PHP code" part from the screen.

A red "*" indicates this is requered but it is not mentioned on the site you have to fill this.

anrikun’s picture

It is just required to return a PHP array.
If you don't need FLV or MP3 support, just let the default return array();

By the way, this is mentioned on the settings page:

Here you can configure the players that CKEditor SWF will use to embed FLV and MP3 files. You can ignore this page if you do not need this feature.

benovic’s picture

thank you! it was an issue with getid3().

rpruitt625’s picture

Version: 6.x-2.x-dev » 7.x-1.0-beta1

I am running Drupal 7 with ckeditor_swf-7.x-1.0-beta1, and am having problems with no display or previews.

rpruitt625’s picture

Thanks to anrikun for helping me get to bottom of this. I had to add flv and swf to my drupal.conf rewrite rules - now everything works great!

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !^/$
RewriteCond %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|flv|swf|js|html?)(\W.*)?
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

p.s. - this is a call from httpd.conf so that Clean URLs work.

twilightelf’s picture

Hi
I am running Drupal 7 with ckeditor_swf-7.x-1.0-beta1, and am having problems with no display or previews to. screenshot same as this http://drupal.org/files/issues/Afbeelding%207_0.png
Can you help me?

johan2’s picture

Hi,
I had the same issue, the .flv file was not loading. It worked after I added in the htaccess file the following:
RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|flv|swf|js|html?)(\W.*)?

I don't know if the other rewrites from #15 are necessary?

The only issue I have now is that the movie ends with a black screen instead of ending on the last frame of the movie. I think this can be solved with some setting but I don't know where. I want to end up with the first frame at the beginning and the last frame at the end (something like quicktime does automatically with the video module).
I use the mediaplayer5 for the moment... still I am in doubt to switch to quicktime (with a .mov file), the only backdraw is the implementation in a block (I think for the moment it has to be created with a view...?)

regards, johan

Robert Hubbs’s picture

I had the no preview problem in when loading flv through CKEditor SWF in 6x. I forced it to load a preview image with flashvars

When I open the Flash Properties page and after I Browse Server to find the video I go to the Flashvars Tab and and add a var named image and the value being the full URL to the image I want to have as my preview.

The image selected for preview is also displayed when the video ends not the black screen.

Do not know how relevant this is in 7x as I have not loaded it yet.

FWIW - Robert

anrikun’s picture

@Robert: FYI, the preview you are talking about is not what other people here mean by "preview". You mean adding an image to the player as a video preview. People here are referring to the preview area of the Flash dialog.

Anyway, you are right that the Flashvars tab is the right way to add properties to the player :-)

Chris Lozinski’s picture

Hi anrikun

Thanks for a great module
I have the same problem and have tried the suggestions in this post but no joy.

I get an php error report in the Administration/ Reports page as follows:
Notice: Undefined index: src in ckeditor_swf_getinfo() (line 53 of /home/name/public_html/sitename/sites/all/modules/ckeditor_swf/ckeditor_swf.module).

I am happy to give you some credentials to log in if you think this might help.

Thanks again

Chiseller

Chris Lozinski’s picture

Hi anrikun

Thanks for all your support in resolving this issue.

The problem I had was caused through very tight mod_security settings set by my hosting service. (hostgator.com).

They are an excellent server provider however because I have a shared hosting package security is set very high.

I tried various .htaccess fixes but none worked. Eventually hostgator resolved the problem by placing the offending request "/ckeditor_swf/getinfo" on a white-list and he presto! Problem solved.

I hope this is of some value to others who may have the same problem.

johannesjvorstermans’s picture

Thank John2, the .htaccess code you shared in #17 sorted out my problem. I spent several hours trying to get this going and happy I can move on now.

Great work the grwat work wth this module. It is great now that I have it going.

Panic’s picture

So far what's talked about in #15 and #17 sound like the problem I'm having, the thing is I don't know enough to do what they say.

Could someone break it down for someone not good at this and tell me where I have to go to find the files and how I change them? I'm not as advanced and pretty much everyone in here but I'm learning.

It would be a huge help to me and my site, thanks

knalstaaf’s picture

I'm not sure if it's thanks to #17 or the fact I switched the Script access to Always (Properties-tab of dialogue) once, but it's working now.

Now the mentionned line in the .htaccess has been removed again and the Script access-field is not being filled out - and it's still working eventhough I had cleared the site's cache before. Odd, but it works.

adf1969’s picture

Not sure if this will help anyone but I had to do the following to configure it to work on my system (note: I don't consider this a "bug" but more of a documentation issue - although with open-source, the documentation always exists in the code...if you want/can look - which is what I did to solve this).

First, for some reason this call took forever:

function ckeditor_swf_getinfo() {
  ...
  // Attempt to retrieve info using GD2.
  $info = @getimagesize($url);

I"m not sure *why* it runs so slow, but it takes 60sec to run.
I commented it out for now so my system *always* uses getid3().
If someone knows why the @getimagesize() runs so slow, let me know.

Second, I found out that because I was now using getid3(), the "mime" results I was getting were *not* the same, so I had to make some modifications to my settings that can be found here: admin/config/content/ckeditor_swf

My "Player configuration PHP code" looks as follows:

return array(
  'video/x-flv' => array(
    'path' => 'sites/all/libraries/mediaplayer/player.swf',
    'offsetHeight' => 24,
    'fileName' => 'file',
  ),
  'video/quicktime' => array(
    'path' => 'sites/all/libraries/mediaplayer/player.swf',
    'offsetHeight' => 24,
    'fileName' => 'file',
  ),
  'audio/mpeg' => array(
    'path' => 'sites/all/libraries/audio-player/player.swf',
    'offsetHeight' => 0,
    'fileName' => 'soundFile',
    'defaultWidth' => 290,
    'defaultHeight' => 24,
  ),
);

Nothing special, but the entry of the "video/quicktime" was what I was missing.
Once I added that, things worked much better.
Initially, I was not sure what this code did, I just blindly cut/pasted the code below and made sure the paths were correct.
When that did not work, I went diving into the ckeditor_swf code and found this little tidbit of logic (in swf\plugin.js):

 var loadInfo = function(dialog) {
...
    $.getJSON(Drupal.settings.ckeditor_swf.getinfo_path, {src: url}, function(data) {
        if (data) {
          dialog.player = null;
          delete dialog.realSrc;
          delete dialog.hiddenFlashvars;

          if (data.mime == 'application/x-shockwave-flash') {
            dialog.srcInfo.isValid = true;
            if (dialog.srcObj.getValue() != src) {
              dialog.srcObj.setValue(src);
              dialog.srcObj.setInitValue();
            }
          }
          else if (Drupal.settings.ckeditor_swf.players[data.mime]) {

This is critical: as you can see, on the last line, it checks the "players" config (from the PHP code config above) and checks whatever the "getinfo" HTTP call returns and if it returns "video/quicktime" and you don't *have* a "video/quicktime" entry in your PHP code array, it won't work...so...you better have one.

It could be that everyone else already knows this, and I'm just slow...but, if not, hopefully this might save someone else some time pounding through the code (or on their head).

And BTW: anrikun. This module rocks.
Thanks for all your hard work getting this running so we can use it.

Andrew.

anrikun’s picture

Thank you for posting this Andrew. Sure it will help people.
Once I get some time, I want to offer a more user-friendly way to configure players and mime types.