-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Bug]: Camera not open and show error when test repeatedly #55
Comments
Hi,
What does it mean? Which API calls are made? |
call rtmp url rtmp://example.com/live/streamkey attach video , kindly check thanks IMG_4875.MOVIMG_4875.MOV |
Okay but what APIs (methods) of this package are you calling? |
Not calling API test with example code in my project. Here is video attach of only example code run to my device .Kindly check . VID_20240601_220428_305.mp4 |
@ThibaultBee Kindly check please |
Well, from what you show the issue is when you call |
Downloaded latest code from
branch and test still show that error Kindly check attach video IMG_4914.MOV |
Could you send the log of your application? |
Here is all log that test from start.
|
Ok, |
Ok Let me know after fix thanks |
Hi, |
Hi, Sorry for late reply still show error here is log
|
Does it happen less? |
Yes test with main branch. Kindly check attach video IMG_5054.MOV |
What if you do it really slowly? |
Here is tested slowly IMG_5055.MOV |
I noticed that we don't dispose the controller in the example. |
Download again main branch and tested again still show error like previous video |
Well I don't see any more reason. After some research on google, it seems that hisi encoder are not well supported. |
so how can I do for that. Is there any suggestion ? |
You should try to reproduce directly with the native Android library and different settings. I believe the HiSi encoder takes a while to be released and as there is a limited number of encoders in HiSi, at some point there isn't any available encoders. If this is true, you can't really do anything unless adding a debounce in your application. |
If wait 5- 10s it's working fine. |
Version
v1.2.0
Which operating systems have you used?
Environment that reproduces the issue
Android Huawei nova 3i android version 9
Is it reproducible in the example application?
Yes
RTMP Server
rtmp://example.com/live/
Reproduction steps
Camera not open when open when click to open ApiVideoCameraPreview again repeatedly
Expected result
Stream success if enter ApiVideoCameraPreview and start live immediatley.
Not work if enter ApiVideoCameraPreview repeatedly
Actual result
ApiVideoCameraPreview not open and get error
Additional context
Flutter 3.19.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ba39319843 (3 months ago) • 2024-03-07 15:22:21 -0600
Engine • revision 2e4ba9c6fb
Tools • Dart 3.3.1 • DevTools 2.31.1
Relevant logs output
The text was updated successfully, but these errors were encountered: