1
0

Added support for .flv formatted resized videos.

This commit is contained in:
rWatcher 2010-09-30 03:36:37 +08:00 committed by Bharat Mediratta
parent 0e07fe0d80
commit defb1ebdc1
2 changed files with 5 additions and 1 deletions

View File

@ -256,6 +256,10 @@ class Videos_Controller extends Admin_Controller {
$items_video->save();
if (file_exists($entry->file . ".flv")) {
copy($entry->file . ".flv", $movie->resize_path() . ".flv");
list ($vid_width, $vid_height, $mime_type) = movie::get_file_metadata($entry->file . ".flv");
$movie->height = $vid_height;
$movie->width = $vid_width;
$movie->save();
}
} else {
// This should never happen, because we don't add stuff to the list that we can't

View File

@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="g-block">
<h1> <?= t("Add from server administration") ?> </h1>
<h1> <?= t("Add videos from server administration") ?> </h1>
<div class="g-block-content">
<?= $form ?>
<h2><?= t("Authorized paths") ?></h2>