File: MV_DefaultSettings.php

package info (click to toggle)
mediawiki-metavidwiki 0.2-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,864 kB
  • ctags: 2,647
  • sloc: php: 10,652; sql: 65; makefile: 34; xml: 34
file content (170 lines) | stat: -rw-r--r-- 6,253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?
if ( !defined( 'MEDIAWIKI' ) )  die( 1 );

###
# This is the path to your installation of Metavid Wiki as
# seen from the web. Change it if required ($wgScriptPath is the
# path to the base directory of your wiki). No final slash.
##
$mvgScriptPath = $wgScriptPath . '/extensions/MetavidWiki';

###
# This is the path to your installation of Semantic MediaWiki as
# seen on your local file system. Used for PHP file includes
##
$mvgIP = $IP . '/extensions/MetavidWiki';
  
//include the global functions & init the extension 
include_once('MV_GlobalFunctions.php');


//if the search portlet should autoComplete
//(causes the inclution of jquery into every page.. can slow things down a bit)   
$mvEnableAutoComplete=true;

//if you want every page have the little powered by metavid software link 
//(note this is done with javascript rewrite client side to avoid complicated skin 
//(normally you could just add it to your site skin)  
$mvEnableJSLinkBack=true;

//if you want mvd links to be rewritten client side as inline movie clips and link to the stream page
$mvEnableJSMVDrewrite=true;

##########################
# semanticWiki integration options
##########################
//if you want to include spoken by relation in search results:  
$mvSpokenByInSearchResult = true;

#########################
# metavid paths 
# @@todo clean up with internal handlers for annodex and images
# use the mediaWiki defaults for storage of media  
##########################

//define the image location:
//$mvImageWebLoc ='http://metavid.ucsc.edu/image_media/';

//if we should load images from an external server:  
$mvExternalImages = false;
//path to metavidWiki install that is serving images: 
$mvExternalImgServerPath = 'http://mvprime.cse.ucsc.edu/wiki/index.php';

$mvWebImgLoc = $mvgScriptPath . '/stream_images';
//full local path for images (if hosted locally) 
$mvLocalImgLoc = $mvgIP . '/stream_images'; 

//if mediaWiki should serve up redirects to image file path or have php send the image via GD
//if served directly its one less round trip to the server but may tax the server
// a bit more than having apache serving the file 
$mvServeImageRedirect=false; 

//the time in seconds of between image frames generated from movie clips.
//(set pretty high for the metavid context where we load the images via scripts 
// (early on we did less frequent image grabs)
//normally you would want a lower value like 5 seconds or so  
$mvImageGranularityRate = '600'; 
//the ffmpeg command to generate thumbnail (to disable generating images set to '')
$mvShellOggFrameGrab = '';
 
#define the video media locations based on path/server names 
$mvVideoArchivePaths['mvprime']= 'http://metavid.ucsc.edu/media/';
$mvVideoArchivePaths['cap1'] = 'http://128.114.20.64/media/';

$mvDefaultVideoQualityKey = 'mv_ogg_low_quality';

#local path to video archive (if hosted locally)
$mvLocalVideoLoc = '/metavid/video_archive';

#default clip length
$mvDefaultClipLength = 30;
$mvDefaultClipRange = 10;

/*how many seconds to display of the video in the default Metavid:stream_name page */
$mvDefaultStreamViewLength = 60*20; //20 min

//default aspect ratio (should be derived from media resolution once we integrate with oggHandler)
$mvDefaultAspectRatio = .75;

//limit for media search results:
$mvMediaSearchResultsLimit = 100; 

#define how offten (in seconds) clients do http pull requests
#to get new info when watching live broadcasts
$mvLiveUpdateInterval = 5;

//should be the same resolution as webstream encode.
$mvDefaultVideoPlaybackRes = '320x240';
$mvDefaultSearchVideoPlaybackRes='320x240';
$mvDefaultVideoIconSize = '80x60';

/*
 * All Available meta data layers
 * these type keys are used to allow multiple layers of metadata per stream.
 * These values key into template_names, msg_descriptions, and application logic )
 * Different languages should be in different tracks and documentation should be clear
 * to insure data goes into its associative layer.
 */
$mvMVDTypeAllAvailable = array('ht_en','anno_en','thomas_en');

/*
 * the default display set of layers (must be a subset of $mvMVDTypeAllAvaliable)
 * note: this is equivalent to ?mvd_tracks=ht_en,anno_en  in the url for the stream page.
 * this also dictates the default search layers
*/ 
$mvMVDTypeDefaultDisp =array('ht_en','anno_en'); 

###################
# Special Pages with Interface functions
###################
//the wiki image page/image for missing person thumbnail:
define('MV_MISSING_PERSON_IMG','Missing person.jpg');


######
# the metavid table names:
#######
$mvStreamTable 		= 'mv_streams';
$mvStreamFilesTable	= 'mv_stream_files';
$mvIndexTableName 	= 'mv_mvd_index';
$mvStreamImageTable = 'mv_stream_images';
$mvUrlCacheTable 	= 'mv_url_cache';

//whether to count found results (can take lots of time on big result sets)
$mvDo_SQL_CALC_FOUND_ROWS = true;


#########
# Stream Types & User Rights
# @@todo should really integrate "streams" with "media"
# here you can control what rights 'sysop', 'bot', 'user', 'anonymous',  have in
# adding streams
# note: all streams are treated equally once added to the system 
# (this only control import types)
#
# type: 	[metavid_file] -- used for pointing to an existing file on the server
#			[metavid_live] -- used for the setting up the scripts for a live stream. 
#			[upload_file]	-- used video file uploads 
#			[external_file] -- used to add external files via http urls (such as a file from archive.org)
$mvStreamTypePermission['metavid_file']= array('sysop', 'bot');
$mvStreamTypePermission['metavid_live']= array();
$mvStreamTypePermission['upload_file']= array();
$mvStreamTypePermission['external_file']=array();

$wgGroupPermissions['user']['mv_delete_mvd'] = true;
$wgGroupPermissions['sysop']['mv_edit_stream']=true;
$wgGroupPermissions['bot']['mv_edit_stream']=true;
###
# If you already have custom namespaces on your site, insert
# $mvNamespaceIndex = ???; in your config before including the settings
# should be larger than 100 and if you put in a default value
# if your using semantic wiki just init the semantic wiki namespace
# and metavid will take subsequent NS values accordingly. 
## 
if (!isset($mvNamespaceIndex)) {
	mvInitNamespaces(100);
} else {
	mvInitNamespaces();
}

?>