Comments (11)
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.
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.
Hiii anyone here can help me?
from android-goldeneye.
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.
OK Let me try this
from android-goldeneye.
Gettting same error video is not recording
from android-goldeneye.
Hii @domagojkorman
is there can you found any solutions?
from android-goldeneye.
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.
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.
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.
Closing as I could not reproduce the issue and the report was incomplete.
from android-goldeneye.
Related Issues (20)
- Enhancement request: Ability to pass multiple surfaces while opening camera HOT 2
- 小米Mix3前置摄像头问题
- Use Camera1 by default for better consistency
- autoFocus failed HOT 3
- Frequent crash when I try to set flashMode right after the build() of GoldenEye object HOT 2
- Can I get the Uri of photo after the image is captured by GoldenEye HOT 3
- ThreadNotStartedException: random crashes when take photo
- camera HAL 尺寸问题 HOT 1
- Too many ANRs
- co.infinum.goldeneye.ThreadNotStartedException
- android.hardware.camera2.CameraAccessException
- How to Override defaults for the Camera HOT 1
- Add CamcorderProfile.QUALITY_QVGA to resolution options HOT 1
- Video recording problem with a solid green screen when using front camera on some specific devices HOT 2
- How to take a picture w/o a preview? HOT 1
- Igb
- Regarding video recording preview. HOT 3
- How can I use MANUAL_FILL for PreviewScale?
- Flash is blinking if turned off before start Video Recording
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-goldeneye.