source: extensions/gsdl-video/trunk/macros/document.dm@ 19965

Last change on this file since 19965 was 19965, checked in by davidb, 15 years ago

Macros to support video player

File size: 3.1 KB
Line 
1package document
2
3_baseurl_{_httpassocdir_/_1_}
4
5
6_videoplayer_{
7
8<div class="player" id="FlowPlayerDiv" style="width: 352px; height: 290px">
9 <object type="application/x-shockwave-flash"
10 data="_httpprefix_/ext/video/web/flash/FlowPlayerLP.swf"
11 width="352" height="290" id="FlowPlayer">
12 <param name="allowScriptAccess" value="always" />
13 <param name="movie" value="_httpprefix_/ext/video/web/flash/FlowPlayerLP.swf" />
14 <param name="quality" value="high" />
15 <param name="scaleMode" value="showAll" />
16 <param name="allowfullscreen" value="true" />
17 <param name="allowNetworking" value="all" />
18 <param name="flashvars" value="config=\{
19 autoPlay: _If_(_3_,_3_,false),
20 autoBuffering: true,
21 loop: false,
22 initialScale: 'orig',
23 showLoopButton: false,
24 showPlayListButtons: false,
25 allowFullScreen: true,
26 useNativeFullScreen: true,
27 progressBarColor2: '0x308030',
28 progressBarColor1: '0x60d060',
29 videoFile: '_baseurl_(_1_)/_2_',
30 streamingServer: 'apache'
31 \}" />
32 </object>
33</div>
34}
35
36_audioplayer_{
37
38<div class="player" id="FlowPlayerDiv">
39 <object type="application/x-shockwave-flash"
40 data="_httpprefix_/ext/video/web/flash/FlowPlayerLP.swf"
41 width="352" height="22" id="FlowPlayer">
42 <param name="allowScriptAccess" value="always" />
43 <param name="movie" value="_httpprefix_/ext/video/web/flash/FlowPlayerLP.swf" />
44 <param name="quality" value="high" />
45 <param name="scaleMode" value="showAll" />
46 <param name="allowfullscreen" value="false" />
47 <param name="allowNetworking" value="all" />
48 <param name="flashvars" value="config=\{
49 autoPlay: _If_(_3_,_3_,false),
50 autoBuffering: true,
51 loop: false,
52 initialScale: 'orig',
53 showLoopButton: false,
54 showPlayListButtons: false,
55 showFullScreenButton: false,
56 showMenu: false,
57 allowFullScreen: false,
58 progressBarColor2: '0x308030',
59 progressBarColor1: '0x60d060',
60 videoFile: '_baseurl_(_1_)/_2_',
61 streamingServer: 'apache'
62 \}" />
63 </object>
64</div>
65}
66
67
68_pagescriptfileextra_ {
69
70<script type="text/javascript" src="_httpvideoscript_/document.js"></script>
71
72}
73
74
75# Don't bother going through the "document could be large, continue?"
76# => go directly there
77
78_imageexpandtext_ {_docbutton_(_httpcurrentdocument_&amp;gt=2,_textEXPANDTEXT_,_texticonexpandtext_)}
79
80_optnavigationbar_ {
81
82_If_("_cgiargonlytext_" eq "1" ,,
83
84_:optnavigationbar_
85)
86}
87
88
89_blankheader_ {}
90
91# header overridden for text pages
92_textheader_ {
93_cgihead_
94_htmlhead_
95_blankheader_
96_startspacer_
97
98_If_("_cgiargonlytext_" eq "1" ,,
99
100<!-- document:textheader -->
101<div id="banner">
102<div class="pageinfo"><p class="bannerlinks">_globallinks_</p></div>
103<br>
104</div> <!-- banner -->
105)
106}
107
108_textheader_ [v=1] {_cgihead_
109_htmlhead_
110_globallinks_
111}
112
113
114
115_footer_ {
116
117_If_("_cgiargonlytext_" eq "1" ,,
118
119</div> <!-- document:footer -->
120
121<div class="navarrowsbottom">
122_navarrowsbottom_
123</div>
124}
125
126_endspacer__htmlfooter_
127}
128
Note: See TracBrowser for help on using the repository browser.