Capítulo 696 de 988

Chapter 696: Seeking Hints

Core Idea

:::warning We are phasing out Media Parser and are moving to Mediabunny!

Key Concepts

  • Using seeking hints
  • Good to know

Code Examples

const controller = mediaParserController();

await parseMedia({
  controller,
  // Adding a callback so the full file is read
  onVideoTrack: (track) => {
    return (sample) => {
      console.log(sample);
    };
  },
  src: 'https://stream.mux.com/QkFQYWZ0ZS53ZWJ3aWQvc3RhdGlvbl9pbnRlcm5hbC5tM3U4Lm1wNA.m3u8',
});

const hints = await controller.getSeekingHints();
  • What it demonstrates: Usage pattern for Seeking Hints from the official docs.

Key Takeaways

  1. Understand using seeking hints when working with Seeking Hints.
  2. Understand good to know when working with Seeking Hints.

Connects To

  • Download and Parse: related page in the Media Parser (@remotion/media-parser) section.
  • Download and Parse Media: related page in the Media Parser (@remotion/media-parser) section.
  • Fast and Slow: related page in the Media Parser (@remotion/media-parser) section.