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
d5f02931
authored
Jun 24, 2020
by
insun
Committed by
Christos Tsilopoulos
Jun 26, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Cleanup deprecated SimpleExoPlayerView and PlaybackControlView
PiperOrigin-RevId: 318152038
parent
d0309b37
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
113 deletions
RELEASENOTES.md
demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
RELEASENOTES.md
View file @
d5f02931
...
@@ -196,6 +196,7 @@
...
@@ -196,6 +196,7 @@
*
Upgrade Truth dependency from 0.44 to 1.0.
*
Upgrade Truth dependency from 0.44 to 1.0.
*
Upgrade to JUnit 4.13-rc-2.
*
Upgrade to JUnit 4.13-rc-2.
*
UI
*
UI
*
Remove
`SimpleExoPlayerView`
and
`PlaybackControlView`
.
*
Remove deperecated
`exo_simple_player_view.xml`
and
*
Remove deperecated
`exo_simple_player_view.xml`
and
`exo_playback_control_view.xml`
from resource.
`exo_playback_control_view.xml`
from resource.
*
Add setter methods to
`PlayerView`
and
`PlayerControlView`
to set
*
Add setter methods to
`PlayerView`
and
`PlayerControlView`
to set
...
...
demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java
View file @
d5f02931
...
@@ -276,14 +276,14 @@ public class PlayerActivity extends AppCompatActivity
...
@@ -276,14 +276,14 @@ public class PlayerActivity extends AppCompatActivity
}
}
}
}
// Playback
ControlView.Playback
Preparer implementation
// PlaybackPreparer implementation
@Override
@Override
public
void
preparePlayback
()
{
public
void
preparePlayback
()
{
player
.
prepare
();
player
.
prepare
();
}
}
// Play
back
ControlView.VisibilityListener implementation
// Play
er
ControlView.VisibilityListener implementation
@Override
@Override
public
void
onVisibilityChange
(
int
visibility
)
{
public
void
onVisibilityChange
(
int
visibility
)
{
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
deleted
100644 → 0
View file @
d0309b37
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
google
.
android
.
exoplayer2
.
ui
;
import
android.content.Context
;
import
android.util.AttributeSet
;
/** @deprecated Use {@link PlayerControlView}. */
@Deprecated
public
class
PlaybackControlView
extends
PlayerControlView
{
/** @deprecated Use {@link com.google.android.exoplayer2.ControlDispatcher}. */
@Deprecated
public
interface
ControlDispatcher
extends
com
.
google
.
android
.
exoplayer2
.
ControlDispatcher
{}
@Deprecated
@SuppressWarnings
(
"deprecation"
)
private
static
final
class
DefaultControlDispatcher
extends
com
.
google
.
android
.
exoplayer2
.
DefaultControlDispatcher
implements
ControlDispatcher
{}
/** @deprecated Use {@link com.google.android.exoplayer2.DefaultControlDispatcher}. */
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
final
ControlDispatcher
DEFAULT_CONTROL_DISPATCHER
=
new
DefaultControlDispatcher
();
public
PlaybackControlView
(
Context
context
)
{
super
(
context
);
}
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
}
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
,
AttributeSet
playbackAttrs
)
{
super
(
context
,
attrs
,
defStyleAttr
,
playbackAttrs
);
}
}
library/ui/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
deleted
100644 → 0
View file @
d0309b37
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
google
.
android
.
exoplayer2
.
ui
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.Player
;
import
com.google.android.exoplayer2.SimpleExoPlayer
;
/** @deprecated Use {@link PlayerView}. */
@Deprecated
public
final
class
SimpleExoPlayerView
extends
PlayerView
{
public
SimpleExoPlayerView
(
Context
context
)
{
super
(
context
);
}
public
SimpleExoPlayerView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
public
SimpleExoPlayerView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
}
/**
* Switches the view targeted by a given {@link SimpleExoPlayer}.
*
* @param player The player whose target view is being switched.
* @param oldPlayerView The old view to detach from the player.
* @param newPlayerView The new view to attach to the player.
* @deprecated Use {@link PlayerView#switchTargetView(Player, PlayerView, PlayerView)} instead.
*/
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
static
void
switchTargetView
(
SimpleExoPlayer
player
,
@Nullable
SimpleExoPlayerView
oldPlayerView
,
@Nullable
SimpleExoPlayerView
newPlayerView
)
{
PlayerView
.
switchTargetView
(
player
,
oldPlayerView
,
newPlayerView
);
}
}
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