Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Hiding PlayerChecker #62

Merged
merged 10 commits into from
Jun 29, 2017
Merged

Hiding PlayerChecker #62

merged 10 commits into from
Jun 29, 2017

Conversation

ouchadam
Copy link
Contributor

Problem

We're currently exposing the PlayerCheckerand AndroidMediaPlayerType which attempts to read the systems internal media player implementation.

Solution

The internal media player name is now exposed via the PlayerInformation.getName. If the internal type is required we can add multiple player information impls for each internal type.

Test(s) added

Yep around the PlayerInformation impls

Screenshots

no ui changes

Paired with

noone

@juankysoriano juankysoriano self-requested a review June 29, 2017 13:53
@juankysoriano juankysoriano self-assigned this Jun 29, 2017
@@ -2,7 +2,7 @@

import android.os.Build;

public class PlayerChecker {
class InternalMediaPlayerTypeReader {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that's not public can we just call it MediaPlayerTypeReader ?

Copy link
Contributor Author

@ouchadam ouchadam Jun 29, 2017

Choose a reason for hiding this comment

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

I wasn't sure, because this is the internal MediaPlayer internal player (nu player/awesome player) 🎃

happy to change

@zegnus zegnus self-assigned this Jun 29, 2017
@zegnus
Copy link
Contributor

zegnus commented Jun 29, 2017

Small comment, LGTM 👍

}

@Test
public void whenPlayerType_thenReturnsExoPlayer() {
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong test name?

Copy link
Contributor Author

@ouchadam ouchadam Jun 29, 2017

Choose a reason for hiding this comment

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

oops!

bad copy paste 👍

}

@Test
public void whenReadingVersion_thenReturnsExoPlayerLibraryVersion() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the exo player here right?

Copy link
Contributor

@juankysoriano juankysoriano left a comment

Choose a reason for hiding this comment

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

Some renames in tests and good to me.

@juankysoriano juankysoriano merged commit 1694177 into exo-player-2 Jun 29, 2017
@juankysoriano juankysoriano deleted the hiding-player-checker branch June 29, 2017 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants