Home
last modified time | relevance | path

Searched refs:playbackSpeed (Results 1 – 25 of 31) sorted by relevance

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DStandaloneMediaClock.java32 private float playbackSpeed; field in StandaloneMediaClock
42 playbackSpeed = Player.DEFAULT_PLAYBACK_SPEED; in StandaloneMediaClock()
43 scaledUsPerMs = getScaledUsPerMs(playbackSpeed); in StandaloneMediaClock()
83 if (playbackSpeed == 1f) { in getPositionUs()
95 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
100 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed()
101 scaledUsPerMs = getScaledUsPerMs(playbackSpeed); in setPlaybackSpeed()
106 return playbackSpeed; in getPlaybackSpeed()
109 private static int getScaledUsPerMs(float playbackSpeed) { in getScaledUsPerMs() argument
110 return Math.round(playbackSpeed * 1000f); in getScaledUsPerMs()
DMediaClock.java34 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
DEventLogger.java157 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument
158 logd(eventTime, "playbackSpeed", Float.toString(playbackSpeed)); in onPlaybackSpeedChanged()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DDefaultMediaClock.java140 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
142 rendererClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
143 playbackSpeed = rendererClock.getPlaybackSpeed(); in setPlaybackSpeed()
145 standaloneClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
177 float playbackSpeed = rendererClock.getPlaybackSpeed(); in syncClocks() local
178 if (playbackSpeed != standaloneClock.getPlaybackSpeed()) { in syncClocks()
179 standaloneClock.setPlaybackSpeed(playbackSpeed); in syncClocks()
180 listener.onPlaybackSpeedChanged(playbackSpeed); in syncClocks()
DExoPlayerImpl.java86 private float playbackSpeed; field in ExoPlayerImpl
144 playbackSpeed = Player.DEFAULT_PLAYBACK_SPEED; in ExoPlayerImpl()
609 return new PlaybackParameters(playbackSpeed); in getPlaybackParameters()
614 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
615 Assertions.checkState(playbackSpeed > 0); in setPlaybackSpeed()
616 if (this.playbackSpeed == playbackSpeed) { in setPlaybackSpeed()
620 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed()
621 PlaybackParameters playbackParameters = new PlaybackParameters(playbackSpeed); in setPlaybackSpeed()
622 internalPlayer.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
626 listener.onPlaybackSpeedChanged(playbackSpeed); in setPlaybackSpeed()
[all …]
DDefaultLoadControl.java374 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed) { in shouldContinueLoading() argument
377 if (playbackSpeed > 1) { in shouldContinueLoading()
381 Util.getMediaDurationForPlayoutDuration(minBufferUs, playbackSpeed); in shouldContinueLoading()
401 long bufferedDurationUs, float playbackSpeed, boolean rebuffering) { in shouldStartPlayback() argument
402 bufferedDurationUs = Util.getPlayoutDurationForMediaDuration(bufferedDurationUs, playbackSpeed); in shouldStartPlayback()
DLoadControl.java103 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed); in shouldContinueLoading() argument
118 boolean shouldStartPlayback(long bufferedDurationUs, float playbackSpeed, boolean rebuffering); in shouldStartPlayback() argument
DMediaPeriodHolder.java178 public void handlePrepared(float playbackSpeed, Timeline timeline) throws ExoPlaybackException { in handlePrepared() argument
181 TrackSelectorResult selectorResult = selectTracks(playbackSpeed, timeline); in handlePrepared()
230 public TrackSelectorResult selectTracks(float playbackSpeed, Timeline timeline) in selectTracks() argument
236 trackSelection.onPlaybackSpeed(playbackSpeed); in selectTracks()
DExoPlayerImplInternal.java230 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
231 handler.obtainMessage(MSG_SET_PLAYBACK_SPEED, playbackSpeed).sendToTarget(); in setPlaybackSpeed()
374 public void onPlaybackSpeedChanged(float playbackSpeed) { in onPlaybackSpeedChanged() argument
375 sendPlaybackSpeedChangedInternal(playbackSpeed, /* acknowledgeCommand= */ false); in onPlaybackSpeedChanged()
1099 private void setPlaybackSpeedInternal(float playbackSpeed) { in setPlaybackSpeedInternal() argument
1100 mediaClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeedInternal()
1432 float playbackSpeed = mediaClock.getPlaybackSpeed();
1443 newTrackSelectorResult = periodHolder.selectTracks(playbackSpeed, playbackInfo.timeline);
1507 private void updateTrackSelectionPlaybackSpeed(float playbackSpeed) {
1513 trackSelection.onPlaybackSpeed(playbackSpeed);
[all …]
DPlayer.java582 default void onPlaybackSpeedChanged(float playbackSpeed) {} in onPlaybackSpeedChanged() argument
1136 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
DSimpleExoPlayer.java924 float playbackSpeed; in setPlaybackParams() local
927 playbackSpeed = params.getSpeed(); in setPlaybackParams()
929 playbackSpeed = 1.0f; in setPlaybackParams()
931 setPlaybackSpeed(playbackSpeed); in setPlaybackParams()
1553 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
1555 player.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DDefaultMediaClockTest.java272 mediaClockRenderer.playbackSpeed = TEST_PLAYBACK_SPEED; in getPositionWithPlaybackSpeedChange_shouldTriggerCallback()
378 public float playbackSpeed; field in DefaultMediaClockTest.MediaClockRenderer
385 public MediaClockRenderer(float playbackSpeed, boolean playbackSpeedIsMutable) in MediaClockRenderer() argument
387 this(playbackSpeed, playbackSpeedIsMutable, true, false, false); in MediaClockRenderer()
396 float playbackSpeed, in MediaClockRenderer() argument
403 this.playbackSpeed = playbackSpeed; in MediaClockRenderer()
419 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
421 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed()
427 return playbackSpeed; in getPlaybackSpeed()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DDefaultAudioSink.java98 float applyPlaybackSpeed(float playbackSpeed); in applyPlaybackSpeed() argument
169 public float applyPlaybackSpeed(float playbackSpeed) { in applyPlaybackSpeed() argument
170 return sonicAudioProcessor.setSpeed(playbackSpeed); in applyPlaybackSpeed()
875 return new PlaybackParameters(mediaPositionParameters.playbackSpeed); in getPlaybackParameters()
879 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
880 setPlaybackSpeedAndSkipSilence(playbackSpeed, getSkipSilenceEnabled()); in setPlaybackSpeed()
885 return getMediaPositionParameters().playbackSpeed; in getPlaybackSpeed()
1069 private void setPlaybackSpeedAndSkipSilence(float playbackSpeed, boolean skipSilence) { in setPlaybackSpeedAndSkipSilence() argument
1071 if (playbackSpeed != currentMediaPositionParameters.playbackSpeed in setPlaybackSpeedAndSkipSilence()
1075 playbackSpeed, in setPlaybackSpeedAndSkipSilence()
[all …]
DForwardingAudioSink.java118 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
119 sink.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
DAudioSink.java284 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
DDecoderAudioRenderer.java495 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
496 audioSink.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DAdaptiveTrackSelection.java301 private float playbackSpeed; field in AdaptiveTrackSelection
400 playbackSpeed = 1f; in AdaptiveTrackSelection()
422 public void onPlaybackSpeed(float playbackSpeed) { in onPlaybackSpeed() argument
423 this.playbackSpeed = playbackSpeed; in onPlaybackSpeed()
503 lastChunk.startTimeUs - playbackPositionUs, playbackSpeed); in evaluateQueueSize()
518 Util.getPlayoutDurationForMediaDuration(mediaDurationBeforeThisChunkUs, playbackSpeed); in evaluateQueueSize()
542 Format format, int trackBitrate, float playbackSpeed, long effectiveBitrate) { in canSelectFormat() argument
543 return Math.round(trackBitrate * playbackSpeed) <= effectiveBitrate; in canSelectFormat()
580 if (canSelectFormat(format, format.bitrate, playbackSpeed, effectiveBitrate)) { in determineIdealSelectedIndex()
DBaseTrackSelection.java145 public void onPlaybackSpeed(float playbackSpeed) { in onPlaybackSpeed() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DPlaybackStatsListener.java85 private float playbackSpeed; field in PlaybackStatsListener
104 playbackSpeed = 1f; in PlaybackStatsListener()
176 tracker.onPlaybackSpeedChanged(eventTime, playbackSpeed); in onSessionCreated()
329 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument
330 this.playbackSpeed = playbackSpeed; in onPlaybackSpeedChanged()
333 tracker.onPlaybackSpeedChanged(eventTime, playbackSpeed); in onPlaybackSpeedChanged()
732 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument
736 currentPlaybackSpeed = playbackSpeed; in onPlaybackSpeedChanged()
DAnalyticsListener.java215 default void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) {} in onPlaybackSpeedChanged() argument
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java614 private final float playbackSpeed; field in Action.SetPlaybackSpeed
622 public SetPlaybackSpeed(String tag, float playbackSpeed) { in SetPlaybackSpeed() argument
623 super(tag, "SetPlaybackSpeed:" + playbackSpeed); in SetPlaybackSpeed()
624 this.playbackSpeed = playbackSpeed; in SetPlaybackSpeed()
630 player.setPlaybackSpeed(playbackSpeed); in doActionImpl()
DActionSchedule.java223 public Builder setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
224 return apply(new SetPlaybackSpeed(tag, playbackSpeed)); in setPlaybackSpeed()
DStubExoPlayer.java333 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DMediaSessionConnector.java768 float playbackSpeed = player.getPlaybackSpeed(); in invalidateMediaSessionPlaybackState() local
769 extras.putFloat(EXTRAS_SPEED, playbackSpeed); in invalidateMediaSessionPlaybackState()
770 float sessionPlaybackSpeed = player.isPlaying() ? playbackSpeed : 0f; in invalidateMediaSessionPlaybackState()
1135 public void onPlaybackSpeedChanged(float playbackSpeed) { in onPlaybackSpeedChanged() argument
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerControlView.java1011 float playbackSpeed = player.getPlaybackSpeed(); in updateProgress() local
1013 playbackSpeed > 0 ? (long) (mediaTimeDelayMs / playbackSpeed) : MAX_UPDATE_INTERVAL_MS; in updateProgress()

12