Rename HlsPlaylistTracker's release to stop

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=202103550
This commit is contained in:
aquilescanta 2018-06-26 03:34:19 -07:00 committed by Oliver Woodman
parent fd8751dbc6
commit be995f0b27
3 changed files with 10 additions and 6 deletions

View File

@ -401,7 +401,7 @@ public final class HlsMediaSource extends BaseMediaSource
@Override
public void releaseSourceInternal() {
if (playlistTracker != null) {
playlistTracker.release();
playlistTracker.stop();
}
}

View File

@ -105,7 +105,7 @@ public final class DefaultHlsPlaylistTracker
}
@Override
public void release() {
public void stop() {
primaryHlsUrl = null;
primaryUrlSnapshot = null;
masterPlaylist = null;

View File

@ -100,8 +100,8 @@ public interface HlsPlaylistTracker {
/**
* Starts the playlist tracker.
*
* <p>Must be called from the playback thread. A tracker may be restarted after a {@link
* #release()} call.
* <p>Must be called from the playback thread. A tracker may be restarted after a {@link #stop()}
* call.
*
* @param initialPlaylistUri Uri of the HLS stream. Can point to a media playlist or a master
* playlist.
@ -111,8 +111,12 @@ public interface HlsPlaylistTracker {
void start(
Uri initialPlaylistUri, EventDispatcher eventDispatcher, PrimaryPlaylistListener listener);
/** Releases all acquired resources. Must be called once per {@link #start} call. */
void release();
/**
* Stops the playlist tracker and releases any acquired resources.
*
* <p>Must be called once per {@link #start} call.
*/
void stop();
/**
* Registers a listener to receive events from the playlist tracker.