Home
last modified time | relevance | path

Searched refs:positionMs (Results 1 – 18 of 18) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlayerMessage.java64 private long positionMs; field in PlayerMessage
94 this.positionMs = C.TIME_UNSET; in PlayerMessage()
170 return positionMs; in getPositionMs()
182 public PlayerMessage setPosition(long positionMs) { in setPosition() argument
184 this.positionMs = positionMs; in setPosition()
200 public PlayerMessage setPosition(int windowIndex, long positionMs) { in setPosition() argument
202 Assertions.checkArgument(positionMs != C.TIME_UNSET); in setPosition()
204 throw new IllegalSeekPositionException(timeline, windowIndex, positionMs); in setPosition()
207 this.positionMs = positionMs; in setPosition()
246 if (positionMs == C.TIME_UNSET) { in send()
DDefaultControlDispatcher.java59 public boolean dispatchSeekTo(Player player, int windowIndex, long positionMs) { in dispatchSeekTo() argument
60 player.seekTo(windowIndex, positionMs); in dispatchSeekTo()
174 long positionMs = player.getCurrentPosition() + offsetMs; in seekToOffset() local
177 positionMs = Math.min(positionMs, durationMs); in seekToOffset()
179 positionMs = Math.max(positionMs, 0); in seekToOffset()
180 player.seekTo(player.getCurrentWindowIndex(), positionMs); in seekToOffset() local
DIllegalSeekPositionException.java35 public final long positionMs; field in IllegalSeekPositionException
42 public IllegalSeekPositionException(Timeline timeline, int windowIndex, long positionMs) { in IllegalSeekPositionException() argument
45 this.positionMs = positionMs; in IllegalSeekPositionException()
DExoPlayerImpl.java560 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument
563 throw new IllegalSeekPositionException(timeline, windowIndex, positionMs); in seekTo()
580 maskWindowIndexAndPositionForSeek(timeline, windowIndex, positionMs); in seekTo()
585 internalPlayer.seekTo(timeline, windowIndex, C.msToUs(positionMs)); in seekTo()
1175 Timeline timeline, int windowIndex, long positionMs) { in maskWindowIndexAndPositionForSeek() argument
1178 maskingWindowPositionMs = positionMs == C.TIME_UNSET ? 0 : positionMs; in maskWindowIndexAndPositionForSeek()
1185 positionMs == C.TIME_UNSET in maskWindowIndexAndPositionForSeek()
1187 : C.msToUs(positionMs); in maskWindowIndexAndPositionForSeek()
1236 long positionMs = C.usToMs(positionUs); in periodPositionUsToWindowPositionMs() local
1238 positionMs += period.getPositionInWindowMs(); in periodPositionUsToWindowPositionMs()
[all …]
DControlDispatcher.java47 boolean dispatchSeekTo(Player player, int windowIndex, long positionMs); in dispatchSeekTo() argument
DBasePlayer.java108 public final void seekTo(long positionMs) { in seekTo() argument
109 seekTo(getCurrentWindowIndex(), positionMs); in seekTo() local
DPlayer.java1072 void seekTo(long positionMs); in seekTo() argument
1083 void seekTo(int windowIndex, long positionMs); in seekTo() argument
DSimpleExoPlayer.java1525 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument
1528 player.seekTo(windowIndex, positionMs); in seekTo()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java125 private final long positionMs; field in Action.Seek
134 public Seek(String tag, long positionMs) { in Seek() argument
135 super(tag, "Seek:" + positionMs); in Seek()
137 this.positionMs = positionMs; in Seek()
150 public Seek(String tag, int windowIndex, long positionMs, boolean catchIllegalSeekException) { in Seek() argument
151 super(tag, "Seek:" + positionMs); in Seek()
153 this.positionMs = positionMs; in Seek()
162 player.seekTo(positionMs); in doActionImpl()
164 player.seekTo(windowIndex, positionMs); in doActionImpl()
178 private final long positionMs; field in Action.SetMediaItems
[all …]
DActionSchedule.java166 public Builder seek(long positionMs) { in seek() argument
167 return apply(new Seek(tag, positionMs)); in seek()
177 public Builder seek(int windowIndex, long positionMs) { in seek() argument
178 return apply(new Seek(tag, windowIndex, positionMs, /* catchIllegalSeekException= */ false)); in seek()
189 public Builder seek(int windowIndex, long positionMs, boolean catchIllegalSeekException) { in seek() argument
190 return apply(new Seek(tag, windowIndex, positionMs, catchIllegalSeekException)); in seek()
199 public Builder seekAndWait(long positionMs) { in seekAndWait() argument
200 return apply(new Seek(tag, positionMs)) in seekAndWait()
263 public Builder playUntilPosition(int windowIndex, long positionMs) { in playUntilPosition() argument
264 return apply(new PlayUntilPosition(tag, windowIndex, positionMs)); in playUntilPosition()
[all …]
DExoPlayerTestRunner.java138 public Builder initialSeek(int windowIndex, long positionMs) { in initialSeek() argument
140 this.initialPositionMs = positionMs; in initialSeek()
DStubExoPlayer.java312 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java163 public PendingResult<MediaChannelResult> loadItem(MediaQueueItem item, long positionMs) { in loadItem() argument
165 new MediaQueueItem[] {item}, /* startWindowIndex= */ 0, positionMs, repeatMode.value); in loadItem()
175 MediaQueueItem[] items, int startIndex, long positionMs, @RepeatMode int repeatMode) { in loadItems() argument
176 return setMediaItemsInternal(items, startIndex, positionMs, repeatMode); in loadItems()
430 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument
434 positionMs = positionMs != C.TIME_UNSET ? positionMs : 0; in seekTo()
438 positionMs, null).setResultCallback(seekResultCallback); in seekTo() local
440 remoteMediaClient.seek(positionMs).setResultCallback(seekResultCallback); in seekTo()
444 pendingSeekPositionMs = positionMs; in seekTo()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerControlView.java1041 private void seekToTimeBarPosition(Player player, long positionMs) { in seekToTimeBarPosition() argument
1049 if (positionMs < windowDurationMs) { in seekToTimeBarPosition()
1053 positionMs = windowDurationMs; in seekToTimeBarPosition()
1056 positionMs -= windowDurationMs; in seekToTimeBarPosition()
1062 boolean dispatched = seekTo(player, windowIndex, positionMs); in seekToTimeBarPosition()
1070 private boolean seekTo(Player player, int windowIndex, long positionMs) { in seekTo() argument
1071 return controlDispatcher.dispatchSeekTo(player, windowIndex, positionMs); in seekTo()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java1783 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesDuringPreparation()
1804 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesAfterPreparation()
1826 assertThat(target50.positionMs).isAtLeast(50L); in multipleSendMessages()
1827 assertThat(target80.positionMs).isAtLeast(80L); in multipleSendMessages()
1828 assertThat(target80.positionMs).isAtLeast(target50.positionMs); in multipleSendMessages()
1879 assertThat(target1.positionMs).isAtLeast(50L); in multipleSendMessagesAtSameTime()
1880 assertThat(target2.positionMs).isAtLeast(50L); in multipleSendMessagesAtSameTime()
1901 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesMultiPeriodResolution()
1948 assertThat(targetStartFirstPeriod.positionMs).isAtLeast(0L); in sendMessagesAtStartAndEndOfPeriod()
1950 assertThat(targetEndMiddlePeriodResolved.positionMs).isAtLeast(duration1Ms - 1); in sendMessagesAtStartAndEndOfPeriod()
[all …]
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/
DLeanbackPlayerAdapter.java192 public void seekTo(long positionMs) { in seekTo() argument
193 controlDispatcher.dispatchSeekTo(player, player.getCurrentWindowIndex(), positionMs); in seekTo()
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DMediaSessionConnector.java941 private void seekTo(Player player, int windowIndex, long positionMs) { in seekTo() argument
942 controlDispatcher.dispatchSeekTo(player, windowIndex, positionMs); in seekTo()
1164 public void onSeekTo(long positionMs) { in onSeekTo() argument
1166 seekTo(player, player.getCurrentWindowIndex(), positionMs); in onSeekTo()
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java1184 long positionMs = getContentPeriodPositionMs(); in checkForContentCompleteOrNewAdGroup() local
1186 int newAdGroupIndex = period.getAdGroupIndexForPositionUs(C.msToUs(positionMs)); in checkForContentCompleteOrNewAdGroup()
1189 pendingContentPositionMs = positionMs; in checkForContentCompleteOrNewAdGroup()