-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create intermediate storage for samples for formats without sync fram…
…e guarantee
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/source/SampleMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package androidx.media3.exoplayer.source; | ||
|
||
import androidx.annotation.Nullable; | ||
import androidx.media3.common.C; | ||
import androidx.media3.extractor.TrackOutput; | ||
|
||
/* package */ final class SampleMetadata { | ||
final long timeUs; | ||
|
||
@C.BufferFlags | ||
final int flags; | ||
|
||
final int size; | ||
|
||
final long absoluteOffset; | ||
|
||
@Nullable | ||
final TrackOutput.CryptoData cryptoData; | ||
|
||
SampleMetadata(long timeUs, @C.BufferFlags int flags, int size, long absoluteOffset, @Nullable TrackOutput.CryptoData cryptoData) { | ||
this.timeUs = timeUs; | ||
this.flags = flags; | ||
this.size = size; | ||
this.absoluteOffset = absoluteOffset; | ||
this.cryptoData = cryptoData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters