aboutsummaryrefslogtreecommitdiff
path: root/video.install
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-05 12:52:20 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2010-12-05 12:52:20 +0000
commit973537f36c8f33473a00190aa64fc30b82d94c04 (patch)
tree2c2f99a3bd254b145453fab186fdc824d34a260f /video.install
parent07e453e2ff2f66017eb49cc0374aa1531805a043 (diff)
downloadvideo-973537f36c8f33473a00190aa64fc30b82d94c04.tar.gz
video-973537f36c8f33473a00190aa64fc30b82d94c04.tar.bz2
Removing all files
Diffstat (limited to 'video.install')
-rw-r--r--video.install127
1 files changed, 0 insertions, 127 deletions
diff --git a/video.install b/video.install
deleted file mode 100644
index 7e66988..0000000
--- a/video.install
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-// $Id$
-
-/**
- * @file
- * Provides installation functions for video.module.
- *
- * @author Heshan Wanigasooriya <heshan at heidisoft dot com>
- * <heshanmw at gmail dot com>
- * @todo
- */
-
-/**
- * Implementation of hook_schema().
- */
-function video_schema() {
- $schema['video_files'] = array(
- 'description' => t('Store video transcoding queue'),
- 'fields' => array(
- 'vid' => array(
- 'description' => t('Video id'),
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'fid' => array(
- 'description' => t('Original file id'),
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'nid' => array(
- 'description' => t('Node id'),
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'filename' => array(
- 'type' => 'varchar',
- 'length' => '255',
- 'default' => '',
- 'description' => t('The filename of the video.'),
- ),
- 'filepath' => array(
- 'type' => 'varchar',
- 'length' => '255',
- 'default' => '',
- 'description' => t('The filepath of the video.'),
- ),
- 'filemime' => array(
- 'type' => 'varchar',
- 'length' => '255',
- 'default' => '',
- 'description' => t('The filemime of the video.'),
- ),
- 'filesize' => array(
- 'description' => t('Filesize of the video.'),
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'dimensions' => array(
- 'type' => 'varchar',
- 'length' => '255',
- 'default' => '',
- 'description' => t('The dimensions of the video.'),
- ),
- 'status' => array(
- 'description' => t('Status of the transcoding'),
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'started' => array(
- 'description' => t('Started transcodings'),
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'completed' => array(
- 'description' => t('Transcoding completed'),
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- ),
- ),
- 'indexes' => array(
- 'status' => array('status'),
- 'file' => array('fid'),
- ),
- 'primary key' => array('vid'),
- );
- return $schema;
-}
-
-/**
- * Implementation of hook_uninstall().
- */
-function video_uninstall() {
- //@todo Need to drop all variables used in this module here.
-}
-
-/**
- * Update 6405
- * dropping video_rendering table and creating video_files
- * @return <type>
- */
-function video_update_6405() {
- $ret = array();
- $ret[] = update_sql("DROP TABLE IF EXISTS {video_rendering}");
- $ret[] = update_sql("DROP TABLE IF EXISTS {video_files}");
- $table = video_schema();
- db_create_table($ret, 'video_files', $table['video_files']);
- return $ret;
-}
-
-function video_update_6406() {
- drupal_set_message('The system has reset your thumbnail and ffmpeg command settings to their original state. If you made adjustments to these commands, you will have to reset them up.');
- //lets reset our ffmpeg system command variables.
- variable_set('video_ffmpeg_thumbnailer_options', '-i !videofile -an -y -f mjpeg -ss !seek -vframes 1 !thumbfile');
- variable_set('video_ffmpeg_helper_auto_cvr_options', '-y -i !videofile -f flv -ar 22050 -ab !audiobitrate -s !size -b !videobitrate -qscale 1 !convertfile');
- return array();
-}