logic for .wmv files logic for .wmv files
 

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]

Main Menu

logic for .wmv files

Started by Sebastian Bach, June 23, 2005, 07:54:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sebastian Bach

Where is the logic that determines using the wmv.jpg file as the thumbnail? I can't find it in any of the files. I want to change the logic so that if it is a .wmv file it will read from a folder ex. videothumbs/{filename}.jpg

Nibbler

It's in the get_pic_url() function inside include/functions.inc.php.

Sebastian Bach

what would I change if I wanted to store thumbnails in a folder named the same as the {filename}.wmv instead of the static wmv.jpg file

basically {filename}.wmv will use wmvthumbs/{filename}.jpg

Nibbler

After

} elseif ($mime_content['content'] != 'image' && $mode == 'thumb') {

add

if ($mime_content['extension'] == 'wmv')  return path2url('wmvthumbs/' . str_replace('.wmv', '.jpg', $pic_row['filename']));