Skip to main content

Playback issues in the <Player>

Read this page if you encounter issues with media playback in the Player such as:

  • Black frames inbetween scenes
  • Audio choppiness
  • Unexpected pausing
  • Jumping around

Ensure best practices​

1 Use <Video> and <Audio> from @remotion/media where possible; they use the buffer state by default. For <Html5Audio>, <Html5Video>, and <OffthreadVideo>, add pauseWhenBuffering. For <Img>, add pauseWhenLoading.
2 For seamless transitions, use the premountFor prop for <Sequence>'s.
3 Don't use prefetch() if the Player is already mounted.
4 Avoid over-aggressive prefetch()-ing and premounting - it will use up resources faster.

Enable loggingv4.0.250​

You can observe mounting, loading, seeking and buffering events of media by adding logLevel="trace" to the <Player> component.

Adding logLevel="trace" to the Player
import React from 'react'; import {Player} from '@remotion/player'; export const MyApp: React.FC = () => { return <Player {...otherProps} logLevel="trace" />; };
note

Don't enable this prop for production as it may lead to slowdown.

To observe prefetching events, add logLevel: "trace" to your prefetch() calls, if there are any:

Adding logLevel: "trace" to prefetch()
import {prefetch} from 'remotion'; prefetch(src, { logLevel: 'trace', });

Reporting issues​

We have implemented exact logging of relevant events in order to improve how Remotion handles media playback.
We encourage you to file feedback. If you would like to report feedback, please:

1 Ensure you are at least on v4.0.302 of Remotion. Previous versions had known bugs.

3 enable logging and send all logs during playback alongside your report.

See also​