A. Reduce the screen brightness while using the app and close other background apps to conserve battery life. You can also enable Low Power Mode in Settings > Battery.
B. Limit the use of the app to when your device is plugged in or use a portable charger while streaming.