Hello,
I’ve been trying to get a media file to play on a set of televisions I have in a room. The televisions are both blueprint actors with a static mesh of 1 material, and a plane of a material with the base colour and emissive colour both being a media texture.
I get this error on almost every time I execute the game to test, when the media starts playing.
Below are some screenshots of the blueprints which start the media playing.
Material used for the plane on the TV actor
StartVideo Function
Initialise Function
StartVideo call from LevelBlueprint
The process is meant to work like this…
- ‘Initialise’ is called from the LevelBlueprint on ‘Event BeginPlay’ (which it is)
- When the media is ready to be played (after a custom event is triggered in the LevelBlueprint), ‘StartVideo’ is called on each TV (of which there are 2) from the LevelBlueprint.
I have tested the LevelBlueprint and both of these functions are called successfully at the correct time but I get the error ‘LogWmfMedia: Error: An error occured when preparing the topology’ almost every time the media tries to start up. This is the only error given in the Output Log, no other context is given.
It seems like I have tried everything to fix this issue, I’ve tried…
- Precaching the video
- Using both WMV and MP4 types (I’m running on Windows)
- Not using the ‘Initialise’ function for the Televisions
- Switched between using RGB and RGBA, in the material, for both the Base Colour and Emmissive Colour.
Some have suggested that all media needs to be in the ‘Content/Movies’ directory, which all my media is yet this issue persists.
Does anyone have any ideas of what might be causing this issue and how I could fix it? Let me know if you need more details and I’ll provide them.
Thanks in advance for any help!