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

await for StartVideoStreaming waits endlessly #15

Open
OlJohnny opened this issue Apr 19, 2024 · 3 comments
Open

await for StartVideoStreaming waits endlessly #15

OlJohnny opened this issue Apr 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@OlJohnny
Copy link

when using the code from the example,

await cameraController!.startVideoStreaming(url);

it just awaits endlessly and no actual video gets streamed.

if anybody has any ideas of what to try out, or some stuff to check for errors, please let me know.

@emiliodallatorre
Copy link
Owner

Hi @OlJohnny,
does this issue persist with latest plugin version?
Can you please provide a logcat?

@emiliodallatorre emiliodallatorre added the bug Something isn't working label Aug 29, 2024
@emiliodallatorre emiliodallatorre self-assigned this Aug 29, 2024
luo3house added a commit to luo3house/flutter_rtmp_broadcaster that referenced this issue Jan 16, 2025
@luo3house
Copy link

Met the same problem, it causes when you await initialize() and then quickly go on with startVideoStreaming while the surface of camera preview is NOT ready yet.

Here's a tiny commit for this fix, no any code changes needed. Have fun if it could help you. Or I would pull request if the project is maintaining.
luo3house@479f6eb

rtmp_broadcaster:
    git:
      url: https://github.com/luo3house/flutter_rtmp_broadcaster.git
      ref: 479f6ebe9557eb0f379620e2823deaaad2276817

@elormkoto
Copy link

Adding a delay after initialize & before startVideoStreaming to test out @luo3house diagnosis worked for me. Is it possible to get the changes @luo3house made merged please? @emiliodallatorre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants