text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>String language, @C.RoleFlags int roleFlags, @C.SelectionFlags int selectionFlags, String codecs, boolean isDrc, long lastModified) { String sampleMimeType = getSampleMimeType(containerMimeType, codecs); if (sampleMimeType != null...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>tring schemeIdUri, String value, long timescale, long[] presentationTimesUs, EventMessage[] events) { this.schemeIdUri = schemeIdUri; this.value = value; this.timescale = timescale; this.presentationTimesUs = presentationTimesUs; this.events = events; } /** * A constructe...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>one starts the byte after the other ends, forming a contiguous region with * no overlap. * * <p>If {@code other} is null then the merge is considered unsuccessful, and null is returned. * * @param other The {@link RangedUri} to merge. * @param baseUri The optional base Uri. * @return ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>{ throw new IllegalArgumentException("segmentBase must be of type SingleSegmentBase or " + "MultiSegmentBase"); } } private Representation( long revisionId, Format format, String baseUrl, SegmentBase segmentBase, List<Descriptor> inbandEventStreams) {...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>e if (identifiers[i] == BANDWIDTH_ID) { builder.append(String.format(Locale.US, identifierFormatTags[i], bandwidth)); } else if (identifiers[i] == TIME_ID) { builder.append(String.format(Locale.US, identifierFormatTags[i], time)); } } builder.append(urlPieces[identifier...
fim
yuliskov/SmartTube
java
<|fim_suffix|> law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.g...
fim
yuliskov/SmartTube
java
<|fim_suffix|>epresentation.getIndexUri(); if (indexUri != null) { addSegment(periodStartUs, baseUrl, indexUri, out); } long firstSegmentNum = index.getFirstSegmentNum(); long lastSegmentNum = firstSegmentNum + segmentCount - 1; for (long j = firstSegmentNum; j <= lastSegmentNum; j...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_suffix|>-04T10:01:37+01"); // Negative timezone offsets with minus character. assertParseStringToLong(1512381697000L + 4980000L, parser, "2017-12-04T10:01:37-01:23"); assertParseStringToLong(1512381697000L + 4980000L, parser, "2017-12-04T10:01:37-0123"); assertParseStringToLong(1512381697000L + 36...
fim
yuliskov/SmartTube
java
<|fim_suffix|>l.loadDrmInitData(DummyDataSource.INSTANCE, period); assertThat(drmInitData).isNull(); } private static Period newPeriod(AdaptationSet... adaptationSets) { return new Period("", 0, Arrays.asList(adaptationSets)); } private static AdaptationSet newAdaptationSets(Representation... represen...
fim
yuliskov/SmartTube
java
<|fim_suffix|>{presentationTimeUs1}, new EventMessage[] {eventMessage1}); EventStream eventStream2 = new EventStream(SCHEME_ID, VALUE, TIME_SCALE, new long[] {presentationTimeUs1, presentationTimeUs2, presentationTimeUs3}, new EventMessage[] {eventMessage1, eventMessage2, eventMessage3}); ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ilityDescriptors(String value) { return Collections.singletonList(new Descriptor("urn:scte:dash:cc:cea-708:2015", value, null)); } private static void assertNextTag(XmlPullParser xpp) throws Exception { xpp.next(); assertThat(xpp.getEventType()).isEqualTo(XmlPullParser.START_TAG); ass...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_suffix|>baseUrl); assertThat(merged).isNull(); } } <|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
fim
yuliskov/SmartTube
java
<|fim_suffix|>} <|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|> DownloadHelper.forDash( Uri.parse("http://uri"), new FakeDataSource.Factory(), (handler, videoListener, audioListener, text, metadata, drm) -> new Renderer[0], /* drmSessionManager= */ null, DownloadHelper.DEFAULT_TRACK_SELECTOR_PARAMETERS); } } <|fim_prefix|>/...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>hread.runOnMainThread( () -> { Intent startIntent = DownloadService.buildRemoveDownloadIntent( context, DownloadService.class, TEST_ID, /* foreground= */ false); dashDownloadService.onStartCommand(startIntent, 0, 0); }); } private vo...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use thi<|fim_suffix|>e License. */ package com.google.android.exoplayer2.source.hls; import com.google.android.exoplayer2.upstream.DataSource; /** * Default imp...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>Uri, byte[]> entry) { return size() > KEY_CACHE_SIZE; } } } <|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>dd fps to hls format info channelCount, playlistFormat.selectionFlags, playlistFormat.language); } private static boolean isMediaChunk(Chunk chunk) { return chunk instanceof HlsMediaChunk; } private static boolean formatsMatch(Format manifestFormat, Format sampleForma...
fim
yuliskov/SmartTube
java
<|fim_suffix|>VariantInfo[] newArray(int size) { return new VariantInfo[size]; } }; } /** * The GROUP-ID value of this track, if the track is derived from an EXT-X-MEDIA tag. Null if the * track is not derived from an EXT-X-MEDIA TAG. */ @Nullable public final String groupI...
fim
yuliskov/SmartTube
java
<|fim_suffix|>lable String mimeType) { super("Unable to bind a sample queue to TrackGroup with mime type " + mimeType + "."); } } <|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
fim
yuliskov/SmartTube
java
<|fim_suffix|> the License. */ package com.google.android.exoplayer2.source.hls; import android.util.SparseArray; import com.google.android.exoplayer2.util.TimestampAdjuster; /** * Provides {@link TimestampAdjuster} instances for use during HLS playbacks. */ public final class TimestampAdjusterProvider { // TOD...
fim
yuliskov/SmartTube
java
<|fim_suffix|>pleData if necessary. if (sampleSize == sampleData.length) { sampleData = Arrays.copyOf(sampleData, (currentFileSize != C.LENGTH_UNSET ? currentFileSize : sampleData.length) * 3 / 2); } // Consume to the input. int bytesRead = input.read(sampleData, sampleSize, sampleData....
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at <|fim_suffix|>. * See the License for the specific language governi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>aryPlaylistListener; ParsingLoadable<HlsPlaylist> masterPlaylistLoadable = new ParsingLoadable<>( dataSourceFactory.createDataSource(C.DATA_TYPE_MANIFEST), initialPlaylistUri, C.DATA_TYPE_MANIFEST, playlistParserFactory.createPlaylistParser()); ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>eys); } @Override public ParsingLoadable.Parser<HlsPlaylist> createPlaylistParser( HlsMasterPlaylist masterPlaylist) { return new FilteringManifestParser<>( hlsPlaylistParserFactory.createPlaylistParser(masterPlaylist), streamKeys); } } <|fim_prefix|>/* * Copyright (C) 2018 The...
fim
yuliskov/SmartTube
java
<|fim_suffix|>diaPlaylistUrls = new ArrayList<>(); for (int i = 0; i < variants.size(); i++) { Uri uri = variants.get(i).url; if (!mediaPlaylistUrls.contains(uri)) { mediaPlaylistUrls.add(uri); } } addMediaPlaylistUrls(videos, mediaPlaylistUrls); addMediaPlaylistUrls(audios, me...
fim
yuliskov/SmartTube
java
<|fim_suffix|>rotectionSchemes, List<Segment> segments) { super(baseUri, tags, hasIndependentSegments); this.playlistType = playlistType; this.startTimeUs = startTimeUs; this.hasDiscontinuitySequence = hasDiscontinuitySequence; this.discontinuitySequence = discontinuitySequence; this.media...
fim
yuliskov/SmartTube
java
<|fim_suffix|>aylist; import com.google.android.exoplayer2.offline.FilterableManifest; import java.util.Collections; import java.util.List; /** Represents an HLS playlist. */ public abstract class HlsPlaylist implements FilterableManifest<HlsPlaylist> { /** * The base uri. Used to resolve relative paths. */ ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> sampleMimeType, codecs, /* metadata= */ null, /* bitrate= */ Format.NO_VALUE, width, height, frameRate, /* initializationData= */ null, ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.exoplayer2.source.hls.playlist; import com.google.android.exoplayer2.upstream.ParsingLoadable; /** Factory for {@...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
fim
yuliskov/SmartTube
java
<|fim_suffix|> testInstance.close(); assertThat(upstream.closedCalled).isTrue(); } private static class TestAes123DataSource extends Aes128DataSource { public TestAes123DataSource(DataSource upstream, byte[] encryptionKey, byte[] encryptionIv) { super(upstream, encryptionKey, encryptionIv); } ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|> } @Test public void sniff_failsForIncorrectBom() throws IOException, InterruptedException { byte[] data = new byte[] {(byte) 0xEF, (byte) 0xBB, (byte) 0xBB, 'W', 'E', 'B', 'V', 'T', 'T', '\n'}; assertThat(sniffData(data)).isFalse(); } @Test public void sniff_failsForIncomplete...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>TE-TIME:2016-09-22T02:00:01+00:00\n" + "#EXT-X-KEY:METHOD=AES-128,URI=\"https://example.com/key?value=something\"\n" + "#EXTINF:5.005,\n" + "02/00/27.ts\n" + "#EXTINF:5.005,\n" + "02/00/32.ts\n" + "#EXT-X-KEY:METHOD=NONE\n" ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>Shift, newIndex); } //@CheckResult // /* package */ RepresentationHolder copyWithNewSegmentIndex(SabrSegmentIndex segmentIndex) { // return new RepresentationHolder( // periodDurationUs, representation, extractorWrapper, segmentNumShift, segmentInd...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file <|fim_suffix|>); buffer.setFlags(C.BUFFER_FLAG_KEY_FRAME); buffer.data.put(serializedEvent); buffer.timeUs = eventTimesUs[sampleInde...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr; import android.os.Handler; import android.os.Message; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.FormatHolder; import com.google.android...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|> Format[][] primaryGroupCea608TrackFormats, TrackGroup[] trackGroups, TrackGroupInfo[] trackGroupInfos) { int trackGroupCount = 0; for (int i = 0; i < primaryGroupCount; i++) { int[] adaptationSetIndices = groupedAdaptationSetIndices[i]; ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr; import android.net.Uri; import android.os.Handler; import android.os.SystemClock; import android.util.SparseArray; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.Timeline; import com.go...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.manifest; import java.util.Collections; import java.util.List; /** * Represents a set of interchangeable encoded versions of a media content component. */ public class AdaptationSet { /** *<|fim_suffix|> of the {@link com.google.android.exopl...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ndex(int type) { int adaptationCount = adaptationSets.size(); for (int i = 0; i < adaptationCount; i++) { if (adaptationSets.get(i).type == type) { return i; } } return C.INDEX_UNSET; } } <|fim_prefix|>package com.google.android.e...
fim
yuliskov/SmartTube
java
<|fim_suffix|> returned. * * @param other The {@link RangedUri} to merge. * @param baseUri The optional base Uri. * @return The merged {@link RangedUri} if the merge was successful. Null otherwise. */ public @Nullable RangedUri attemptMerge(@Nullable RangedUri other, String baseUri) { final String ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.manifest; import android.net.Uri; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.source.sabr.SabrSegmentIndex; import com.google.android.exoplayer2.source.sabr.manifest.SegmentBas...
fim
yuliskov/SmartTube
java
<|fim_suffix|>abrStreams.get(trackType); if (activeStream == null) { throw new IllegalStateException("Active SabrStream not found for track type " + trackType); } return activeStream.createStreamerContext(); } } <|fim_prefix|>package com.google.android.exoplayer2.source.sabr.ma...
fim
yuliskov/SmartTube
java
package com.google.android.exoplayer2.source.sabr.manifest; import android.text.TextUtils; import android.util.Pair; import androidx.annotation.NonNull; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.drm.DrmInitData; import com.google.android...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>dentifierFormatTags A holder for format tags corresponding to the parsed identifiers. * @return The number of identifiers in the template url. * @throws IllegalArgumentException If the template string is malformed. */ private static int parseTemplate(String template, String[] urlPieces, int[] i...
fim
yuliskov/SmartTube
java
<|fim_suffix|>a.hasFormatId()) { selectedFormats.put(formatInitMetadata.getFormatId().toString(), initializedFormat); Log.d(TAG, "Initialized Format: %s", initializedFormat.formatId); } if (!initializedFormat.discard) { result.sabrPart = new FormatInitializedSabrPart...
fim
yuliskov/SmartTube
java
package com.google.android.exoplayer2.source.sabr.parser; import androidx.annotation.NonNull; import com.google.android.exoplayer2.extractor.ExtractorInput; import com.google.android.exoplayer2.source.sabr.parser.exceptions.MediaSegmentMismatchError; import com.google.android.exoplayer2.source.sabr.parser.exceptions....
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.adapter; import androidx.annotation.Nullable; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.drm.DrmInitData; import com.google.android.exoplayer2.extractor.ExtractorInput; import com.google.android.exoplayer2.ex...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.adapter; import com.google.android.exoplayer2.extractor.ExtractorInput; import com.google.android.exoplayer2.extractor.PositionHolder; import com.google.android.exoplayer2.extractor.mkv.MatroskaExtractor; import com.google.android.exoplayer2.source...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.exceptions; import com.google.android.exoplayer2.source.sabr.protos.misc.FormatId; public class MediaSegmentMismatchError extends SabrStreamError { public final long expecte<|fim_suffix|>r) { super(String.format( "Segme...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.exceptions<|fim_suffix|>g); } } <|fim_middle|>; public class PoTokenError extends SabrStreamError { public PoTokenError(String msg) { super(ms<|endoftext|>
fim
yuliskov/SmartTube
java
<|fim_prefix|><|fim_suffix|>eption { } <|fim_middle|>package com.google.android.exoplayer2.source.sabr.parser.exceptions; public class SabrStreamConsumedError extends Exc<|endoftext|>
fim
yuliskov/SmartTube
java
<|fim_prefix|>package c<|fim_suffix|>urce.sabr.parser.exceptions; public class SabrStreamError extends RuntimeException { public SabrStreamError(String msg) { super(msg); } } <|fim_middle|>om.google.android.exoplayer2.so<|endoftext|>
fim
yuliskov/SmartTube
java
<|fim_suffix|> if (header == 0xFFF) return i; } return -1; } } <|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.frames; import com.google.android.exoplayer2.extractor.TrackOutput; public class AACFrameExtractor extends BaseFrameExtractor { public AACFrameExtract...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.frames; import com.google.android.exoplayer2.extractor.TrackOutput; public class AVCFrameExtractor extends BaseFrameExtractor { public AVCFrameExtractor(TrackOutput trackOutput, long startTimeUs, long frameDurationUs) { super(trackOutp...
fim
yuliskov/SmartTube
java
<|fim_suffix|>uffer.data, buffer.limit(), maxLength); if (bytesRead <= 0) return; buffer.setLimit(buffer.limit() + bytesRead); int frameStart; while ((frameStart = findNextFrameStart(0)) >= 0) { int frameEnd = findNextFrameStart(frameStart + 1); // If no next f...
fim
yuliskov/SmartTube
java
<|fim_suffix|>rst frame is keyframe) */ void resetForNewSegment(); } <|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.frames; import com.google.android.exoplayer2.extractor.Ext<|fim_middle|>ractorInput; import java.io.IOException; public interface FrameExtractor { /** * Read da...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.frames; import com.google.android.exoplayer2.extractor.TrackOutput; public class OpusFrameExtractor extends BaseFrameExtractor { public OpusFrameExtractor(TrackOutput trackOutput, long startTi<|fim_suffix|>ith TOC byte (0x00..0xFF) // ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.fram<|fim_suffix|>tartTimeUs, long frameDurationUs) { super(trackOutput, startTimeUs, frameDurationUs); } @Override protected int findNextFrameStart(int from) { for (int i = from; i < buffer.limit(); i++) { i...
fim
yuliskov/SmartTube
java
<|fim_suffix|>} return -1; } } <|fim_prefix|>pac<|fim_middle|>kage com.google.android.exoplayer2.source.sabr.parser.frames; import com.google.android.exoplayer2.extractor.TrackOutput; public class VorbisFrameExtractor extends BaseFrameExtractor { public VorbisFrameExtractor(TrackOutput trackOutput, lo...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.misc;<|fim_suffix|>public static final int VIDEO_ONLY = 2; } <|fim_middle|> public class EnabledTrackTypes { public static final int VIDEO_AND_AUDIO = 0; public static final int AUDIO_ONLY = 1; <|endoftext|>
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.misc; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.extractor.ExtractorInput; import com.google.android.exoplayer2.source.sabr.parser.SabrStream; import com.google.android.exoplayer2.source.sabr.parser.parts.MediaSegm...
fim
yuliskov/SmartTube
java
<|fim_suffix|>rs.parseInt(displayName) : Helpers.parseInt(displayName.replace("p", "")); } } <|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.misc; import com.google.android.exoplayer2.extractor.ExtractorInput; import com.liskovsoft.sharedutils.helpers.Helpers; import java.io.ByteArrayInputS...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.models; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.source.sabr.protos.misc.FormatId; public class AudioSelector extends FormatSelector { public AudioSelector(String displayName, boolean discardMedia) { ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser<|fim_suffix|>isplayName, discardMedia, formatIds); } public CaptionSelector(String displayName, boolean discardMedia, Format... selectedFormats) { super(displayName, discardMedia, selectedFormats); } @Override public St...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.google.android.exoplayer2.source.sabr.parser.models; public class ConsumedRange { public int startSequenceNumber; public int endSequenceNumb<|fim_suffix|>eMs = startTimeMs; this.durationMs = durationMs; this.startSequenceNumber = startSequenceNumber; this.endSe...
fim
yuliskov/SmartTube
java