logic for .wmv files logic for .wmv files
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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']));