mouse clicks not work when start html5 games in cefclient

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

mouse clicks not work when start html5 games in cefclient

Postby kikiako » Mon Jun 21, 2021 1:02 pm

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.
Last edited by kikiako on Tue Jun 22, 2021 4:49 am, edited 1 time in total.
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

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

Postby amaitland » Mon Jun 21, 2021 6:36 pm

Are you sure it's html5 based and not flash based? The url hints that it's flash based.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

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

Postby kikiako » Mon Jun 21, 2021 8:07 pm

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.
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

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

Postby kikiako » Mon Jun 21, 2021 8:11 pm

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.
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

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

Postby amaitland » Mon Jun 21, 2021 8:23 pm

Probably relies on features that CEF doesn't currently implement. Open DevTools and check for errors.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

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

Postby kikiako » Mon Jun 21, 2021 10:48 pm

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
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

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

Postby amaitland » Mon Jun 21, 2021 10:54 pm

Open Devtools and look at the console for errors.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

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

Postby kikiako » Tue Jun 22, 2021 2:04 am

amaitland wrote:Open Devtools and look at the console for errors.

console.png
console.png (56.16 KiB) Viewed 4595 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.
Last edited by kikiako on Tue Jun 22, 2021 3:34 am, edited 1 time in total.
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

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

Postby ndesktop » Tue Jun 22, 2021 2:14 am

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.
Attachments
game.jpg
game.jpg (237.7 KiB) Viewed 4609 times
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

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

Postby kikiako » Tue Jun 22, 2021 2:33 am

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 4599 times

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

click_to_play.png
click_to_play.png (523.63 KiB) Viewed 4597 times
kikiako
Newbie
 
Posts: 9
Joined: Mon Jun 21, 2021 12:05 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 35 guests