Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

In UE5, I am trying to use the same media source four times in a level. When I do this…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-mini-beta’s answer.
  1. User

    In UE5, I am trying to use the same media source four times in a level. When I do this however, it's distracting that all of the videos are playing identical frames. How do I make it so that each instance of the video will start at a different point in the media source?

  2. Claude Assistant

    To make each instance of the same media source start at different points in UE5, you'll need to:

    1. Create separate Media Player assets for each instance (instead of reusing the same one)
    2. Use Blueprint to set different starting positions for each Media Player

    Here's a quick implementation:

    // In the BeginPlay event of your Blueprint:
    // Assuming you have references to your media players
    
    // For the first media player
    MediaPlayer1.OpenSource(YourMediaSource);
    MediaPlayer1.Play();
    
    // For the second media player (start 2 seconds in)
    MediaPlayer2.OpenSource(YourMediaSource);
    MediaPlayer2.Seek(FTimespan::FromSeconds(2.0));
    MediaPlayer2.Play();
    
    // Third media player (start 5 seconds in)
    MediaPlayer3.OpenSource(YourMediaSource);
    MediaPlayer3.Seek(FTimespan::FromSeconds(5.0));
    MediaPlayer3.Play();
    
    // Fourth media player (start at random position)
    MediaPlayer4.OpenSource(YourMediaSource);
    MediaPlayer4.Seek(FTimespan::FromSeconds(FMath::RandRange(0.0, MediaPlayer4.GetDuration().GetTotalSeconds())));
    MediaPlayer4.Play();
    

    Would you like me to explain or break down this code?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.