You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Studying the Android Api, I saw that the way to start broadcasting is using an activity.
Is there a way to broadcast from Background? I wanted to broadcast from a service without the preview being showed on the screen.
The text was updated successfully, but these errors were encountered:
Kickflip's CameraEncoder is optimized for sharing resources with a display view, and so it avoids preparing resources until one is passed to setPreviewDisplay. That said, after a view is passed to CameraEncoder you can call onHostActivityPaused() and Kickflip will bypass the 'display frame' step.
You could manage an AVRecorder (or CameraEncoder if you only need video) from a Service, and allow an Activity to pass in a display view for the user to frame the shot, then call onHostActivityPaused() and allow the Activity to finish, while recording continues in the background.
For a quick proof of concept you can power off your screen or minimize the kickflip example app and witness the video stream continue (and display resume when you return to the app).
Studying the Android Api, I saw that the way to start broadcasting is using an activity.
Is there a way to broadcast from Background? I wanted to broadcast from a service without the preview being showed on the screen.
The text was updated successfully, but these errors were encountered: