anon 2 Posted May 11, 2020 Share Posted May 11, 2020 (edited) Hi Recently I was thinking about alternatives to CWebBrowser in client binary. There is requirement in my current project to display web-pages which are modern heavy JavaScript types one. Based on my experience I can tell that, CWebBrowser is not able to handle rendering of modern websites. As alternative I found Chromium Embedded Framework and it seems like reasonable choose. Before I start any work I want to know your opinion guys. 1. Question : How would you handle displaying modern websites in Client? Maybe there is some python based solution I don't know about, or c++ based? Or there is possible to fix current CWebBrowser solution? I am really curious about your ideas. Thanks, Sincerly, Anon Edited May 11, 2020 by anon remove src version Link to comment Share on other sites More sharing options...
Johnny69 366 Posted May 11, 2020 Share Posted May 11, 2020 (edited) Chromium documentation and source are public and is not that hard to implement it, if I have time in the next day i will post a tutorial. Edited May 11, 2020 by Johnny69 2 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10274 Posted May 11, 2020 Forum Moderator Share Posted May 11, 2020 This is the hidden content, please Sign In or Sign Up 59 2 1 17 37 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
anon 2 Posted May 11, 2020 Author Share Posted May 11, 2020 41 minutes ago, Johnny69 said: Chromium documentation and source are public and is not that hard to implement it, if I have time in the next day i will post a tutorial. It doesn't look very straightforward for me. I would be very grateful if you would post tutorial specific to mt binary. For example I've looked at CEF documentaiton and I have many questions. Like when I should create instance of browser. In documentation it says a lot about how many processess, and resources it needs, so probably I need to create instance only when player wants to use this feature and destroy instance when player finished?. Should I create another thread to run this? How to communicate with this thread - using some kind of mutexes? What If i want reload page, or go back one page in history. Probably version with dll is better than static compilation, which other dlls I need to put in my client? Link to comment Share on other sites More sharing options...
anon 2 Posted May 11, 2020 Author Share Posted May 11, 2020 In chromium WebAssembly and WebGL is supported. Tell me guys. Do you think because of WebAssembly and WebGL support there is possibility to create Mini games in other game engines like Godot and run this in mt2 client? I think even with javascript there is possibility to create some mini game Link to comment Share on other sites More sharing options...
Honorable Member Owsap 8175 Posted May 12, 2020 Honorable Member Share Posted May 12, 2020 (edited) Implementing CEF to the binary source is not that hard, if you look at the documents mentioned above you can easily follow up the examples that are already included in some of the CEF repositories, with this you can understand how CEF works and then start to integrate it in your binary. Here are also some useful links, https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial https://cef-builds.spotifycdn.com/index.html#windows32 Edited June 19, 2021 by Owsap Updated link. 9 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now