Skip to content

Commit

Permalink
Update streaming toggled after video data has loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 27, 2021
1 parent 790491e commit f931350
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Server/wwwroot/src/RemoteControl/RtcSession.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Server/wwwroot/src/RemoteControl/RtcSession.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Server/wwwroot/src/RemoteControl/RtcSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class RtcSession {
UI.StreamVideoButton.removeAttribute("hidden");

if (ViewerApp.Settings.streamModeEnabled) {
UI.UpdateStreamingToggled(true);
ViewerApp.MessageSender.SendToggleWebRtcVideo(true);
}
};
Expand All @@ -73,6 +72,7 @@ export class RtcSession {
};

UI.VideoScreenViewer.onloadedmetadata = (ev) => {
UI.UpdateStreamingToggled(true);
UI.VideoScreenViewer.play();
}
this.PeerConnection.ontrack = (event) => {
Expand Down

0 comments on commit f931350

Please sign in to comment.