Search in sources :

Example 11 with SsManifest

use of com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest in project ExoPlayer by google.

the class SsMediaSource method onLoadCanceled.

@Override
public void onLoadCanceled(ParsingLoadable<SsManifest> loadable, long elapsedRealtimeMs, long loadDurationMs, boolean released) {
    LoadEventInfo loadEventInfo = new LoadEventInfo(loadable.loadTaskId, loadable.dataSpec, loadable.getUri(), loadable.getResponseHeaders(), elapsedRealtimeMs, loadDurationMs, loadable.bytesLoaded());
    loadErrorHandlingPolicy.onLoadTaskConcluded(loadable.loadTaskId);
    manifestEventDispatcher.loadCanceled(loadEventInfo, loadable.type);
}
Also used : LoadEventInfo(com.google.android.exoplayer2.source.LoadEventInfo)

Aggregations

LoadEventInfo (com.google.android.exoplayer2.source.LoadEventInfo)4 Format (com.google.android.exoplayer2.Format)3 StreamKey (com.google.android.exoplayer2.offline.StreamKey)3 SsTestUtils.createSsManifest (com.google.android.exoplayer2.source.smoothstreaming.SsTestUtils.createSsManifest)3 Test (org.junit.Test)3 SsManifest (com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest)2 StreamElement (com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest.StreamElement)2 AndroidJUnit4 (androidx.test.ext.junit.runners.AndroidJUnit4)1 C (com.google.android.exoplayer2.C)1 DrmSessionEventListener (com.google.android.exoplayer2.drm.DrmSessionEventListener)1 DrmSessionManager (com.google.android.exoplayer2.drm.DrmSessionManager)1 CompositeSequenceableLoaderFactory (com.google.android.exoplayer2.source.CompositeSequenceableLoaderFactory)1 MediaLoadData (com.google.android.exoplayer2.source.MediaLoadData)1 MediaPeriodId (com.google.android.exoplayer2.source.MediaSource.MediaPeriodId)1 MediaSourceEventListener (com.google.android.exoplayer2.source.MediaSourceEventListener)1 TrackGroup (com.google.android.exoplayer2.source.TrackGroup)1 TrackGroupArray (com.google.android.exoplayer2.source.TrackGroupArray)1 SsTestUtils.createStreamElement (com.google.android.exoplayer2.source.smoothstreaming.SsTestUtils.createStreamElement)1 MediaPeriodAsserts (com.google.android.exoplayer2.testutil.MediaPeriodAsserts)1 FilterableManifestMediaPeriodFactory (com.google.android.exoplayer2.testutil.MediaPeriodAsserts.FilterableManifestMediaPeriodFactory)1