User Tag List

Results 1 to 3 of 3

Thread: Do you know way to capture (and save) the screen of the HTML5 application?

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question Do you know way to capture (and save) the screen of the HTML5 application?

    Hello.
    Do you know way to capture (and save) the screen of the HTML5 application?
    Can the CF2.5 HTML5 application capture the screen (canvas) and save to local (Maybe use some javascripts?)?

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    The "canvas.toDataURL" function can use in CF2.5 HTML5 application?

    Do anyone know any example?

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry if I came late here, but I just had this same problem and I┤m trying to spread the word of how did I manage to do it.
    first, yes the canvas.toDataURL function works, you write it in the html file as a javascript function and ejecute it from MMF2.5 with the HTML5 object.
    But for saving the screenshot I found a quicker way:

    In MMF2.5 just make a event that load a javascript function using the HTML5 object. (In this case "save")
    Use the lib reimg.js https://github.com/gillyb/reimg
    Place the reimg.js within your files so the html can find and load it.
    And finally in the html file just add this:
    <script src="reimg.js"></script>
    <script>
    function save()
    {
    var canvas=document.getElementById('MMFCanvas');
    ReImg.fromCanvas(canvas).downloadPng()
    return ("Save")
    };
    </script>

    PS: the return part in the javascript is no needed but I use it to have a feedback in MMF2.5 to see if the function was beeing executed.

Similar Threads

  1. Screen Capture Application Bug
    By drnebula in forum File Archive
    Replies: 1
    Last Post: 16th July 2011, 03:35 PM
  2. Screen Capture Application Bug
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 13th July 2011, 07:26 PM
  3. Screen Capture Object - load capture from clipboar
    By Maarten in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 3rd December 2010, 09:09 PM
  4. Capture Screen and Save File
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th March 2007, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •