Forum

screenshot not working in ie11 / edge

27 June 2018 15:20
the screenshot function main.canvas_data_url() does not seem to work in the ie11 or edge browsers.

the documentation is unclear on what the used callback function receives. In firefox and chrome, it returns a string with the screenshot url. in ie11 it instead returns an almost empty object.

we use it like this (simplified):

screenshot = function(callback){
m_main.canvas_data_url(callback, "image/jpeg");
}

var win = open("");
function imageCallback(imagepath){win.location.href = imagepath;}
screenshot(imageCallback);
03 July 2018 11:15
Reproduced, but solution is not found yet. The issue added to the task list.
Alexander (Blend4Web Team)
twitter
28 November 2018 20:08
note: calling the screenshot function also seems to break/disable motion blur both on safari and internet explorer 11

safari outputs the correct screenshot though

Edit: only disables motion blur sometimes, seems inconsisitent, does not happen at all today..
12 December 2018 07:25
hi

first…. Sorry, I'm not good at English

i found if i use ie browser
canvas_data_url API will callback blob object not blob url (like chrome

so my solution just use js FileReader() and readAsDataURL to get the base64 image
and then it look work well~

the code may look like ….

var reader = new FileReader()
reader.readAsDataURL(data) //the callback data
reader.onload = function() {
    console.log(reader.result) // base64 image
}
20 December 2018 08:06
Click the window you would like to capture. 2. Press Alt + Print Screen by holding down the Alt key and then pressing the Print Screen key. The Print Screen key is near the upper-right corner of your keyboard.
If you face any issue with your lenovo pc click here Lenovo Support
 
Please register or log in to leave a reply.