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(preview): remove auto-preview experience #1069

Merged
merged 2 commits into from
Sep 10, 2019

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Sep 10, 2019

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner September 10, 2019 01:26
@boxcla
Copy link

boxcla commented Sep 10, 2019

Verified that @mxiao6 has signed the CLA. Thanks for the pull request!

@@ -44,7 +44,6 @@ class MediaBaseViewer extends BaseViewer {
this.toggleMute = this.toggleMute.bind(this);
this.handleRate = this.handleRate.bind(this);
this.handleAutoplay = this.handleAutoplay.bind(this);
this.mediaendHandler = this.mediaendHandler.bind(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think leaving in this event is still fine, we just don't need to react to it internally in the preview sdk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see

@mxiao6 mxiao6 force-pushed the 6915-remove-auto-preview branch from e445b8c to 184bade Compare September 10, 2019 21:42
@mxiao6 mxiao6 force-pushed the 6915-remove-auto-preview branch from 184bade to b35b80d Compare September 10, 2019 22:12
@@ -1239,7 +1239,6 @@ class Preview extends EventEmitter {
this.ui.finishProgressBar();
break;
case VIEWER_EVENT.mediaEndAutoplay:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire condition can be removed, as it's now a no-op.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like it's preventing the event from being forwarded by the default condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the test for it should be removed entirely too, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or change it to test the default condition

@mergify mergify bot merged commit ffb5854 into box:master Sep 10, 2019
@mxiao6 mxiao6 deleted the 6915-remove-auto-preview branch December 11, 2019 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants