Revision: 3860
Author:   seba.wagner
Date:     Fri Jun 24 08:51:46 2011
Log: FileExplorer: Possibility to upload and watch videos in the whiteboard
http://code.google.com/p/openmeetings/source/detail?r=3860

Added:
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/whiteboardVideoPlayer.lzx /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/resources/video.png
Modified:
 /trunk/singlewebapp/WebContent/languages/arabic.xml
 /trunk/singlewebapp/WebContent/languages/bulgarian.xml
 /trunk/singlewebapp/WebContent/languages/catalan.xml
 /trunk/singlewebapp/WebContent/languages/chinese simplified.xml
 /trunk/singlewebapp/WebContent/languages/chinese traditional.xml
 /trunk/singlewebapp/WebContent/languages/czech.xml
 /trunk/singlewebapp/WebContent/languages/danish.xml
 /trunk/singlewebapp/WebContent/languages/deutsch (studIP).xml
 /trunk/singlewebapp/WebContent/languages/deutsch.xml
 /trunk/singlewebapp/WebContent/languages/dutch.xml
 /trunk/singlewebapp/WebContent/languages/english.xml
 /trunk/singlewebapp/WebContent/languages/finnish.xml
 /trunk/singlewebapp/WebContent/languages/french.xml
 /trunk/singlewebapp/WebContent/languages/galician.xml
 /trunk/singlewebapp/WebContent/languages/greek.xml
 /trunk/singlewebapp/WebContent/languages/hebrew.xml
 /trunk/singlewebapp/WebContent/languages/hungarian.xml
 /trunk/singlewebapp/WebContent/languages/indonesian.xml
 /trunk/singlewebapp/WebContent/languages/italian.xml
 /trunk/singlewebapp/WebContent/languages/japanese.xml
 /trunk/singlewebapp/WebContent/languages/korean.xml
 /trunk/singlewebapp/WebContent/languages/persian.xml
 /trunk/singlewebapp/WebContent/languages/polish.xml
 /trunk/singlewebapp/WebContent/languages/portugues brazil.xml
 /trunk/singlewebapp/WebContent/languages/portugues.xml
 /trunk/singlewebapp/WebContent/languages/russian.xml
 /trunk/singlewebapp/WebContent/languages/slovak.xml
 /trunk/singlewebapp/WebContent/languages/spanish.xml
 /trunk/singlewebapp/WebContent/languages/swedish.xml
 /trunk/singlewebapp/WebContent/languages/thai.xml
 /trunk/singlewebapp/WebContent/languages/turkish.xml
 /trunk/singlewebapp/WebContent/languages/ukrainian.xml
/trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/baseDrawObject.lzx /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/library.lzx /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/library.lzx /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/baseFileExplorerItem.lzx /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/videoFileExplorerItem.lzx

=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/whiteboardVideoPlayer.lzx Fri Jun 24 08:51:46 2011
@@ -0,0 +1,260 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<library>
+
+<class name="whiteboardVideoPlayer" extends="guiPresenter" y="100"
+    docking="true" resizeable="true" closable="false" width="322"
+    x="$once{ parent.width/2 - this.width/2 }" height="300">
+
+       <attribute name="fileExplorerItemId" value="0" type="number" />
+
+    <attribute name="timerDelegate" value="null" />
+    <attribute name="timerDelegateStarted" value="false" type="boolean" />
+
+    <attribute name="deltaInSeconds" value="0" type="number" />
+
+    <attribute name="recordingName" value="" type="string" />
+
+    <attribute name="isLoaded" value="false" type="boolean" />
+
+       <attribute name="sendInit" value="false" type="boolean" />
+
+       <handler name="oninit">
+               this.timerDelegate = new LzDelegate( this, "calcProgressBar" );
+ if ($debug) Debug.write("whiteboardVideoPlayer :: ",this.fileExplorerItemId);
+
+               this.recordingName = "UPLOADFLV_" + this.fileExplorerItemId + 
".flv";
+
+               this.copyFileToCurrentRoom.doCall();
+       </handler>
+
+       <handler name="onclose">
+               this.stopStreamPlay();
+       </handler>
+
+       <!--
+       public Long copyFileToCurrentRoom(String SID, Long flvFileExplorerId)
+        -->
+ <netRemoteCallHib name="copyFileToCurrentRoom" funcname="fileservice.copyFileToCurrentRoom"
+        remotecontext="$once{ canvas.thishib }" >
+ <netparam><method name="getValue">return canvas.sessionId;</method></netparam> + <netparam><method name="getValue">return parent.parent.fileExplorerItemId;</method></netparam>
+        <handler name="ondata" args="value">
+               <![CDATA[
+                   if ($debug) Debug.write("deleteFileOrFolder: ",value);
+                   //if (value > 0) {
+                   //  parent.startStream();
+                   //}
+                   parent.isLoaded = true;
+
+ var downloadurl = 'http://'+canvas.rtmphostlocal+':'+canvas.red5httpport + +canvas.httpRootKey+'DownloadHandler?fileName=UPLOADFLV_'+parent.fileExplorerItemId+'.jpg' + +'&moduleName=lzRecorderApp&parentPath=&room_id='
+                                +'&sid='+canvas.sessionId;
+
+ parent._content._preview.imagePreview.setAttribute("src",downloadurl)
+
+                parent._content._preview.bringToFront();
+
+                   if (parent.sendInit) {
+                       parent.parent.sendNewVideoRemote(parent);
+                   }
+            ]]>
+        </handler>
+    </netRemoteCallHib>
+
+    <method name="startStreamPlay">
+       parent.playFLV(this,true);
+       this.startStream();
+    </method>
+
+    <method name="stopStreamPlay">
+       parent.playFLV(this,false);
+       this.stopStream();
+    </method>
+
+    <method name="playRemote">
+       this.startStream();
+    </method>
+
+    <method name="stopRemote">
+        this.stopStream();
+    </method>
+
+    <method name="startStream">
+
+       if (!this.isLoaded) {
+               return;
+       }
+
+       if ($debug) Debug.write("startStream ",this.recordingName);
+
+       if (this.recordingName != "") {
+
+               this.isPaused = false;
+
+               if (!this.timerDelegateStarted) {
+                       this.timerDelegateStarted = true;
+                lz.Timer.addTimer( this.timerDelegate , 1000 );
+            }
+
+               this._content._videostream.bringToFront();
+
+               if ($debug) Debug.write("PLAY STREAM ",this.recordingName);
+
+            this._content._videostream.playStream(this.recordingName,0);
+       }
+    </method>
+
+    <method name="calcProgressBar">
+       <![CDATA[
+
+ //if ($debug) Debug.write("this._content._videostream._ns",this._content._videostream._ns);
+
+          var flvTime = this._content._videostream._ns.time;
+
+ this._progress._progressbar._pointer.setAttribute("visibility","visible");
+
+          var tString = "";
+
+          if (flvTime > 60) {
+
+                  var minutes = Math.floor(flvTime/60);
+
+                  var restSeconds = Math.round(flvTime) - ( minutes * 60 );
+
+                  tString = minutes + " min " + restSeconds + " sec";
+
+          } else {
+
+                  tString = Math.round(flvTime) + " sec";
+
+          }
+
+          this._progress._progressbar._time.setAttribute("text",tString);
+
+ var tNewX = Math.round((this._progress._progressbar.width / this.deltaInSeconds) * flvTime);
+
+          this._progress._progressbar._pointer.setAttribute("x",tNewX);
+
+          lz.Timer.addTimer( this.timerDelegate , 1000 );
+
+       ]]>
+    </method>
+
+       <method name="stopStream">
+       if (this.timerDelegateStarted) {
+               this.timerDelegateStarted = false;
+            lz.Timer.removeTimer( this.timerDelegate );
+        }
+        this._progress._progressbar._time.setAttribute("text","");
+        this._progress._progressbar._pointer.setAttribute("x",0);
+        this._content._preview.bringToFront();
+        this._content._videostream.stop();
+    </method>
+
+    <method name="toggleStream">
+       if (canvas.ismoderator) {
+               this.startStreamPlay();
+       }
+    </method>
+
+       <view name="_content" height="${ parent.height-62 }"
+                 y="22" x="1" width="${ parent.width-1 }">
+
+ <view name="_preview" width="${parent.width}" height="${parent.height}" bgcolor="0x000000">
+               <image name="imagePreview" stretches="both"
+                          width="${parent.width}" height="${parent.height}" />
+            <handler name="onclick">
+               if ($debug) Debug.write("onclick -- toggleStream");
+                parent.parent.toggleStream();
+            </handler>
+            <view width="60" height="40" valign="middle" opacity="0.7"
+                 align="center" bgcolor="0xFFFFFF">
+ <view resource="lz_recorder_play" valign="middle" align="center" />
+            </view>
+        </view>
+
+           <baseVideoStream name="_videostream" bgcolor="0x000000" y="0"
+                 width="${ parent.width }" height="${ parent.height }">
+               <handler name="onPlayStatus" args="info">
+                       if ($debug) Debug.write("onPlayStatus ",info);
+                       if (info.code ==  "NetStream.Play.Complete" ) {
+                               parent.parent.stopStream();
+                       }
+               </handler>
+               <handler name="onMetaData" args="info">
+                   if ($debug) Debug.warn("onMetaData ",info);
+                   parent.parent.deltaInSeconds = Number(info.duration);
+               </handler>
+           </baseVideoStream>
+
+       </view>
+
+ <view name="_progress" height="18" y="${ parent.height - 40 }" width="${ parent.width-2 }"
+                         x="1" bgcolor="$once{ canvas.basebgcolorizer }">
+
+ <view resource="flv_recorder_play_small_rsc" y="1" height="16" width="16"
+                     bgcolor="$once{ canvas.baseMouseOvercolorizer }">
+               <handler name="onmouseover">
+                this.setAttribute("bgcolor",0xFFFFFF);
+            </handler>
+            <handler name="onmouseout">
+                this.setAttribute("bgcolor",canvas.baseMouseOvercolorizer);
+            </handler>
+               <handler name="onclick">
+                       if (canvas.ismoderator) {
+                            parent.parent.startStreamPlay();
+                       }
+               </handler>
+               <labelTooltip labelid="875" />
+       </view>
+
+       <view name="_progressbar" x="16" width="${ parent.width - 32 }" y="1"
+                 height="16" bgcolor="$once{ canvas.baseMouseOvercolorizer }">
+
+ <view x="0" width="${ parent.width }" y="0" height="16" bgcolor="0xFFFFFF" opacity="0.5" />
+
+               <handler name="onclick">
+                       //parent.parent.seekStream(this.getMouse("x"));
+               </handler>
+
+ <view name="_pointer" resource="flv_progress_pointer_rsc" visibility="hidden" />
+
+               <text name="_time" resize="true" fontsize="10" />
+
+               <text name="_duration" align="right" resize="true" fontsize="10" 
/>
+
+       </view>
+
+ <view resource="flv_recorder_stop_small_rsc" align="right" y="1" height="16" width="16"
+                 bgcolor="$once{ canvas.baseMouseOvercolorizer }">
+               <handler name="onmouseover">
+                       this.setAttribute("bgcolor",0xFFFFFF);
+               </handler>
+               <handler name="onmouseout">
+                this.setAttribute("bgcolor",canvas.baseMouseOvercolorizer);
+            </handler>
+            <handler name="onclick">
+               if (canvas.ismoderator) {
+                    parent.parent.stopStreamPlay();
+               }
+            </handler>
+            <labelTooltip labelid="876" />
+        </view>
+
+    </view>
+
+    <simpleLabelButton labelid="85" width="100" x="${ parent.width-118 }"
+                                  y="${ parent.height-20 }" >
+        <handler name="onclick">
+            if (canvas.ismoderator) {
+               this.parent.stopRemote();
+                this.parent.parent.deleteItemByName(this.parent.name);
+                this.parent.parent.deleteItemByNameSync(this.parent.name);
+            }
+        </handler>
+    </simpleLabelButton>
+
+</class>
+
+</library>
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/resources/video.png Fri Jun 24 08:51:46 2011
@@ -0,0 +1,17 @@
+‰PNG
+ + +IHDR óÿa gAMA ¯È7 Šé tEXtSoftware Adobe ImageReadyqÉe< ‘IDATxÚb¬ªª:íááaÌÀÀð Ð ###œ
+’gbbb`ggg<pàÀ÷––– € bرcÇ ÿxÀ¿ ÿÀ  ~ÿþ
+¦/]ºô_^^þ @ ± %ÿ L J€m a ­ ›`| ’OŸ>1¼{÷Ž ››‡ABB
+, ’  Àò ã  ‚ ¬ ÷ý Ïg „‰™
+sÆ8·
+ú½þ "r@Ó½ÉLª
+wg-'"03T•9Çqú>ÿ nÀû÷ï ^¿~ÍðáÃ'†[·n | ÏpåÊ Q†ÏŸ?2èèè0¨««1())2üùó î € b ÐÑ£Ç ¶oß t"/Ãׯ_ 455 ôõõ €þd àgàááa`cc Ûüë×/¸ Ä N°$;; ƒ°° //7ëW/ ~üøÁðöí; Ÿ è ' **Ê@o„‚½ Ä ‹:IIq ++K ##3†ïß¿ Mÿùó '' Ð Ÿ@š“AQñ +Ы¯ rÿ`aÀ @ð0 bPSÓ úQ ÿáq +P +Š™ ?¾3œ? š d'Ìå w H!ȹ_¾| ' d 2 ä2Htÿƒ‡ @ Á] ¢ALˆÁÿ Ð %H1Hîï_DÚ € ‚»€‰‰ ˜PÞ‚ã d P T##Ü ß¾} { ä +˜>€ b ™ +,11a`:xÉÀ µå?Ô% [ ÿþà -- N#°@ `t0‚L ųµµ Tâ ÔÉÿàÞ ±a– Ò È%L ÄrîÜ¹ïæææ
+°¼     –  1///ÃåË— )ôó/€ bäææN”’’J ªe e>ô¬Œ
+  1 f &û¯ïß¿Ÿ  `   ¼¿Õêõ¹      IEND®B`‚
=======================================
--- /trunk/singlewebapp/WebContent/languages/arabic.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/arabic.xml Fri Jun 24 08:51:46 2011
@@ -4078,4 +4078,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/bulgarian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/bulgarian.xml Fri Jun 24 08:51:46 2011
@@ -4076,4 +4076,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/catalan.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/catalan.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/chinese simplified.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/chinese simplified.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/chinese traditional.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/chinese traditional.xml Fri Jun 24 08:51:46 2011
@@ -4083,4 +4083,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/czech.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/czech.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/danish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/danish.xml Fri Jun 24 08:51:46 2011
@@ -4076,4 +4076,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/deutsch (studIP).xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/deutsch (studIP).xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/deutsch.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/deutsch.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/dutch.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/dutch.xml Fri Jun 24 08:51:46 2011
@@ -4076,4 +4076,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/english.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/english.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/finnish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/finnish.xml Fri Jun 24 08:51:46 2011
@@ -4076,4 +4076,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/french.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/french.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/galician.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/galician.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/greek.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/greek.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/hebrew.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/hebrew.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/hungarian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/hungarian.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/indonesian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/indonesian.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/italian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/italian.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/japanese.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/japanese.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/korean.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/korean.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/persian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/persian.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/polish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/polish.xml Fri Jun 24 08:51:46 2011
@@ -4151,4 +4151,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/portugues brazil.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/portugues brazil.xml Fri Jun 24 08:51:46 2011
@@ -4083,4 +4083,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/portugues.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/portugues.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/russian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/russian.xml Fri Jun 24 08:51:46 2011
@@ -4083,4 +4083,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/slovak.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/slovak.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/spanish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/spanish.xml Fri Jun 24 08:51:46 2011
@@ -4085,4 +4085,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/swedish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/swedish.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/thai.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/thai.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/turkish.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/turkish.xml Fri Jun 24 08:51:46 2011
@@ -4076,4 +4076,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/languages/ukrainian.xml Sun Jun 19 01:03:45 2011 +++ /trunk/singlewebapp/WebContent/languages/ukrainian.xml Fri Jun 24 08:51:46 2011
@@ -4077,4 +4077,7 @@
   <string id="1357" name="hide_top_bar">
     <value>Hide topbar</value>
   </string>
+  <string id="1358" name="fileExplorer">
+    <value>Play video</value>
+  </string>
 </language>
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/baseDrawObject.lzx Mon Oct 11 08:09:56 2010 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/baseDrawObject.lzx Fri Jun 24 08:51:46 2011
@@ -711,6 +711,114 @@
             }
                ]]>
     </method>
+
+
+
+
+
+    <method name="playVideoSynced" args="fileExplorerItemId,fileName">
+        <![CDATA[
+
+ if ($debug) Debug.write("playVideoSynced : ",fileExplorerItemId);
+
+            var tName = 'flv'+this.getCounter();
+
+            this.currentlayer = new lz.whiteboardVideoPlayer(this,{
+                                            name:tName,
+ fileExplorerItemId:fileExplorerItemId,
+                                            title:fileName,
+                                            sendInit:true
+                                        });
+
+            this.layers.push(this.currentlayer);
+        ]]>
+    </method>
+
+    <method name="sendNewVideoRemote" args="refObj">
+        <![CDATA[
+
+ if ($debug) Debug.write("sendNewVideoRemote : ",refObj.fileExplorerItemId,refObj.title);
+
+ this.flvregisterFinal(refObj.name,refObj.x,refObj.y,refObj.width,refObj.height, + refObj.fileExplorerItemId,refObj.title,false,this.getZIndex());
+
+
+        ]]>
+    </method>
+
+ <method name="flvregisterFinal" args="newName,x,y,width,height,fileExplorerItemId,fileName,isPlaying,zIndex">
+        var actionObject = new Array();
+        actionObject[0] = 'flv';
+        actionObject[1] = fileExplorerItemId;
+        actionObject[2] = fileName;
+        actionObject[3] = isPlaying;
+        actionObject[4] = zIndex;//-8
+        actionObject[5] = null;//-7
+        actionObject[6] = this.counter;//-6
+        actionObject[7] = x;//-5
+        actionObject[8] = y;//-4
+        actionObject[9] = width;//-3
+        actionObject[10] = height;//-2
+        actionObject[11] = newName;//-1
+        this.baseactionobjectList.push(actionObject);
+        this.onsharedMessage('draw',actionObject);
+    </method>
+
+    <method name="drawFlvToHistory" args="lastActionObject,parentView">
+        <![CDATA[
+
+ if ($debug) Debug.write("drawFlvToHistory PLAY :: ",lastActionObject[3]);
+
+            this.currentlayer = new lz.whiteboardVideoPlayer(this,{
+ name:lastActionObject[lastActionObject.length-1], + fileExplorerItemId:lastActionObject[1],
+                                            title:lastActionObject[2],
+ x:lastActionObject[lastActionObject.length-5], + y:lastActionObject[lastActionObject.length-4], + width:lastActionObject[lastActionObject.length-3], + height:lastActionObject[lastActionObject.length-2]
+                                        });
+
+            if (lastActionObject[3]) {
+                this.currentlayer.playRemote();
+            }
+
+            this.layers.push(this.currentlayer);
+
+        ]]>
+    </method>
+
+    <method name="playFLV" args="refObj,play">
+        <![CDATA[
+
+            for (var eg=0;eg<this.baseactionobjectList.length;eg++){
+ if (this.baseactionobjectList[eg][this.baseactionobjectList[eg].length-1]==refObj.name) { + ////Debug.write("Found Object: ",this.baseactionobjectList[eg]);
+
+                    this.baseactionobjectList[eg][3] = play;
+
+ if ($debug) Debug.write("playFLV :: ",this.baseactionobjectList[eg]); + this.onsharedMessage('flv',this.baseactionobjectList[eg]);
+
+                    break;
+                }
+            }
+
+        ]]>
+    </method>
+
+    <method name="playFLVRemote" args="actionObject">
+
+ var tObj = this.getObjectByName(actionObject[actionObject.length-1]);
+
+        if (actionObject[3]) {
+            tObj.playRemote();
+        }
+        if (!actionObject[3]) {
+            tObj.stopRemote();
+        }
+
+    </method>

 </class>

=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/library.lzx Mon Oct 12 03:58:23 2009 +++ /trunk/singlewebapp/WebContent/openmeetings/modules/conference/whiteboard/base/library.lzx Fri Jun 24 08:51:46 2011
@@ -14,6 +14,7 @@
        <include href="baseDrawImage.lzx" />
        <include href="baseDrawSave.lzx" />
        <include href="baseDrawWords.lzx" />
+       <include href="whiteboardVideoPlayer.lzx" />
        <include href="remoteWhiteboard.lzx" />

     <class name="whiteBoardPointer" extends="view"
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/library.lzx Mon May 30 13:39:45 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/library.lzx Fri Jun 24 08:51:46 2011
@@ -25,7 +25,8 @@
         <frame src="resources/folder_blue.png" />
         <frame src="resources/folder_blue_open.png" />
     </resource>
-
+
+    <resource name="file_explorer_video_rsc" src="resources/video.png" />
<resource name="file_explorer_add_file_rsc" src="resources/viewmag_plus.png" /> <resource name="file_explorer_add_folder_rsc" src="resources/folder_new.png" />
     <resource name="file_explorer_reload_rsc" src="resources/reload.png" />
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/baseFileExplorerItem.lzx Mon May 30 13:39:45 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/baseFileExplorerItem.lzx Fri Jun 24 08:51:46 2011
@@ -226,7 +226,9 @@
             this.singleClickStarted = false;
             lz.Timer.removeTimer( this.singleClickDelegate );

-            if (this.isWmlFile){
+            if (this.isVideo) {
+               this.playVideo();
+            } else if (this.isWmlFile){
                                this.loadWmlFile();
                        } else if (this.isFolder) {
                 this.doSingleClick(null);
@@ -346,7 +348,7 @@
fileName:fileExplorerItem.fileName, fileHash:fileExplorerItem.fileHash,
                                             isFolder:false,isImage:true,
- fileIcon:'file_explorer_image_rsc', + fileIcon:'file_explorer_video_rsc', refObjListRoot:this.refObjListRoot
                                         });
                 } else if (fileExplorerItem.isStoredWmlFile) {
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/videoFileExplorerItem.lzx Fri Apr 15 04:58:38 2011 +++ /trunk/singlewebapp/WebContent/openmeetings/plugins/fileexplorer/treeitems/videoFileExplorerItem.lzx Fri Jun 24 08:51:46 2011
@@ -29,7 +29,7 @@
<text name="_fileName" x="36" text="${ parent.fileName }" fontsize="10" resize="true" y="1">
                <contextmenu>

-                       <contextmenuitem caption="$once{ canvas.getLabelName(1074) 
}"
+                       <contextmenuitem caption="$once{ canvas.getLabelName(1358) 
}"
                                                         
onselect="parent.parent.parent.playVideo()" />

                        <contextmenuitem caption="$once{ canvas.getLabelName(711) 
}"

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to