Java Code Examples for com.google.android.exoplayer2.drm.DrmInitData.SchemeData#clone()
The following examples show how to use
com.google.android.exoplayer2.drm.DrmInitData.SchemeData#clone() .
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: DrmInitData.java From K-Sonic with MIT License | 6 votes |
private DrmInitData(boolean cloneSchemeDatas, SchemeData... schemeDatas) { if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } // Sorting ensures that universal scheme data(i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(schemeDatas, this); // Check for no duplicates. for (int i = 1; i < schemeDatas.length; i++) { if (schemeDatas[i - 1].uuid.equals(schemeDatas[i].uuid)) { throw new IllegalArgumentException("Duplicate data for uuid: " + schemeDatas[i].uuid); } } this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; }
Example 2
Source File: DrmInitData.java From MediaSDK with Apache License 2.0 | 5 votes |
private DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas, SchemeData... schemeDatas) { this.schemeType = schemeType; if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; // Sorting ensures that universal scheme data (i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(this.schemeDatas, this); }
Example 3
Source File: DrmInitData.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas, SchemeData... schemeDatas) { this.schemeType = schemeType; if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } // Sorting ensures that universal scheme data (i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(schemeDatas, this); this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; }
Example 4
Source File: DrmInitData.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas, SchemeData... schemeDatas) { this.schemeType = schemeType; if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } // Sorting ensures that universal scheme data (i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(schemeDatas, this); this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; }
Example 5
Source File: DrmInitData.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas, SchemeData... schemeDatas) { this.schemeType = schemeType; if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; // Sorting ensures that universal scheme data (i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(this.schemeDatas, this); }
Example 6
Source File: DrmInitData.java From Telegram with GNU General Public License v2.0 | 5 votes |
private DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas, SchemeData... schemeDatas) { this.schemeType = schemeType; if (cloneSchemeDatas) { schemeDatas = schemeDatas.clone(); } this.schemeDatas = schemeDatas; schemeDataCount = schemeDatas.length; // Sorting ensures that universal scheme data (i.e. data that applies to all schemes) is matched // last. It's also required by the equals and hashcode implementations. Arrays.sort(this.schemeDatas, this); }