Revert "Only reset played when going live, fixes #180"
This reverts commit 126d43aaa5
.
This commit is contained in:
parent
37f0748f1f
commit
39a0dca8da
4 changed files with 2 additions and 6 deletions
|
@ -120,9 +120,6 @@ export class WebRTCStreamer extends Streamer {
|
|||
this.state = "ANSWER";
|
||||
break;
|
||||
case "ACTIVATED":
|
||||
if (!this.isActive) {
|
||||
this.onStateChange("GOING_LIVE"); // Starting show.
|
||||
}
|
||||
this.isActive = true;
|
||||
this.onStateChange("LIVE");
|
||||
this.dispatch(BroadcastState.setTracklisting(true));
|
||||
|
|
|
@ -4,7 +4,6 @@ export type ConnectionStateEnum =
|
|||
| "CONNECTED"
|
||||
| "CONNECTION_LOST"
|
||||
| "CONNECTION_LOST_RECONNECTING"
|
||||
| "GOING_LIVE"
|
||||
| "LIVE";
|
||||
export type ConnectionStateListener = (val: ConnectionStateEnum) => any;
|
||||
|
||||
|
|
|
@ -52,7 +52,8 @@ const considerDoingTheNews = (getState: () => RootState) => async () => {
|
|||
await actuallyDoTheNews();
|
||||
} else if (state.settings.doTheNews === "while_live") {
|
||||
if (
|
||||
state.broadcast.connectionState in ["CONNECTED", "GOING_LIVE", "LIVE"]
|
||||
state.broadcast.connectionState === "CONNECTED" ||
|
||||
state.broadcast.connectionState === "LIVE"
|
||||
) {
|
||||
const transition = await broadcastApiRequest<{
|
||||
autoNews: boolean;
|
||||
|
|
|
@ -40,7 +40,6 @@ function nicifyConnectionState(state: ConnectionStateEnum): string {
|
|||
case "NOT_CONNECTED":
|
||||
return "Not Connected";
|
||||
case "LIVE":
|
||||
case "GOING_LIVE":
|
||||
return "Live!";
|
||||
default:
|
||||
console.warn("unhandled", state);
|
||||
|
|
Loading…
Reference in a new issue