-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
…longer supported for us by clients, Player.getPlayerInformation should be used instead
…ing the supports DrmType method
@@ -2,7 +2,7 @@ | |||
|
|||
import android.os.Build; | |||
|
|||
public class PlayerChecker { | |||
class InternalMediaPlayerTypeReader { |
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.
Now that's not public can we just call it MediaPlayerTypeReader
?
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.
I wasn't sure, because this is the internal MediaPlayer internal player (nu player/awesome player) 🎃
happy to change
Small comment, LGTM 👍 |
} | ||
|
||
@Test | ||
public void whenPlayerType_thenReturnsExoPlayer() { |
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.
wrong test name?
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.
oops!
bad copy paste 👍
} | ||
|
||
@Test | ||
public void whenReadingVersion_thenReturnsExoPlayerLibraryVersion() { |
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.
Is the exo player here right?
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.
Some renames in tests and good to me.
…ferred by being a type reader
Problem
We're currently exposing the
PlayerChecker
andAndroidMediaPlayerType
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
implsScreenshots
no ui changes
Paired with
noone