Skip to content
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

Merged
merged 6 commits into from
Jan 21, 2018
Merged

Conversation

odedhutzler
Copy link
Contributor

@odedhutzler odedhutzler commented Dec 13, 2017

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

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

we already call it in the play method.
@odedhutzler odedhutzler self-assigned this Dec 13, 2017
@odedhutzler odedhutzler changed the title fix(FEC-7451): video is not playing after pressing play fix(FEC-7451): video does not play after pressing play Dec 14, 2017
@odedhutzler
Copy link
Contributor Author

@OrenMe @dan-ziv besides the 'quick click refresh' issue, it seems to be ok. (tested on mobile & mac with autoplay true/false & preload:none/auto).

reject(e);
}
}).then(() => {
try {
Copy link
Contributor

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.

OrenMe
OrenMe previously approved these changes Dec 28, 2017
checking regarging auto preload,
the ready state only concerns this situation.
OrenMe
OrenMe previously approved these changes Jan 1, 2018
@@ -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;
Copy link
Contributor

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?

Copy link
Contributor Author

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

@dan-ziv dan-ziv merged commit f12329c into master Jan 21, 2018
@dan-ziv dan-ziv deleted the FEC-7451 branch January 21, 2018 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants