Need to continue streaming - even in background. Is it possible? #150
Unanswered
dhruvdroid
asked this question in
Q&A
Replies: 1 comment 4 replies
-
If you want to implement another lifecycle, you don't have to use If you want to live stream in background, you should use an Android service. As an example, you can have a look on screen recorder services provide by StreamPack. I have not tested it because it does not seem supported by old devices. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @ThibaultBee,
Currently, I am working to integrate StreamPack for the live-streaming app.
While checking the code base I got to know we have the
StreamerLifeCycleObserver
to which we provide thelifecycle.addObserver(streamerLifeCycleObserver)
The assumption here was, in case I don't provide this
streamerLifeCycleObserver
then devs needs to manually handle the stop and release the stream inonPause
andonDestroy
Even after commenting on the code i.e.
lifecycle.addObserver(streamerLifeCycleObserver)
the moment onPause gets trigger following logs are printed -The requirement here is -
io.github.thibaultbee.streampack.views.PreviewView
. How can I continue streaming in that case? Is there a document I can refer or example.Beta Was this translation helpful? Give feedback.
All reactions