mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix playback tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135100455
This commit is contained in:
parent
b29b4f7e1a
commit
f2beec4c82
1 changed files with 3 additions and 1 deletions
|
|
@ -19,6 +19,8 @@ import android.annotation.TargetApi;
|
||||||
import android.media.MediaDrm;
|
import android.media.MediaDrm;
|
||||||
import android.media.UnsupportedSchemeException;
|
import android.media.UnsupportedSchemeException;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.test.ActivityInstrumentationTestCase2;
|
import android.test.ActivityInstrumentationTestCase2;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import com.google.android.exoplayer2.C;
|
import com.google.android.exoplayer2.C;
|
||||||
|
|
@ -801,7 +803,7 @@ public final class DashTest extends ActivityInstrumentationTestCase2<HostActivit
|
||||||
|
|
||||||
private DashTestTrackSelector(String audioFormatId, String[] videoFormatIds,
|
private DashTestTrackSelector(String audioFormatId, String[] videoFormatIds,
|
||||||
boolean canIncludeAdditionalVideoFormats) {
|
boolean canIncludeAdditionalVideoFormats) {
|
||||||
super(null);
|
super(new Handler(Looper.getMainLooper()));
|
||||||
this.audioFormatId = audioFormatId;
|
this.audioFormatId = audioFormatId;
|
||||||
this.videoFormatIds = videoFormatIds;
|
this.videoFormatIds = videoFormatIds;
|
||||||
this.canIncludeAdditionalVideoFormats = canIncludeAdditionalVideoFormats;
|
this.canIncludeAdditionalVideoFormats = canIncludeAdditionalVideoFormats;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue