Giter Site home page Giter Site logo

Comments (11)

domagojkorman avatar domagojkorman commented on September 22, 2024

Hi,

I need more information to fix the issue. Can you please provide steps how to reproduce the issue and on which device the issue happened (device name and Android version)? It would be awesome if you could also send stacktrace.

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

OK When i will record a video first time i will recording completly fine and playing
but when i am record video again then it will not playing properly

Getting Error Here

private fun initMediaRecorder(file: File) {
if (activity.hasAudioPermission().not()) {
LogDelegate.log("Recording video without audio. Missing RECORD_AUDIO permission.")
}
mediaRecorder = MediaRecorder().buildCamera2Instance(activity, config, file).apply {
setOnErrorListener { _, _, _ -> callback?.onError(MediaRecorderDeadException) }
}
}

override fun createSession(textureView: TextureView) {
initTextureViewSurface(textureView)
initMediaRecorder(file!!)
/*
* mediaRecorder.getSurface() returns new surface on every getter call.
* That is why it is a must to save it to a variable and reuse it.
*/
mediaSurface = mediaRecorder?.surface
cameraDevice.createCaptureSession(listOf(surface, mediaSurface), stateCallback, AsyncUtils.backgroundHandler)
}

You can check video from this link

Video To check issue
Click here to see video

and getting issue in all devices

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

Hiii anyone here can help me?

from android-goldeneye.

domagojkorman avatar domagojkorman commented on September 22, 2024

I need to look into the issue to see what is wrong. Thanks for detailed report.

In the meantime. Can you try forcing Camera1 API and see whether it works OK there?

Here is how you can do it - https://github.com/infinum/Android-GoldenEye#manually-set-camera-api

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

OK Let me try this

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

Gettting same error video is not recording

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

Hii @domagojkorman
is there can you found any solutions?

from android-goldeneye.

domagojkorman avatar domagojkorman commented on September 22, 2024

Can you please provide stacktrace so I can debug and look into the issue? I did not manage to reproduce it myself.

from android-goldeneye.

bhavesh-srashtasoft avatar bhavesh-srashtasoft commented on September 22, 2024

In a log i am getting only exception
Which i already sent you and also sent you where is exception generate i also given you

from android-goldeneye.

domagojkorman avatar domagojkorman commented on September 22, 2024

You did not send a stacktrace. You simply copy/pasted the code where the issue is happening.

I need a stacktrace so I can see the flow which caused the issue.

EDIT: Do you receive the same error in example app when you try to record video multiple times?

from android-goldeneye.

domagojkorman avatar domagojkorman commented on September 22, 2024

Closing as I could not reproduce the issue and the report was incomplete.

from android-goldeneye.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.