Media Player don't rewind more then once

I have a 5-minute long video that is managed by blueprints. I can only rewind the Media Player once. I’ve tried several codecs with no luck. Also, the Media Player in the editor has erratic behavior. After the video plays a bit, even inside the Media Player, I can’t scrub. The video keeps playing, but it doesn’t obey the timeline. When it gets to the end, it’s over. I need to open and close the editor to at least see it playing. Even with looping option turned on.

Hello fabianoberlim,

I have found some answers as to how to fix the issue you are having. I have set up my own scene to apply the media player to a material and be triggered looping when passing through a trigger volume. This loops indefinitely and also gives you a bit more control over how to play the media asset.

Steps to follow:

  1. Import your .wmv (window media viewer) file to the content browser.
  2. Inside of the “Media Player” asset you imported change the settings by unchecking “Auto Play” and “Looping.”
  3. Be sure your asset is in the “Content/Movies” folder location. If you do not have the folder, create one and place your .wmv file in this location.

  1. Here you can see I set the play-rate of my movie to 5x the normal speed so I wouldn’t wait so long to see if my Blueprint actually looped the asset.
  2. Now create a plane large enough to see your movie when the material is applied.
  3. Apply the material to your plane.

  1. Now create a box trigger that will trigger your movie asset to play.
  2. Open your level blueprint and with the box trigger selected, create an “OnEventBeginOverlap” for you box trigger.
  3. Now create a new variable and label it something that makes sense in the context of your scene.
  4. Set the “Variable Type” to “Media Player”
  5. Under the “Default Value” section choose your media player asset from the content browser.
  6. Create a “Set Looping” within a “MediaPlayer” function and check the box that says “In Looping”
  7. Connect that to a “Play” within a “MediaPlayer” function.
  8. For the target’s of both functions pull in your variable as a “Get”

  1. Compile and Save!
  2. Use images as reference to make sure everything is connected properly.

I hope this helps resolve your issue, but let us know if you need further assistance!

Cheers,

Hi Andrew,

I’ll try tomorrow your setup. In the meantime, I can’t get my scene to work.
After the first time I play the video, it keeps playing in viewport. As you can see after a while it gets black.

Auto Play and Looping are off. The video is a wmv inside the Content/Movies folder. I cannot play or rewind. My timeline is in the middle, but there’s no video.

This is my setup in the LevelBlueprint. A Event Begin Play set it to Looping and starts the Play. My actor could’n Rewind or Seek the Media Player, so I’ve created a Event Dispatcher and led the LevelBlueprint to do the job. It works for the first time I open the Editor or the Game. After the second time, the Event Dispatcher fires, line gets red, everything following the Seek works, but the video don’t goes to the beginning.

Is there a wmv type that works better?

The loop works in game. I led it play for a while. But after I stopped the game, the video keeps playing in the editor. It doesn’t loop and breaks the video in the game too. Not so much a problem.
But I can’t Rewind or Seek more then once. I need to stop and play the game in the editor to be able to seek or rewind again.

I gotcha, mine does the same as well. This just means you need to add a new function in your blueprint that controls this. Aside from that it is functioning correctly if it resets after pressing play again.

Everything is working now. Thanks!

I have some trouble with this as well and I don’t really get how you solved it.
I have a video that I need to play from the beginning every time the user presses a button. The video sits in a UMG Widget like in UE4’s Media Framework tutorial and the graph is the one below:

What happens is that the video plays and seems to rewind just the 1st time it’s triggered. Any time after that it just plays but doesn’t play from the beginning.
The video is a .wmv sitting in Content/Movies and it’s only about 11MB in size. I’ve also tried some other codecs and putting the rewind before/after Play.

Any ideas? Thanks.

Same problem here… 4.9, Android devices

hi all. method above not works for me. found stupid solution: bind an event to “end reached” of player and fire “open source” again with delay. Without delay not working. Reopen node not working. rewind+play not working too. video res is fullhd.