Page 1 of 2

mouse clicks not work when start html5 games in cefclient

PostPosted: Mon Jun 21, 2021 1:02 pm
by kikiako
Hi,
After loading html5 game (http://www.4399.com/flash/203039_2.htm ) , logging in as a guest and start to play, i see the tips : click screen to play, but nothing happens no matter how many times i click. The normal situation is that
mouse arrow disappears immediately after the left mouse button is pressed,and i can move and shoot. And there is no error log like the mouse event being eaten. All cef versions have the same problem, i have no idea about that.
Sincerely hope to get some help, thanks.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 6:36 pm
by amaitland
Are you sure it's html5 based and not flash based? The url hints that it's flash based.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 8:07 pm
by kikiako
amaitland wrote:Are you sure it's html5 based and not flash based? The url hints that it's flash based.



Yes, I'm pretty sure, because right click after entering the game and there is no flash related pop-up window, and you can see that the canvas element is used in the game by debugging with the chrome browser.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 8:11 pm
by kikiako
kikiako wrote:
amaitland wrote:Are you sure it's html5 based and not flash based? The url hints that it's flash based.

Yes, I'm pretty sure, because right click after entering the game and there is no flash related pop-up window, and you can see that the canvas element is used in the game by debugging with the chrome browser.

Normal in Chrome, but not in cef.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 8:23 pm
by amaitland
Probably relies on features that CEF doesn't currently implement. Open DevTools and check for errors.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 10:48 pm
by kikiako
amaitland wrote:Probably relies on features that CEF doesn't currently implement. Open DevTools and check for errors.

The log is as follows:
方法getRes的参数不能为null
three.js:19873 THREE.WebGLRenderer: image is not power of two (262x271). Resized to 256x256
THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(168,18-149): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them

Debug in chrome also reported the same warning and performed well. Is cef not supported? It is frustrating if not. qaq

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Mon Jun 21, 2021 10:54 pm
by amaitland
Open Devtools and look at the console for errors.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Tue Jun 22, 2021 2:04 am
by kikiako
amaitland wrote:Open Devtools and look at the console for errors.

console.png
console.png (56.16 KiB) Viewed 4593 times

about:blank Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
vendor.da7cb4e….js:49 当前UA环境: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 pc
vendor.da7cb4e….js:49 当前H5MINI版本: 1.8.4 production
vendor.da7cb4e….js:49 PC初始化完成
vendor.da7cb4e….js:49 PC渠道不支持调用关闭加载页面
vendor.da7cb4e….js:49 获取到初始化数据设置
reward_video_ifr.html?_t=80860325665322:11 VIDEO_AD_VERSION:1.1.4
assetsmanager.min_f2e50bd1.js:1 方法getRes的参数不能为null
three.js:19873 THREE.WebGLRenderer: image is not power of two (262x271). Resized to 256x256

As shown above, devtools console is the same as chrome.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Tue Jun 22, 2021 2:14 am
by ndesktop
Started the page using a custom built cefclient 90.0.4430.93, the game loaded, after some time clicked on the game; a loud click sound heard, then it asks for some kind of logon and the background is changing to something else (see attachment).
I can't read the language (don't even know what is), but looks working to me.

Re: mouse clicks not work when start html5 games in cefclien

PostPosted: Tue Jun 22, 2021 2:33 am
by kikiako
ndesktop wrote:Started the page using a custom built cefclient 90.0.4430.93, the game loaded, after some time clicked on the game; a loud click sound heard, then it asks for some kind of logon and the background is changing to something else (see attachment).
I can't read the language (don't even know what is), but looks working to me.


The language of the website is Chinese. You can log in as a guest to enter the game,and see attached picture for details.
The red box in the 3rd attached picture prompts to click on the screen to enter the game ,but nothing happens no matter how many times i click. The mouse arrow does not disappear after the mouse is clicked and the game cannot be played, but chrome or other webkit browsers are normal.

click_as_guest.png
click_as_guest.png (796.33 KiB) Viewed 4597 times

click_to_start.png
click_to_start.png (714.39 KiB) Viewed 4597 times

click_to_play.png
click_to_play.png (523.63 KiB) Viewed 4595 times