Skip to content

Commit 9d88d84

Browse files
committed
[Soundcloud] Add support for AAC 160k unprotected stream
This stream isn't returned in DRM-protected tracks, of course.
1 parent 8b9ccec commit 9d88d84

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudStreamExtractor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ private void extractAudioStreams(@Nonnull final JsonArray transcodings,
240240
} else if (preset.contains("opus")) {
241241
builder.setMediaFormat(MediaFormat.OPUS);
242242
builder.setAverageBitrate(64);
243-
builder.setDeliveryMethod(DeliveryMethod.HLS);
243+
} else if (preset.contains("aac_160k")) {
244+
builder.setMediaFormat(MediaFormat.M4A);
245+
builder.setAverageBitrate(160);
244246
} else {
245247
// Unknown format, skip to the next audio stream
246248
return;

0 commit comments

Comments
 (0)