Custom Scheme Handler doesn't read full response

Having problems with building or using the JCEF Java binding? Ask your questions here.

Re: Custom Scheme Handler doesn't read full response

Postby shannah » Wed Jul 08, 2020 7:06 pm

I don't see a directory named "swiftshader". Where should be be located?

Also, has anything changed in the required structure since these directions:
https://bitbucket.org/chromiumembedded/ ... t-56293671
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: Custom Scheme Handler doesn't read full response

Postby magreenblatt » Wed Jul 08, 2020 8:48 pm

Ah, you’re on macOS. Then there’s no swiftshader folder. See the README.txt file in the CEF binary directory for required binaries.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Custom Scheme Handler doesn't read full response

Postby shannah » Thu Jul 09, 2020 10:30 am

I think it's all there. If I remove the --disable-gpu flag from the args it removes that error message - but it is still sluggish. I'm reverting to the previous version for now (May 21st) as the new version didn't fix the scheme handler issue, and it caused fairly significant performance regressions.
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: Custom Scheme Handler doesn't read full response

Postby shannah » Thu Jul 09, 2020 10:39 am

Actually... I'll roll back a little bit on the performance degradation statement. I was doing a debug build. When I switched to a release build, the performance improved somewhat... I'm not sure it if it brings it all the way back, but it's close enough that it's not an obvious performance regression.
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: Custom Scheme Handler doesn't read full response

Postby shannah » Thu Jul 09, 2020 11:16 am

Here is a minimal example of the modified ClientSchemeHandler to return a sample MP3 file to demonstrate the problem.
https://gist.github.com/shannah/6340312 ... 42ff79845a

In this case it only calls readResponse() twice, then it starts playing the beginning of the audio file, but stops playing when it reaches the end of what had been loaded with readResponse.
This is using

JCEF Version = 83.4.0.259
[java] [java] CEF Version = 83.4.0
[java] [java] Chromium Version = 83.0.4103.106
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: Custom Scheme Handler doesn't read full response

Postby shannah » Wed Jul 15, 2020 12:29 pm

Note: I was able to get this working by ditching the custom scheme approach and using a ResourceHandler instead with an https URL.
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Previous

Return to JCEF Forum

Who is online

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