Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecordActivity demo conversion in kotlin #2272

Open
openmotion opened this issue Aug 12, 2024 · 0 comments
Open

RecordActivity demo conversion in kotlin #2272

openmotion opened this issue Aug 12, 2024 · 0 comments

Comments

@openmotion
Copy link

hello
i want to convert the example code of RecordActivity in kotlin but i can't translate the java code :
((ByteBuffer)yuvImage.image[0].position(0)).put(data);
to kotlin
i have this information : Classifier 'ByteBuffer' does not have a companion object, and thus must be initialized here

if i use the conversion code i have this result
(yuvImage.image[0].position(0) as ByteBuffer).put(data)

and this error
Cannot access 'org.bytedeco.javacpp.indexer.Indexable' which is a supertype of 'org.bytedeco.javacv.Frame'. Check your module classpath for missing or conflicting dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants