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

hd vids #228

Merged
merged 12 commits into from
Mar 21, 2018
Merged

hd vids #228

merged 12 commits into from
Mar 21, 2018

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Mar 20, 2018

what

Supporting HD videos.

how

Updating ExoPlayer to 2.7.0 and checking for HLS videos.
Removing some custom code that we had.

see

Run this build on a device 🤓

@eoji eoji requested a review from Scollaco March 20, 2018 22:02
@eoji
Copy link
Contributor Author

eoji commented Mar 20, 2018

…ocking or actually using real android src.

Updated VideoViewModel tests.
Copy link
Contributor Author

@eoji eoji left a comment

Choose a reason for hiding this comment

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

PR feedback from Nino

this.loadingIndicatorProgressBar.setVisibility(View.GONE);
}
}

private void releasePlayer() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move this to the bottom with the other private methods.

@TargetApi(19)
private boolean isMediaControllerAttachedToWindow() {
return ApiCapabilities.canCheckMediaControllerIsAttachedToWindow() && this.mediaController.isAttachedToWindow();
private String getUserAgent() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To not have repeat code, let's make a static helper method in WebRequestInterceptor so that we can reuse whenever we need a user agent

// Configure the view model with a project intent.
vm.intent(new Intent().putExtra(IntentKey.PROJECT, project));

preparePlayerWithUrl.assertValues(project.video().hls());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should use assertValue instead and in the second test

Copy link
Contributor

@Scollaco Scollaco left a comment

Choose a reason for hiding this comment

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

HD 🥇 !! Awesome job, @eoji !

@eoji eoji changed the title [WIP] hd vids hd vids Mar 21, 2018
@eoji eoji merged commit 1cecb8b into master Mar 21, 2018
@eoji eoji deleted the hd-vids branch March 21, 2018 21:55
Rcureton pushed a commit that referenced this pull request Jul 31, 2018
Upgrading ExoPlayer to 2.7.0 and supporting HLS videos.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants