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
b65945b3
authored
Apr 29, 2021
by
olly
Committed by
bachinger
Apr 29, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated CastPlayer methods
PiperOrigin-RevId: 371102614
parent
b9b405ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
61 deletions
RELEASENOTES.md
extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java
RELEASENOTES.md
View file @
b65945b3
...
@@ -104,6 +104,9 @@
...
@@ -104,6 +104,9 @@
`programInformation`
and
`serviceDescription`
set to
`null`
instead.
`programInformation`
and
`serviceDescription`
set to
`null`
instead.
*
Remove
`CryptoInfo.getFrameworkCryptoInfoV16`
. Use
*
Remove
`CryptoInfo.getFrameworkCryptoInfoV16`
. Use
`CryptoInfo.getFrameworkCryptoInfo`
instead.
`CryptoInfo.getFrameworkCryptoInfo`
instead.
*
Remove
`CastPlayer`
specific playlist manipulation methods. Use
`setMediaItems`
,
`addMediaItems`
,
`removeMediaItem`
and
`moveMediaItem`
instead.
*
DRM:
*
DRM:
*
Only dispatch DRM session acquire and release events once per period
*
Only dispatch DRM session acquire and release events once per period
when playing content that uses the same encryption keys for both audio &
when playing content that uses the same encryption keys for both audio &
...
...
extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java
View file @
b65945b3
...
@@ -185,67 +185,6 @@ public final class CastPlayer extends BasePlayer {
...
@@ -185,67 +185,6 @@ public final class CastPlayer extends BasePlayer {
updateInternalStateAndNotifyIfChanged
();
updateInternalStateAndNotifyIfChanged
();
}
}
// Media Queue manipulation methods.
/** @deprecated Use {@link #setMediaItems(List, int, long)} instead. */
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
loadItem
(
MediaQueueItem
item
,
long
positionMs
)
{
return
setMediaItemsInternal
(
new
MediaQueueItem
[]
{
item
},
/* startWindowIndex= */
0
,
positionMs
,
repeatMode
.
value
);
}
/**
* @deprecated Use {@link #setMediaItems(List, int, long)} and {@link #setRepeatMode(int)}
* instead.
*/
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
loadItems
(
MediaQueueItem
[]
items
,
int
startIndex
,
long
positionMs
,
@RepeatMode
int
repeatMode
)
{
return
setMediaItemsInternal
(
items
,
startIndex
,
positionMs
,
repeatMode
);
}
/** @deprecated Use {@link #addMediaItems(List)} instead. */
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
addItems
(
MediaQueueItem
...
items
)
{
return
addMediaItemsInternal
(
items
,
MediaQueueItem
.
INVALID_ITEM_ID
);
}
/** @deprecated Use {@link #addMediaItems(int, List)} instead. */
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
addItems
(
int
periodId
,
MediaQueueItem
...
items
)
{
if
(
periodId
==
MediaQueueItem
.
INVALID_ITEM_ID
||
currentTimeline
.
getIndexOfPeriod
(
periodId
)
!=
C
.
INDEX_UNSET
)
{
return
addMediaItemsInternal
(
items
,
periodId
);
}
return
null
;
}
/** @deprecated Use {@link #removeMediaItem(int)} instead. */
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
removeItem
(
int
periodId
)
{
if
(
currentTimeline
.
getIndexOfPeriod
(
periodId
)
!=
C
.
INDEX_UNSET
)
{
return
removeMediaItemsInternal
(
new
int
[]
{
periodId
});
}
return
null
;
}
/** @deprecated Use {@link #moveMediaItem(int, int)} instead. */
@Deprecated
@Nullable
public
PendingResult
<
MediaChannelResult
>
moveItem
(
int
periodId
,
int
newIndex
)
{
Assertions
.
checkArgument
(
newIndex
>=
0
&&
newIndex
<
currentTimeline
.
getWindowCount
());
int
fromIndex
=
currentTimeline
.
getIndexOfPeriod
(
periodId
);
if
(
fromIndex
!=
C
.
INDEX_UNSET
&&
fromIndex
!=
newIndex
)
{
return
moveMediaItemsInternal
(
new
int
[]
{
periodId
},
fromIndex
,
newIndex
);
}
return
null
;
}
/**
/**
* Returns the item that corresponds to the period with the given id, or null if no media queue or
* Returns the item that corresponds to the period with the given id, or null if no media queue or
* period with id {@code periodId} exist.
* period with id {@code periodId} exist.
...
...
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