- show offline state when stream ends and video is not playing (#130)

- style fixes
This commit is contained in:
Ginger Wong
2020-08-29 17:35:19 -07:00
parent 0e6edf9ac0
commit 09f6b62398
2 changed files with 9 additions and 59 deletions

View File

@@ -259,6 +259,10 @@ export default class App extends Component {
streamOnline: false,
streamStatusMessage: MESSAGE_OFFLINE,
});
if (this.player.vjsPlayer && this.player.vjsPlayer.paused()) {
this.handlePlayerEnded();
}
}
// play video!
@@ -335,7 +339,6 @@ export default class App extends Component {
windowHeight,
windowWidth,
} = state;
console.log("========sessionMaxViewerCount",sessionMaxViewerCount)
const {
version: appVersion,