Closed KunNiu closed 1 year ago
Hi @KunNiu, thanks for raising this issue. We've identified the cause as being related to the Presets
class and will have a fix in 1.8.1.
As a workaround, you can unblock yourself by adding a simple call to BroadcastSession
before using the Presets
class. I'd recommend adding a call to BroadcastSession.getVersion()
just before using any Presets
methods for minimal changes.
Example:
BroadcastSession.getVersion()
var front = Presets.Devices.FRONT_CAMERA(applicationContext)
@dang-tommy thanks for your reply. And your solution works for me.
This bug has been fixed with the 1.9.0 release.
There is no such issue when I use version 1.7.3, the issue occured after upgrade to 1.8.0