Java Code Examples for com.google.android.exoplayer2.extractor.TrackOutput#CryptoData
The following examples show how to use
com.google.android.exoplayer2.extractor.TrackOutput#CryptoData .
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: TrackEncryptionBox.java From MediaSDK with Apache License 2.0 | 6 votes |
/** * @param isEncrypted See {@link #isEncrypted}. * @param schemeType See {@link #schemeType}. * @param perSampleIvSize See {@link #perSampleIvSize}. * @param keyId See {@link TrackOutput.CryptoData#encryptionKey}. * @param defaultEncryptedBlocks See {@link TrackOutput.CryptoData#encryptedBlocks}. * @param defaultClearBlocks See {@link TrackOutput.CryptoData#clearBlocks}. * @param defaultInitializationVector See {@link #defaultInitializationVector}. */ public TrackEncryptionBox( boolean isEncrypted, @Nullable String schemeType, int perSampleIvSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector) { Assertions.checkArgument(perSampleIvSize == 0 ^ defaultInitializationVector == null); this.isEncrypted = isEncrypted; this.schemeType = schemeType; this.perSampleIvSize = perSampleIvSize; this.defaultInitializationVector = defaultInitializationVector; cryptoData = new TrackOutput.CryptoData(schemeToCryptoMode(schemeType), keyId, defaultEncryptedBlocks, defaultClearBlocks); }
Example 2
Source File: TrackEncryptionBox.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
/** * @param isEncrypted See {@link #isEncrypted}. * @param schemeType See {@link #schemeType}. * @param perSampleIvSize See {@link #perSampleIvSize}. * @param keyId See {@link TrackOutput.CryptoData#encryptionKey}. * @param defaultEncryptedBlocks See {@link TrackOutput.CryptoData#encryptedBlocks}. * @param defaultClearBlocks See {@link TrackOutput.CryptoData#clearBlocks}. * @param defaultInitializationVector See {@link #defaultInitializationVector}. */ public TrackEncryptionBox( boolean isEncrypted, @Nullable String schemeType, int perSampleIvSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector) { Assertions.checkArgument(perSampleIvSize == 0 ^ defaultInitializationVector == null); this.isEncrypted = isEncrypted; this.schemeType = schemeType; this.perSampleIvSize = perSampleIvSize; this.defaultInitializationVector = defaultInitializationVector; cryptoData = new TrackOutput.CryptoData(schemeToCryptoMode(schemeType), keyId, defaultEncryptedBlocks, defaultClearBlocks); }
Example 3
Source File: TrackEncryptionBox.java From Telegram with GNU General Public License v2.0 | 6 votes |
/** * @param isEncrypted See {@link #isEncrypted}. * @param schemeType See {@link #schemeType}. * @param perSampleIvSize See {@link #perSampleIvSize}. * @param keyId See {@link TrackOutput.CryptoData#encryptionKey}. * @param defaultEncryptedBlocks See {@link TrackOutput.CryptoData#encryptedBlocks}. * @param defaultClearBlocks See {@link TrackOutput.CryptoData#clearBlocks}. * @param defaultInitializationVector See {@link #defaultInitializationVector}. */ public TrackEncryptionBox( boolean isEncrypted, @Nullable String schemeType, int perSampleIvSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector) { Assertions.checkArgument(perSampleIvSize == 0 ^ defaultInitializationVector == null); this.isEncrypted = isEncrypted; this.schemeType = schemeType; this.perSampleIvSize = perSampleIvSize; this.defaultInitializationVector = defaultInitializationVector; cryptoData = new TrackOutput.CryptoData(schemeToCryptoMode(schemeType), keyId, defaultEncryptedBlocks, defaultClearBlocks); }
Example 4
Source File: TrackEncryptionBox.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @param isEncrypted See {@link #isEncrypted}. * @param schemeType See {@link #schemeType}. * @param initializationVectorSize See {@link #initializationVectorSize}. * @param keyId See {@link TrackOutput.CryptoData#encryptionKey}. * @param defaultEncryptedBlocks See {@link TrackOutput.CryptoData#encryptedBlocks}. * @param defaultClearBlocks See {@link TrackOutput.CryptoData#clearBlocks}. * @param defaultInitializationVector See {@link #defaultInitializationVector}. */ public TrackEncryptionBox(boolean isEncrypted, @Nullable String schemeType, int initializationVectorSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector) { Assertions.checkArgument(initializationVectorSize == 0 ^ defaultInitializationVector == null); this.isEncrypted = isEncrypted; this.schemeType = schemeType; this.initializationVectorSize = initializationVectorSize; this.defaultInitializationVector = defaultInitializationVector; cryptoData = new TrackOutput.CryptoData(schemeToCryptoMode(schemeType), keyId, defaultEncryptedBlocks, defaultClearBlocks); }
Example 5
Source File: TrackEncryptionBox.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
/** * @param isEncrypted See {@link #isEncrypted}. * @param schemeType See {@link #schemeType}. * @param initializationVectorSize See {@link #initializationVectorSize}. * @param keyId See {@link TrackOutput.CryptoData#encryptionKey}. * @param defaultEncryptedBlocks See {@link TrackOutput.CryptoData#encryptedBlocks}. * @param defaultClearBlocks See {@link TrackOutput.CryptoData#clearBlocks}. * @param defaultInitializationVector See {@link #defaultInitializationVector}. */ public TrackEncryptionBox(boolean isEncrypted, @Nullable String schemeType, int initializationVectorSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector) { Assertions.checkArgument(initializationVectorSize == 0 ^ defaultInitializationVector == null); this.isEncrypted = isEncrypted; this.schemeType = schemeType; this.initializationVectorSize = initializationVectorSize; this.defaultInitializationVector = defaultInitializationVector; cryptoData = new TrackOutput.CryptoData(schemeToCryptoMode(schemeType), keyId, defaultEncryptedBlocks, defaultClearBlocks); }