use of android.media.DrmInitData.SchemeInitData in project media by androidx.
the class OutputConsumerAdapterV30 method toExoPlayerDrmInitData.
@Nullable
private static DrmInitData toExoPlayerDrmInitData(@Nullable String schemeType, @Nullable android.media.DrmInitData drmInitData) {
if (drmInitData == null) {
return null;
}
SchemeData[] schemeDatas = new SchemeData[drmInitData.getSchemeInitDataCount()];
for (int i = 0; i < schemeDatas.length; i++) {
SchemeInitData schemeInitData = drmInitData.getSchemeInitDataAt(i);
schemeDatas[i] = new SchemeData(schemeInitData.uuid, schemeInitData.mimeType, schemeInitData.data);
}
return new DrmInitData(schemeType, schemeDatas);
}
use of android.media.DrmInitData.SchemeInitData in project ExoPlayer by google.
the class OutputConsumerAdapterV30 method toExoPlayerDrmInitData.
@Nullable
private static DrmInitData toExoPlayerDrmInitData(@Nullable String schemeType, @Nullable android.media.DrmInitData drmInitData) {
if (drmInitData == null) {
return null;
}
SchemeData[] schemeDatas = new SchemeData[drmInitData.getSchemeInitDataCount()];
for (int i = 0; i < schemeDatas.length; i++) {
SchemeInitData schemeInitData = drmInitData.getSchemeInitDataAt(i);
schemeDatas[i] = new SchemeData(schemeInitData.uuid, schemeInitData.mimeType, schemeInitData.data);
}
return new DrmInitData(schemeType, schemeDatas);
}
Aggregations