use of com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory in project ExoPlayer by google.
the class DashWidevineOfflineTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
testRunner = new DashTestRunner(TAG, getActivity(), getInstrumentation()).setStreamName("test_widevine_h264_fixed_offline").setManifestUrl(DashTestData.WIDEVINE_H264_MANIFEST).setWidevineMimeType(MimeTypes.VIDEO_H264).setFullPlaybackNoSeeking(true).setCanIncludeAdditionalVideoFormats(false).setAudioVideoFormats(DashTestData.WIDEVINE_AAC_AUDIO_REPRESENTATION_ID, DashTestData.WIDEVINE_H264_CDD_FIXED);
boolean useL1Widevine = DashTestRunner.isL1WidevineAvailable(MimeTypes.VIDEO_H264);
String widevineLicenseUrl = DashTestData.getWidevineLicenseUrl(useL1Widevine);
httpDataSourceFactory = new DefaultHttpDataSourceFactory(USER_AGENT);
offlineLicenseHelper = OfflineLicenseHelper.newWidevineInstance(widevineLicenseUrl, httpDataSourceFactory);
}
Aggregations