Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5fe3ec59
authored
Oct 14, 2021
by
ibaker
Committed by
Oliver Woodman
Oct 14, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Deprecate SimpleExoPlayer in favour of ExoPlayer
PiperOrigin-RevId: 403028279
parent
23fc1f43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
library/core/src/test/java/com/google/android/exoplayer2/SimpleExoPlayerTest.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.java
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
5fe3ec59
...
@@ -88,10 +88,8 @@ import java.util.List;
...
@@ -88,10 +88,8 @@ import java.util.List;
import
java.util.concurrent.CopyOnWriteArraySet
;
import
java.util.concurrent.CopyOnWriteArraySet
;
import
java.util.concurrent.TimeoutException
;
import
java.util.concurrent.TimeoutException
;
/**
/** @deprecated Use {@link ExoPlayer} instead. */
* An {@link ExoPlayer} implementation that uses default {@link Renderer} components. Instances can
@Deprecated
* be obtained from {@link ExoPlayer.Builder}.
*/
public
class
SimpleExoPlayer
extends
BasePlayer
public
class
SimpleExoPlayer
extends
BasePlayer
implements
ExoPlayer
,
implements
ExoPlayer
,
ExoPlayer
.
AudioComponent
,
ExoPlayer
.
AudioComponent
,
...
...
library/core/src/test/java/com/google/android/exoplayer2/SimpleExoPlayerTest.java
View file @
5fe3ec59
...
@@ -44,6 +44,7 @@ import org.robolectric.annotation.Config;
...
@@ -44,6 +44,7 @@ import org.robolectric.annotation.Config;
import
org.robolectric.shadows.ShadowLooper
;
import
org.robolectric.shadows.ShadowLooper
;
/** Unit test for {@link SimpleExoPlayer}. */
/** Unit test for {@link SimpleExoPlayer}. */
@SuppressWarnings
(
"deprecation"
)
// Testing deprecated type.
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
public
class
SimpleExoPlayerTest
{
public
class
SimpleExoPlayerTest
{
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/TestExoPlayerBuilder.java
View file @
5fe3ec59
...
@@ -37,6 +37,7 @@ import com.google.android.exoplayer2.util.Clock;
...
@@ -37,6 +37,7 @@ import com.google.android.exoplayer2.util.Clock;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
/** A builder of {@link SimpleExoPlayer} instances for testing. */
/** A builder of {@link SimpleExoPlayer} instances for testing. */
@SuppressWarnings
(
"deprecation"
)
// Returning deprecated type for backwards compatibility.
public
class
TestExoPlayerBuilder
{
public
class
TestExoPlayerBuilder
{
private
final
Context
context
;
private
final
Context
context
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment