Added support for .flv formatted resized videos.
This commit is contained in:
parent
0e07fe0d80
commit
defb1ebdc1
|
@ -256,6 +256,10 @@ class Videos_Controller extends Admin_Controller {
|
||||||
$items_video->save();
|
$items_video->save();
|
||||||
if (file_exists($entry->file . ".flv")) {
|
if (file_exists($entry->file . ".flv")) {
|
||||||
copy($entry->file . ".flv", $movie->resize_path() . ".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 {
|
} else {
|
||||||
// This should never happen, because we don't add stuff to the list that we can't
|
// This should never happen, because we don't add stuff to the list that we can't
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<div class="g-block">
|
<div class="g-block">
|
||||||
<h1> <?= t("Add from server administration") ?> </h1>
|
<h1> <?= t("Add videos from server administration") ?> </h1>
|
||||||
<div class="g-block-content">
|
<div class="g-block-content">
|
||||||
<?= $form ?>
|
<?= $form ?>
|
||||||
<h2><?= t("Authorized paths") ?></h2>
|
<h2><?= t("Authorized paths") ?></h2>
|
||||||
|
|
Reference in New Issue
Block a user