logic for .wmv files logic for .wmv files
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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