mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Migrate usages of deprecated SinglePeriodTimeline constructor
PiperOrigin-RevId: 321168965
This commit is contained in:
parent
8eb2354e5e
commit
5a2e04ec39
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ public final class SinglePeriodTimelineTest {
|
|||
/* isDynamic= */ false,
|
||||
/* isLive= */ false,
|
||||
/* manifest= */ null,
|
||||
/* tag= */ (Object) null);
|
||||
new MediaItem.Builder().setUri(Uri.EMPTY).setTag(null).build());
|
||||
|
||||
assertThat(timeline.getWindow(/* windowIndex= */ 0, window).tag).isNull();
|
||||
assertThat(timeline.getPeriod(/* periodIndex= */ 0, period, /* setIds= */ false).id).isNull();
|
||||
|
|
@ -117,7 +117,7 @@ public final class SinglePeriodTimelineTest {
|
|||
/* isDynamic= */ false,
|
||||
/* isLive= */ false,
|
||||
/* manifest= */ null,
|
||||
tag);
|
||||
new MediaItem.Builder().setUri(Uri.EMPTY).setTag(tag).build());
|
||||
|
||||
assertThat(timeline.getWindow(/* windowIndex= */ 0, window).tag).isEqualTo(tag);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue