mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix FilteringHlsPlaylistParser
Only filter HlsMasterPlaylists. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=183394956
This commit is contained in:
parent
e1dbaf26c2
commit
61ba0f2827
1 changed files with 20 additions and 20 deletions
|
|
@ -26,30 +26,30 @@ import java.io.IOException;
|
|||
/** An action to download or remove downloaded HLS streams. */
|
||||
public final class HlsDownloadAction extends SegmentDownloadAction<String> {
|
||||
|
||||
public static final Deserializer DESERIALIZER = new SegmentDownloadActionDeserializer<String>() {
|
||||
public static final Deserializer DESERIALIZER =
|
||||
new SegmentDownloadActionDeserializer<String>() {
|
||||
|
||||
@Override
|
||||
public String getType() {
|
||||
return TYPE;
|
||||
}
|
||||
@Override
|
||||
public String getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String readKey(DataInputStream input) throws IOException {
|
||||
return input.readUTF();
|
||||
}
|
||||
@Override
|
||||
protected String readKey(DataInputStream input) throws IOException {
|
||||
return input.readUTF();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] createKeyArray(int keyCount) {
|
||||
return new String[0];
|
||||
}
|
||||
@Override
|
||||
protected String[] createKeyArray(int keyCount) {
|
||||
return new String[keyCount];
|
||||
}
|
||||
|
||||
@Override
|
||||
protected DownloadAction createDownloadAction(Uri manifestUri, boolean removeAction,
|
||||
String data, String[] keys) {
|
||||
return new HlsDownloadAction(manifestUri, removeAction, data, keys);
|
||||
}
|
||||
|
||||
};
|
||||
@Override
|
||||
protected DownloadAction createDownloadAction(
|
||||
Uri manifestUri, boolean removeAction, String data, String[] keys) {
|
||||
return new HlsDownloadAction(manifestUri, removeAction, data, keys);
|
||||
}
|
||||
};
|
||||
|
||||
private static final String TYPE = "HlsDownloadAction";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue