Skip to content

Why is video playback speed delayed when changing and not instant? #7982

@blonsky95

Description

@blonsky95

Hi there,

I only post this question here because I have had no luck in Stack Overflow and I've read everything I've been able to found in Exoplayer docs.

I'm using the Exoplayer PlaybackParameters in my app to change the speed of the video playback. However the speed change is only carried out a considerable amount of frames later (I guess it waits for closest sync point?).

I am aware that when I set the playback parameters it should trigger default void onPlaybackParametersChanged(PlaybackParameters playbackParameters) so I'm not sure if the delay lies in (setting playbackParameters -> triggering the listener) or in (listener triggered -> applies parameters to playback).

If I make a speed change with the video paused, and seek to a different part of the video, the speed change is carried out immediately, it's only while the playback is running that it carries out the speed change with a delay.

Wondering if there is something like SeekParameters where you can choose to seek to closest Sync point, or ignore sync points at all and use tolerance of 0, so setting the PlaybackParameters don't have to wait to the sync point to change.

I couldn't find anything remotely similar in issues, but please let me know if I am missing something out or any existing solutions to my problem

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions