Java Code Examples for com.google.android.exoplayer2.source.chunk.ChunkSampleStream#release()
The following examples show how to use
com.google.android.exoplayer2.source.chunk.ChunkSampleStream#release() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DashMediaPeriod.java From MediaSDK with Apache License 2.0 | 6 votes |
private void releaseDisabledStreams( TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { for (int i = 0; i < selections.length; i++) { if (selections[i] == null || !mayRetainStreamFlags[i]) { if (streams[i] instanceof ChunkSampleStream) { @SuppressWarnings("unchecked") ChunkSampleStream<DashChunkSource> stream = (ChunkSampleStream<DashChunkSource>) streams[i]; stream.release(this); } else if (streams[i] instanceof EmbeddedSampleStream) { ((EmbeddedSampleStream) streams[i]).release(); } streams[i] = null; } } }
Example 2
Source File: DashMediaPeriod.java From Telegram with GNU General Public License v2.0 | 6 votes |
private void releaseDisabledStreams( TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { for (int i = 0; i < selections.length; i++) { if (selections[i] == null || !mayRetainStreamFlags[i]) { if (streams[i] instanceof ChunkSampleStream) { @SuppressWarnings("unchecked") ChunkSampleStream<DashChunkSource> stream = (ChunkSampleStream<DashChunkSource>) streams[i]; stream.release(this); } else if (streams[i] instanceof EmbeddedSampleStream) { ((EmbeddedSampleStream) streams[i]).release(); } streams[i] = null; } } }
Example 3
Source File: DashMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
private void releaseDisabledStreams( TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { for (int i = 0; i < selections.length; i++) { if (selections[i] == null || !mayRetainStreamFlags[i]) { if (streams[i] instanceof ChunkSampleStream) { @SuppressWarnings("unchecked") ChunkSampleStream<DashChunkSource> stream = (ChunkSampleStream<DashChunkSource>) streams[i]; stream.release(this); } else if (streams[i] instanceof EmbeddedSampleStream) { ((EmbeddedSampleStream) streams[i]).release(); } streams[i] = null; } } }
Example 4
Source File: DashMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
private void releaseDisabledStreams( TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { for (int i = 0; i < selections.length; i++) { if (selections[i] == null || !mayRetainStreamFlags[i]) { if (streams[i] instanceof ChunkSampleStream) { @SuppressWarnings("unchecked") ChunkSampleStream<DashChunkSource> stream = (ChunkSampleStream<DashChunkSource>) streams[i]; stream.release(this); } else if (streams[i] instanceof EmbeddedSampleStream) { ((EmbeddedSampleStream) streams[i]).release(); } streams[i] = null; } } }
Example 5
Source File: DashMediaPeriod.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
private void releaseDisabledStreams( TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { for (int i = 0; i < selections.length; i++) { if (selections[i] == null || !mayRetainStreamFlags[i]) { if (streams[i] instanceof ChunkSampleStream) { @SuppressWarnings("unchecked") ChunkSampleStream<DashChunkSource> stream = (ChunkSampleStream<DashChunkSource>) streams[i]; stream.release(this); } else if (streams[i] instanceof EmbeddedSampleStream) { ((EmbeddedSampleStream) streams[i]).release(); } streams[i] = null; } } }
Example 6
Source File: SsMediaPeriod.java From Telegram with GNU General Public License v2.0 | 5 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 7
Source File: DashMediaPeriod.java From MediaSDK with Apache License 2.0 | 5 votes |
public void release() { playerEmsgHandler.release(); for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(this); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 8
Source File: DashMediaPeriod.java From Telegram with GNU General Public License v2.0 | 5 votes |
public void release() { playerEmsgHandler.release(); for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(this); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 9
Source File: SsMediaPeriod.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 10
Source File: DashMediaPeriod.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public void release() { playerEmsgHandler.release(); for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(this); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 11
Source File: SsMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 12
Source File: DashMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void release() { playerEmsgHandler.release(); for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(this); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 13
Source File: SsMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 14
Source File: DashMediaPeriod.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void release() { playerEmsgHandler.release(); for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(this); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 15
Source File: SsMediaPeriod.java From MediaSDK with Apache License 2.0 | 5 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } callback = null; eventDispatcher.mediaPeriodReleased(); }
Example 16
Source File: SsMediaPeriod.java From K-Sonic with MIT License | 4 votes |
public void release() { for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } }
Example 17
Source File: DashMediaPeriod.java From K-Sonic with MIT License | 4 votes |
public void release() { for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { sampleStream.release(); } }