-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(FEC-7451): video does not play after pressing play #158
Conversation
we already call it in the play method.
reject(e); | ||
} | ||
}).then(() => { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@odedhutzler The try catch was there to protect against the nested player accessor I think, please check if still required.
Otherwise, LGTM.
checking regarging auto preload, the ready state only concerns this situation.
@@ -126,6 +114,7 @@ class PrePlaybackPlayOverlay extends BaseComponent { | |||
if ((!props.isEnded && !props.prePlayback) || (!props.isEnded && this.autoplay)) { | |||
return undefined; | |||
} | |||
let playerIsReady = this.player.config.playback.preload === "auto" ? this.state.isPlayerReady : true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use const
why state name is isPlayerReady and var name is playerIsReady?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to const + naming, thanks
Removed duplicate call to the ready promise.
It seems calling play would be enough in case of preload: 'auto'. if the video is not loaded yet - then it will be handled in the player.js
CheckLists