Skip to content

Commit

Permalink
Remove the logic to set the loading state when connecting to webrtc
Browse files Browse the repository at this point in the history
If the player cannot play due to browser policy in the loading state,
it is difficult to change it to the idle state.
  • Loading branch information
SangwonOh committed Dec 28, 2021
1 parent 56e84ed commit 70cab25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/ovenplayer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ovenplayer.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/js/api/provider/html5/providers/WebRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ const WebRTC = function (element, playerConfig, adTagUrl) {
playerConfig
);

that.setState(STATE_LOADING);

connectionStartTime = performance.now();
webrtcLoader.connect();

Expand Down

0 comments on commit 70cab25

Please sign in to comment.