pinkfish / flutter_rtmppublisher

Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
BSD 3-Clause "New" or "Revised" License
95 stars 121 forks source link

Camera preview freeze when rtmp streaming is active #9

Closed adminant closed 4 years ago

adminant commented 4 years ago

When I start example app and select camera the preview shows camera picture ok. But when I start rtmp streaming, the camera picture freeze, and one cannot see on the phone what is streamed.

adminant commented 4 years ago

Please help me with this problem, it stops me using this great plugin in my app. The strange thing is that startVideoRecording works great, and the preview is not freezing, but startVideoStreaming is freezing preview, though I don't see major differences between these methods in channel invoke part.

pinkfish commented 4 years ago

I am looking at this. I think it is because it is not marking the frames as processed correctly.

pinkfish commented 4 years ago

Redoing how the streaming pieces are started/stopped right now too to make it work a bit better.

adminant commented 4 years ago

Thank you, great work! Now streaming preview works like a charm. But now I couldn't stop video streaming, stopVideoStreaming method throws exception "No video is recording"

pinkfish commented 4 years ago

Ok, I think this is working correctly now, preview anyway. Ahh, will look at stopVideoStreaming