Streaming over Wi-Fi or cellular data?
Is the Internet connection staying active while streaming?
Wi-Fi is designed to turn off when the device is in sleep mode and not connected to external power.
Contact the app developer to see if they have a limit on streaming or an explanation for why it may be stopping.