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
78424efc
authored
Aug 10, 2020
by
samrobinson
Committed by
kim-vde
Aug 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Change experimental method naming for throwWhenStuckBuffering.
PiperOrigin-RevId: 325795485
parent
69c2a76d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
View file @
78424efc
...
...
@@ -240,7 +240,7 @@ public interface ExoPlayer extends Player {
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
* @return This builder.
*/
public
Builder
experimental
_s
etThrowWhenStuckBuffering
(
boolean
throwWhenStuckBuffering
)
{
public
Builder
experimental
S
etThrowWhenStuckBuffering
(
boolean
throwWhenStuckBuffering
)
{
this
.
throwWhenStuckBuffering
=
throwWhenStuckBuffering
;
return
this
;
}
...
...
@@ -413,7 +413,7 @@ public interface ExoPlayer extends Player {
player
.
experimental_setReleaseTimeoutMs
(
releaseTimeoutMs
);
}
if
(!
throwWhenStuckBuffering
)
{
player
.
experimental
_d
isableThrowWhenStuckBuffering
();
player
.
experimental
D
isableThrowWhenStuckBuffering
();
}
return
player
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
View file @
78424efc
...
...
@@ -205,8 +205,8 @@ import java.util.concurrent.TimeoutException;
* <p>This method is experimental, and will be renamed or removed in a future release. It should
* only be called before the player is used.
*/
public
void
experimental
_d
isableThrowWhenStuckBuffering
()
{
internalPlayer
.
experimental
_d
isableThrowWhenStuckBuffering
();
public
void
experimental
D
isableThrowWhenStuckBuffering
()
{
internalPlayer
.
experimental
D
isableThrowWhenStuckBuffering
();
}
@Override
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
View file @
78424efc
...
...
@@ -258,7 +258,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
this
.
releaseTimeoutMs
=
releaseTimeoutMs
;
}
public
void
experimental
_d
isableThrowWhenStuckBuffering
()
{
public
void
experimental
D
isableThrowWhenStuckBuffering
()
{
throwWhenStuckBuffering
=
false
;
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
78424efc
...
...
@@ -449,7 +449,7 @@ public class SimpleExoPlayer extends BasePlayer
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
* @return This builder.
*/
public
Builder
experimental
_s
etThrowWhenStuckBuffering
(
boolean
throwWhenStuckBuffering
)
{
public
Builder
experimental
S
etThrowWhenStuckBuffering
(
boolean
throwWhenStuckBuffering
)
{
this
.
throwWhenStuckBuffering
=
throwWhenStuckBuffering
;
return
this
;
}
...
...
@@ -620,7 +620,7 @@ public class SimpleExoPlayer extends BasePlayer
wifiLockManager
.
setEnabled
(
builder
.
wakeMode
==
C
.
WAKE_MODE_NETWORK
);
deviceInfo
=
createDeviceInfo
(
streamVolumeManager
);
if
(!
builder
.
throwWhenStuckBuffering
)
{
player
.
experimental
_d
isableThrowWhenStuckBuffering
();
player
.
experimental
D
isableThrowWhenStuckBuffering
();
}
sendRendererMessage
(
C
.
TRACK_TYPE_AUDIO
,
Renderer
.
MSG_SET_AUDIO_ATTRIBUTES
,
audioAttributes
);
...
...
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