You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Susheel Jalali <Su...@Coscend.com> on 2015/12/19 18:03:50 UTC

How to Save and Export Whiteboard Content

Dear OpenMeetings Developers,

We are seeking your guidance to solve the following issue we are facing 
regarding an enhancement to downloading saved file from file explorer.

When we draw/ write on Whiteboard, and click to Save/Export as JPG or 
SVG, it creates a file in File Explorer.  We would like to download it.

When we save something from whiteboard, it creates a File in Explorer, 
and also a WML file containing XML descriptions, whose name uses a 
hashcode e.g. 8b46d0a1e2fdf52761c74b16f26f02d4.wml.

    ·Does the WML file contain complete information, or any other hidden
    file is needed along with it to view the saved content?

    ·What method should be created and/or called from the click handler
    for this, and in which file?

    ·What is the process and logic to use this output so it can be used
    to view the exported and saved image outside of OpenMeetings?

Here is the related debugger output for this, but it was not very 
informative for this purpose.

###### onsharedMessage draw «Array(19)#446| ['drawarrow', 42576, 4, 
16737792, 1, 1, 1, 92, 0, 0, 37, 4, null, 0, 268, 104, 92, 37, 
'drawarrow_1450510664130']»
INFO: ..... end typing  6dabf36d499d982511bcc63e14bf4e41

setSelection 
#main_content/@_content/@inner/flexibleConferenceRoom/@_whiteboard/multiWhiteboardPanel/@panelArea/mainToolsTopPanel/@_tools/@saveobj 

sendObject doSave:  «Array(4)#403| [['paint', [['point', 90, 6, 90, 6], 
['point', 90, 6, 90, 31], ['point', 90, 31, 90, 60], ['point', 90, 60, 
90, 61], ['point', 90, 61, 90, 68], ['point', 90, 68, 90, 74], ['point', 
90, 74, 90, 75], ['point', 90, 75, 89, 75], ['point', 89, 75, 82, 75], 
['point', 82, 75, 73, 75], ['point', 73, 75, 45, 76], ['point', 45, 76, 
33, 78], ['point', 33, 78, 29, 78], ['point', 29, 78, 28, 78], ['point', 
28, 78, 27, 78], ['point', 27, 78, 26, 78], ['point', 26, 78, 23, 78], 
['point', 23, 78, 21, 78], ['point', 21, 78, 19, 78], ['point', 19, 78, 
18, 78], ['point', 18, 78, 17, 78], ['point', 17, 78, 16, 78], ['point', 
16, 78, 15, 78], ['point', 15, 78, 14, 78], ['point', 14, 78, 13, 78], 
['point', 13, 78, 11, 78], ['point', 11, 78, 9, 78], ['point', 9, 78, 8, 
78], ['point', 8, 78, 7, 78], ['point', 7, 78, 6, 78], ['point', 6, 78, 
4, 77], ['point', 4, 77, 2, 77], ['point', 2, 77, 1, 77], ['point', 1, 
77, 0, 77], ['point', 0, 77, 0, 76], ['point', 0, 76, 0, 74], ['point', 
0, 74, 0, 73], ['point', 0, 73, 0, 72], ['point', 0, 72, 0, 69], 
['point', 0, 69, 0, 66], ['point', 0, 66, 2, 61], ['point', 2, 61, 3, 
53], ['point', 3, 53, 5, 48], ['point', 5, 48, 7, 46], ['point', 7, 46, 
16, 40], ['point', 16, 40, 21, 36], ['point', 21, 36, 21, 35], ['point', 
21, 35, 22, 32], ['point', 22, 32, 23, 32], ['point', 23, 32, 27, 32], 
['point', 27, 32, 29, 32], ['point', 29, 32, 30, 31], ['point', 30, 31, 
32, 29], ['point', 32, 29, 35, 29], ['point', 35, 29, 36, 28], ['point', 
36, 28, 38, 27], ['point', 38, 27, 41, 26], ['point', 41, 26, 44, 26], 
['point', 44, 26, 46, 26], ['point', 46, 26, 47, 26], ['point', 47, 26, 
55, 25], ['point', 55, 25, 59, 24], ['point', 59, 24, 64, 22], ['point', 
64, 22, 67, 21], ['point', 67, 21, 68, 21], ['point', 68, 21, 68, 19], 
['point', 68, 19, 70, 18], ['point', 70, 18, 76, 15], ['point', 76, 15, 
82, 12], ['point', 82, 12, 85, 8], ['point', 85, 8, 86, 6], ['point', 
86, 6, 86, 5], ['point', 86, 5, 88, 2], ['point', 88, 2, 89, 1], 
['point', 89, 1, 89, 0]], '0x000000', 2, 16737792, 1, 1, null, 0, 170, 
91, 90, 78, 'paint_1450510469143'], ['paint', [['point', 0, 0, 0, 0], 
['point', 0, 0, 2, 2]], '0x000000', 2, 16737792, 1, 2, null, 0, 150, 
165, 0, 0, 'paint_1450510479303'], ['uline', 65535, 20, 0.5, 10, 10, 
143, 11, 3, null, 0, 135, 145, 153, 21, 'uline_1450510645527'], 
['drawarrow', 42576, 4, 16737792, 1, 1, 1, 92, 0, 0, 37, 4, null, 0, 
268, 104, 92, 37, 'drawarrow_1450510664130']]»
INFO: 
#main_content/@_content/@inner/saveAsWmlWindow/@_resizeview.setColor 
<ma...@_resizeview.setColor> 
is deprecated.  Use 
#main_content/@_content/@inner/saveAsWmlWindow/@_resizeview.setAttribute 
<ma...@_resizeview.setAttribute> 
instead
onkeydown:: keyCode =  16
onkeydown:: keyCode =  84
onkeydown:: keyCode =  69
onkeydown:: keyCode =  83
onkeydown:: keyCode =  84
onkeydown:: keyCode =  16
onkeydown:: keyCode =  83
onkeydown:: keyCode =  65
onkeydown:: keyCode =  86
onkeydown:: keyCode =  16
onkeydown:: keyCode =  69
onkeydown:: keyCode =  88
onkeydown:: keyCode =  80
onkeydown:: keyCode =  79
onkeydown:: keyCode =  82
onkeydown:: keyCode =  84
   saveAsImage:  74
getFileExplorerByRoomSelf doRequest 1 
http://coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4 

ondata 1 
  http://coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4 <%20http:/coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4>
ondata 2  «<anonymous extends='dataset'>#198#197| 
<getFileExplorerByRoomSelf><getFileExplorerByRoomSelfInternalResponse 
ns="http://services.axis.openmeetings.apache.org" 
<http://services.axis.openmeetings.apache.org>><return…»
roomHomeSize 0
roomHomeSize 0

-- 

Regards,

Susheel Jalali
Coscend Communications Solutions
www.Coscend.com <http://www.Coscend.com>
----------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
Messages from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Terms_and_Conditions.html

No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2016.0.7303 / Virus Database: 4489/11210 - Release Date: 12/19/15




Re: How to Save and Export Whiteboard Content

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Susheel,

previous code for WB export was commented-out due to instability
the idea was to to grab flash area using flex-bitmap and save it on client
(was reported as unstable by Sebastian)
or maybe initiate print-screen call using JS

any ideas are welcome

On Sat, Dec 19, 2015 at 11:03 PM, Susheel Jalali <Susheel.Jalali@coscend.com
> wrote:

> Dear OpenMeetings Developers,
>
> We are seeking your guidance to solve the following issue we are facing
> regarding an enhancement to downloading saved file from file explorer.
>
> When we draw/ write on Whiteboard, and click to Save/Export as JPG or SVG,
> it creates a file in File Explorer.  We would like to download it.
>
> When we save something from whiteboard, it creates a File in Explorer, and
> also a WML file containing XML descriptions, whose name uses a hashcode
> e.g. 8b46d0a1e2fdf52761c74b16f26f02d4.wml.
>
>    ·Does the WML file contain complete information, or any other hidden
>    file is needed along with it to view the saved content?
>
>    ·What method should be created and/or called from the click handler
>    for this, and in which file?
>
>    ·What is the process and logic to use this output so it can be used
>    to view the exported and saved image outside of OpenMeetings?
>
> Here is the related debugger output for this, but it was not very
> informative for this purpose.
>
> ###### onsharedMessage draw «Array(19)#446| ['drawarrow', 42576, 4,
> 16737792, 1, 1, 1, 92, 0, 0, 37, 4, null, 0, 268, 104, 92, 37,
> 'drawarrow_1450510664130']»
> INFO: ..... end typing  6dabf36d499d982511bcc63e14bf4e41
>
> setSelection
> #main_content/@_content/@inner/flexibleConferenceRoom/@_whiteboard/multiWhiteboardPanel/@panelArea/mainToolsTopPanel/@_tools/@saveobj
>
> sendObject doSave:  «Array(4)#403| [['paint', [['point', 90, 6, 90, 6],
> ['point', 90, 6, 90, 31], ['point', 90, 31, 90, 60], ['point', 90, 60, 90,
> 61], ['point', 90, 61, 90, 68], ['point', 90, 68, 90, 74], ['point', 90,
> 74, 90, 75], ['point', 90, 75, 89, 75], ['point', 89, 75, 82, 75],
> ['point', 82, 75, 73, 75], ['point', 73, 75, 45, 76], ['point', 45, 76, 33,
> 78], ['point', 33, 78, 29, 78], ['point', 29, 78, 28, 78], ['point', 28,
> 78, 27, 78], ['point', 27, 78, 26, 78], ['point', 26, 78, 23, 78],
> ['point', 23, 78, 21, 78], ['point', 21, 78, 19, 78], ['point', 19, 78, 18,
> 78], ['point', 18, 78, 17, 78], ['point', 17, 78, 16, 78], ['point', 16,
> 78, 15, 78], ['point', 15, 78, 14, 78], ['point', 14, 78, 13, 78],
> ['point', 13, 78, 11, 78], ['point', 11, 78, 9, 78], ['point', 9, 78, 8,
> 78], ['point', 8, 78, 7, 78], ['point', 7, 78, 6, 78], ['point', 6, 78, 4,
> 77], ['point', 4, 77, 2, 77], ['point', 2, 77, 1, 77], ['point', 1, 77, 0,
> 77], ['point', 0, 77, 0, 76], ['point', 0, 76, 0, 74], ['point', 0, 74, 0,
> 73], ['point', 0, 73, 0, 72], ['point', 0, 72, 0, 69], ['point', 0, 69, 0,
> 66], ['point', 0, 66, 2, 61], ['point', 2, 61, 3, 53], ['point', 3, 53, 5,
> 48], ['point', 5, 48, 7, 46], ['point', 7, 46, 16, 40], ['point', 16, 40,
> 21, 36], ['point', 21, 36, 21, 35], ['point', 21, 35, 22, 32], ['point',
> 22, 32, 23, 32], ['point', 23, 32, 27, 32], ['point', 27, 32, 29, 32],
> ['point', 29, 32, 30, 31], ['point', 30, 31, 32, 29], ['point', 32, 29, 35,
> 29], ['point', 35, 29, 36, 28], ['point', 36, 28, 38, 27], ['point', 38,
> 27, 41, 26], ['point', 41, 26, 44, 26], ['point', 44, 26, 46, 26],
> ['point', 46, 26, 47, 26], ['point', 47, 26, 55, 25], ['point', 55, 25, 59,
> 24], ['point', 59, 24, 64, 22], ['point', 64, 22, 67, 21], ['point', 67,
> 21, 68, 21], ['point', 68, 21, 68, 19], ['point', 68, 19, 70, 18],
> ['point', 70, 18, 76, 15], ['point', 76, 15, 82, 12], ['point', 82, 12, 85,
> 8], ['point', 85, 8, 86, 6], ['point', 86, 6, 86, 5], ['point', 86, 5, 88,
> 2], ['point', 88, 2, 89, 1], ['point', 89, 1, 89, 0]], '0x000000', 2,
> 16737792, 1, 1, null, 0, 170, 91, 90, 78, 'paint_1450510469143'], ['paint',
> [['point', 0, 0, 0, 0], ['point', 0, 0, 2, 2]], '0x000000', 2, 16737792, 1,
> 2, null, 0, 150, 165, 0, 0, 'paint_1450510479303'], ['uline', 65535, 20,
> 0.5, 10, 10, 143, 11, 3, null, 0, 135, 145, 153, 21,
> 'uline_1450510645527'], ['drawarrow', 42576, 4, 16737792, 1, 1, 1, 92, 0,
> 0, 37, 4, null, 0, 268, 104, 92, 37, 'drawarrow_1450510664130']]»
> INFO: #main_content/@_content/@inner/saveAsWmlWindow/@_resizeview.setColor
> <ma...@_resizeview.setColor>
> is deprecated.  Use
> #main_content/@_content/@inner/saveAsWmlWindow/@_resizeview.setAttribute
> <ma...@_resizeview.setAttribute>
> instead
> onkeydown:: keyCode =  16
> onkeydown:: keyCode =  84
> onkeydown:: keyCode =  69
> onkeydown:: keyCode =  83
> onkeydown:: keyCode =  84
> onkeydown:: keyCode =  16
> onkeydown:: keyCode =  83
> onkeydown:: keyCode =  65
> onkeydown:: keyCode =  86
> onkeydown:: keyCode =  16
> onkeydown:: keyCode =  69
> onkeydown:: keyCode =  88
> onkeydown:: keyCode =  80
> onkeydown:: keyCode =  79
> onkeydown:: keyCode =  82
> onkeydown:: keyCode =  84
>   saveAsImage:  74
> getFileExplorerByRoomSelf doRequest 1
> http://coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4
> ondata 1
> http://coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4
> <%20http:/
> coscend.com:5080/openmeetings/services/FileService/getFileExplorerByRoomSelfInternal?SID=a9dc6dba96cb83c9b1ea2f88a87308de&roomId=4
> >
> ondata 2  «<anonymous extends='dataset'>#198#197|
> <getFileExplorerByRoomSelf><getFileExplorerByRoomSelfInternalResponse ns="
> http://services.axis.openmeetings.apache.org" <
> http://services.axis.openmeetings.apache.org>><return…»
> roomHomeSize 0
> roomHomeSize 0
>
> --
>
> Regards,
>
> Susheel Jalali
> Coscend Communications Solutions
> www.Coscend.com <http://www.Coscend.com>
> ----------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
> Messages from Coscend Communications Solutions' posted at:
> http://www.Coscend.com/Terms_and_Conditions.html
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2016.0.7303 / Virus Database: 4489/11210 - Release Date: 12/19/15
>
>
>
>


-- 
WBR
Maxim aka solomax