Advanced search  

News:

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

Pages: 1 ... 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 176453 times)

0 Members and 1 Guest are viewing this topic.

Αndré

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

I see the following possibilities:
1. Move the files on your webspace
2. Upload 'fake' video files and then use some server-side redirect rules to point to the 'real' video files
3. We have to modify this plugin (or maybe better: the Remote Videos plugin) so you can upload text files containing the url to the video file. I thought this has been already done, but I haven't found it in this board.


For option 3) I have 2 ideas:
1. Invent a new file extension (e.g. flvx/mp4x) that just contains the url to the video file
2. Modify this plugin so it expects the same as 1) when the file is smaller than e.g. 1 KB. In that case it would check for a valid video url and uses that url instead of embedding the current file as video file
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20

Thank you very much. Again, because I am really not the plugin kinda guy (too stupid I guess) i hoped a solution to that would exist already. As for the Remote Video plugin, I have that installed and it works fine for Videosites like Youtube etc. but this is something else. Not sure if that works. And, as for the plugin suggested, I always create the files (Youtube URL) by hand and then upload it to one of my Batch folder and that is how I import them into my gallery.

I don't know any more. :(

Anyways, I thank you very much for your help. Seems some things still can't be done if the knowledge how to make them, is not available.
But thats life, ain't it ? ;)
Logged

Αndré

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

Modify this plugin so it expects the same as 1) when the file is smaller than e.g. 1 KB. In that case it would check for a valid video url and uses that url instead of embedding the current file as video file

Open codebase.php, find
Code: [Select]
$file = $CONFIG['ecards_more_pic_target'].get_pic_url($CURRENT_PIC_DATA, 'fullsize');and below, add
Code: [Select]
        if ($CURRENT_PIC_DATA['filesize'] < 1024) {
            $file_content = file_get_contents($CONFIG['fullpath'].$CURRENT_PIC_DATA['filepath'].$CURRENT_PIC_DATA['filename']);
            preg_match('/^(http|ftp)s?:\/\/.*\.'.$CURRENT_PIC_DATA['extension'].'$/i', $file_content, $matches);
            if (count($matches)) {
                $file = $matches[0];
            }
        }


Now create a new text file with the url of your mp4 video, change the file extension to 'mp4' and upload it to your gallery. Please report if it works as expected.
Logged

Αndré

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

Note: this is just a draft, as the regex should be optimized. It may be possible that potential attackers inject HTML code to your gallery. If you're the only person who can upload files to your gallery you're fine.
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20

Thanks. ;)

I tried that. But when I want to watch the movie it says:

Quote
VIDEO NOT FOUND OR ACCESS DENIED

I triple checked the path to the Video and its all correct. So why that message ?

Wolfseye
Logged

Αndré

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

Please post the link to the target video file or better: attach the file you uploaded to your gallery.
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20

Here is the file. I had to zip it because .mp4 isn't an allowed attachment type.
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery

I just can't figure out how to add a skin from the official website http://www.longtailvideo.com/addons/skins yes, Im a nooob!!!

Im extracting the zip file downloaded to the flash_media_player plugin folder but nothing happens...

structure as follows

/blog/plugins/flash_media_player/

 then i created a folder with the name of the skin and extracted the content there, what im doing wrong??

would like to use following skin... http://www.longtailvideo.com/addons/skins/241/Facebook-Look-alike?q=%20alt=

Any help would be really appreciated!
Logged

Αndré

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

Automatic skin detection has been developed here. It currently just supports SWF skins. If you want to use XML skins you have to edit codebase.php.
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery

Automatic skin detection has been developed here. It currently just supports SWF skins. If you want to use XML skins you have to edit codebase.php.
Thanks, complety a noob i must say!!works like a charm!! tx so much  ;)
Logged

Αndré

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

Version 1.9 attached to initial post. It adds support for zip file skins, the player.swf file has been updated to version 5.7.1896 and it also adds support for external video files (still experimental, so please don't ask for support at this stage).
Logged

DesertDave

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1

Hi Guy's
I installed cpg1.5.x_plugin_flash_media_player_v1.9.zip which was my first plug in I've used and loved how easy it is. But on playback of my mp4 "Knives" I only get audio, no video. 
Any idea's.  http://arizonahealthandlife.com/Portage

Cheers,  ???
Desert Dave
Logged

Αndré

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

Probably the used video codec isn't supported by the flash player application.
Logged

Αndré

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

Plugin version 2.0 attached to initial post. It now uses the JW embedder instead of the HTML 'object' tag. Additionally, it now supports external YouTube videos and external media files in general (see initial post for more information). Please move your existing skin to the new skins directory.
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor

hello

i wan't use a skin, but the auto-detection does not work.
i have downloaded http://www.longtailvideo.com/addons/skins/30/Metarby-10?q=%20alt= and copied the swf-file into the "skins"-directory.
please help.
THX
Logged

Αndré

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

Please download the updated package from the initial post.

However, that page says that the skin isn't compatible with the JW Player 5.x. It seems to work anyway with the latest JW Player version.
« Last Edit: May 30, 2012, 02:35:55 pm by Αndré »
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor

Please download the updated package from the initial post.

However, that page says that the skin isn't compatible with the JW Player 5.x. It seems to work anyway with the latest JW Player version.

hello andre,

i already use cpg1.5.x_plugin_flash_media_player_v2.0.zip

btw. can you please tell me, how i can eventually use xml-skins ?
Logged

Αndré

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

Please download the updated package from the initial post.
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor



ok, now it works perfectly with the swf-skin.

thank you andre !
Logged

Αndré

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

Plugin version 2.1 attached to initial post. The JW Player was upgraded to version 6.1.2972. There have been some changes from JW Player 5 to JW Player 6, you can find them here in detail.
Logged
Pages: 1 ... 3 4 5 6 [7] 8 9   Go Up
 

Page created in 0.046 seconds with 21 queries.