player: stop live stream after 2 min buffering: upd

This commit is contained in:
Yuriy Liskov
2022-07-21 18:06:57 +03:00
parent 8478729fd2
commit 82c0016448

View File

@@ -457,6 +457,8 @@ public class VideoLoaderManager extends PlayerEventListenerHelper {
* Stop on long buffering (indicates end of the stream)
*/
private void watchLiveStream() {
unwatchLiveStream();
if (getController() != null &&
getController().getVideo() != null &&
getController().getVideo().isLive) {