Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 [4] 5 6 7 8 9   Go Down

Author Topic: Flash Media Player plugin with visual integration (play flv/mp4/mp3/aac files)  (Read 128639 times)

0 Members and 1 Guest are viewing this topic.

Brooklyn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

You might want to review this report and make any necessary changes:

http://www.UnmaskParasites.com/security-report/?page=haefliger-ag.ch

Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

Hello wondering if anyone could help me with this plugin for 1.5 for flash media. I installed the plugin but when I try to view media all I see is well nothing, not even a placeholder and don't hear anything either. I tried this is main gallery and even tried a fresh test gallery install and neither work.

Main gallery
http://www.beautifuljodelle.com/gallery

Media example
http://www.beautifuljodelle.com/gallery/displayimage-10314-_Case_39_TV_Spot_Demons_.html

Test Gallery (fresh install/new database)
http://www.beautifuljodelle.com/gallery1-2/

Test gallery running off 1.4 backup only has the one file for testing purposes.
http://www.beautifuljodelle.com/gallery-media/displayimage.php?pos=-10314

If anyone can help thank you.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

Strange. I downloaded your case-39-tvdemon.flv file and it plays without any problems in local testbed. Will create a fresh testbed and try again.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

Works also on my fresh testbed. Can you provide a test user account for your test gallery 'gallery1-2/'?
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

http://www.beautifuljodelle.com/gallery1-2
user: cpg-tester
pass: tester01

http://www.beautifuljodelle.com/gallery
user: test-account
pass: tester01

Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

Issue has been resolved, it was a server problem which my host was able to fix.
Logged

Naxius

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

Got a browser operability question. Hollowmoon.com.au is a site I have just thrown together for a friend. Using the twenty ten template I am getting good results all round, bar Safari. It is displaying the white box but no player and the following when Safari - Windows/Activity log is checked:

You don't have permission to access /plugins/flash_media_player/player.swf on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Firefox and IE8 are testing fine. Have disabled player and all plugins, and have just had player installed alone (also remembering to clear out the cache each time changes are made) without any luck still for Safari.

My question I guess is that even though all the chmod changes needed have been made as per Coppermine's install guide, do I need to go one step further when it comes to Safari operability. Is this observed behaviour for anyone else. More than happy to get test account details up as well.

Hope I have followed rules, quite new to the whole thing.
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

Is there anyway to use a custom skin for the player from JW's site? If I just use the default skin everything works fine but try to use a custom skin it doesn't.

Main Gallery - default skin
http://www.beautifuljodelle.com/gallery/displayimage-10315-_Case_39_TV_Spot_Face_It_.html

Test Gallery - custom skin
http://www.beautifuljodelle.com/gallery1-2/displayimage.php?pid=1
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

@Naxius: I cannot support browser issues, sorry.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

@purplefreak3: You cannot just replace the player file with the skin, but have to add the skin as parameter as described in the docs.

I've tested your preferred skin and it works for me. Just copy the skin file to the flash media player directory. Then open codebase.php, find
Code: [Select]
        $player = "plugins/flash_media_player/player.swf";
        $player .= "?file=$file";
        $player .= "&image=$thumb";
        $player .= "&autostart=$autostart";
        $player .= "&backcolor={$style['background']}";
        $player .= "&frontcolor={$style['color']}";
        $player .= "&lightcolor={$style['color']}";
and replace with
Code: [Select]
        $player = "plugins/flash_media_player/player.swf";
        $player .= "?file=$file";
        $player .= "&image=$thumb";
        $player .= "&autostart=$autostart";
        $player .= "&backcolor={$style['background']}";
        $player .= "&frontcolor={$style['color']}";
        $player .= "&lightcolor={$style['color']}";
        $player .= "&skin=plugins/flash_media_player/controlpanel.swf";

I'll try to add an auto detection that checks if a skin is in the plugin directory and uses it automatically.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

I'll try to add an auto detection that checks if a skin is in the plugin directory and uses it automatically.
Plugin version 1.7 with automatic skin file detection attached to initial post.
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

Thank You
Logged

Naxius

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

That's cool, no worries  :)
Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39

Hello,

First of all, thanks for this plugin!

I am in the process of migrating my 1.4.26 Coppermine installation to 1.5.8.  I have just about everything running like I want except for this Flash Media Player plugin which is generating javascript errors in Internet Explorer every time that it runs a flash video. Also, The "Display/Hide File Information" button on the nav bar does not work for flash videos with Internet Explorer 7/8 either and also presents the javascript errors. I have tested using IE7 and IE8 and neither runs without generating javascript errors and the "Display/Hide File Information" button does not work with either version of IE either.  The good news is that everything appears to work properly with Firefox and Chromium.  However, I have put this migration project on hold until I can solve these IE problems since so many people use the IE browsers.

Here is a link to a flash video in my 1.5.8 installation:

http://dickens.com/gallery_1.5.8/displayimage.php?album=41&pid=1109#top_display_media

Upon playing a flash video, the javascript error icon appears on the bottom left of IE's status bar. Click on the error icon on the bottom left of the status bar and IE will present a window with the following errors:

Quote
Line: 1
Char: 156
Error: 'null' is null or not an object
Code: 0
URL: http://www.dickens.com/gallery_1.5.8/displayimage.php?album=41&pid=110

Here is a link to the same video on my 1.4.26 installation where everything works properly without javascript errors and with the "Display/Hide File Information" button working properly as well:

http://www.dickens.com/gallery/displayimage.php?album=41&pos=0

Please note that I have autostart enabled on the 1.5.8 version but it is disabled on the 1.4.26. For my 1.4.26 installation, I am using the modifications described here to accomplish the flash integration:

http://forum.coppermine-gallery.net/index.php/topic,34182.msg221287.html#msg221287

Please let me know if anyone else has seen these problems.  If so, then I would appreciate any advice that you could offer on how to fix these issues. Also, if there is something obvious that I am doing wrong then please let me know. FWIW, I have been able to reproduce this problem both with my own custom theme as well as with the default Coppermine "Curve" theme.

Thanks,

Gordon
Logged

purplefreak3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33

I didn't see any problems with the video player and didn't see any error messages, but I am also using IE9 as oppose to the older versions you are talking about so just might be a bug.
Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39

Hi  purplefreak3,

Thanks for the reply!

I have modified the plugin so that it does not any longer generate the javascript errors on my site.  However, the javascript errors are still produced by the stock unmodified flash_media_player plugin running with the stock unmodified Coppermine gallery.  Also, I visited some other peoples links from this thread where you can see the javascript errors in the lower left hand portion of IE's status bar such as here:

http://www.beautifuljodelle.com/gallery/displayimage-10315-_Case_39_TV_Spot_Face_It_.html

So, I'm not the only one who has seen this. BTW, the "show/hide file info" button works on the above gallery, however, I have tested  an older version of the jwplayer with the stock plugin where the javascript errors occur but the "show/hide file info" button still works just like here.

I am still working the kinks out on my site but when I am done then I will post the changes that I have made to the plugin to make it work properly without any javascript errors and with a functioning "show/hide file info" button.  I am not very experienced with php and so this is taking me alot longer than it should.

FYI,

Gordon


Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39

I never did figure out why the Flash Media Player plugin was generating javascript errors in Internet Explorer 7/8 every time that it ran a flash video.  The problem is in the codebase.php script but it must be subtle because I couldn't figure out why.  So, I just rewrote the pertinent lines of codebase.php based on what I had successfully implemented in my 1.4.26 installation.  Attached is the modified codebase.php file.

Please note the following:

1) I also modified the code to use the normal_ file for the video's background wallpaper.  If a normal_ file does not exist, then the script defaults back to the thumb_ file as in the original plugin.
2) I don't use flashplayer skins and I cannot therefore test them so I disabled that functionality.  However, it should be easy for somebody that uses skins to add that back in and test it.

Disclaimer: I am not very experienced with php and I am sure that there is a better way to do this.  However, the script now works great in my gallery without the javascript errors so I am happy.  Anyone is welcome to use these modifications, however,  test it thoroughly.  User beware!

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15277

Thanks for your contribution. I'll check your file tomorrow and will see if I can merge your changes with the official version.
Logged

Naxius

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

That codebase modification worked a charm for me  :)
Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39

I have written a few bash scripts that make it very easy to quickly convert videos in any format to flash format (flv) and for creating thumbnails (thumb_ files) and intermediate photos (normal_ files) from video files.  Attached is a file named video2ools.tar.gz file which includes the following four scripts:

video2pics - Create thumb_ and normal_ pics from a video in the current directory.
video2pics4all - Create thumb_ and normal_ pics from all videos in the current directory (batch mode).
video2flv - Create a flash video (<videoname>.flv) from a video of a certain type in the current directory.
video2flv4all - Create flash videos (<videoname>.flv) from all videos of a certain type in the current directory (batch mode).

These scripts require that ffmpeg and imagemagick are installed.

FYI,

Gordon
Logged
Pages: 1 2 3 [4] 5 6 7 8 9   Go Up
 

Page created in 0.087 seconds with 20 queries.