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

Streaming disconnecting when switching Camera #20

Open sathya4code opened 4 years ago

sathya4code commented 4 years ago

Hi,

I am exploring this for my streaming project. i am using Wowza cloud. Given example(in this repo) working perfectly. But when i switch the camera while streaming, the stream got disconnecting.

I am using the example which is given in this repo. Can someone help me here.

Note: I don't know whether it is bug or not.

Thank you.

pinkfish commented 4 years ago

When you switch cameras it recreates the controller so right now this will cause the whole stream to terminate. It has to recreate the camera2 session on android no matter what, on iOS this might be a little easier to solve, definitely working as intended right now however.

On Wed, 15 Jul 2020 at 05:28, Sathya notifications@github.com wrote:

Hi,

I am exploring this for my streaming project. i am using Wowza cloud. Given example(in this repo) working perfectly. But when i switch the camera while streaming, the stream got disconnecting.

I am using the example which is given in this repo. Can someone help me here.

Note: I don't know whether it is bug or not.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pinkfish/flutter_rtmppublisher/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATOMMNXVYFZI373GX6ZHRLR3WOGVANCNFSM4O2PRUWA .

sathya4code commented 4 years ago

When you switch cameras it recreates the controller so right now this will cause the whole stream to terminate. It has to recreate the camera2 session on android no matter what, on iOS this might be a little easier to solve, definitely working as intended right now however. On Wed, 15 Jul 2020 at 05:28, Sathya @.**> wrote: Hi, I am exploring this for my streaming project. i am using Wowza cloud. Given example(in this repo) working perfectly. But when i switch the camera while streaming, the stream got disconnecting. I am using the example which is given in this repo. Can someone help me here. Note: I don't know whether it is bug or not.* Thank you. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#20>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATOMMNXVYFZI373GX6ZHRLR3WOGVANCNFSM4O2PRUWA .

Any solution for this?

sathya4code commented 4 years ago

Anybody know how to fix this issue?

nitoba commented 3 years ago

I am with same issue here. There are the way to do this without the streaming disconnect ?

aravindhkumar23 commented 3 years ago

@sathya4code did you find any solutions to get it work?

sathya4code commented 2 years ago

@sathya4code did you find any solutions to get it work?

No Bro... Sorry for the late reply.

andreidevo commented 2 years ago

same here, my solution is:

and here all works. But in general I have also app crash, idk why... Something wrong with Android Native library