x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Video textures not working in packaged files (4.18.2)

Hi all. I'm trying to insert some mp4 videos into a project using the Media Framework tutorials on the UE site. These are set up to play on box trigger overlap (also tried box trigger overlap + button) and are applied to a static mesh as a material. They play perfectly in the editor - but once I package for Android or HTML5 - I just get a black texture fill on the static meshes. No video.

I've seen a few posts on here which report the same issue. I believe 4.18 was supposed to fix the problem for Android, but as I see it, it hasn't.

I've followed these tutorials (used their sample files, blueprints) TO THE LETTER and I STILL get black textures in my packaged files.

https://docs.unrealengine.com/latest/INT/Engine/MediaFramework/HowTo/FileMediaSource/index.html

https://docs.unrealengine.com/latest/INT/Engine/MediaFramework/QuickStart/index.html

Android device is running 5.0.1. Tried the HTML5 output running from a web server and locally via Firefox (right click on the launch file, open with FF)

So. Has anybody managed to get video to work in their projects? If so, how?

Thanks in advance.

Paul

Product Version: UE 4.18
Tags:
more ▼

asked Jan 14 '18 at 02:29 PM in Packaging & Deployment

avatar image

Flipperkast
6 1 2 2

avatar image Ricardo.lpc Jan 25 '18 at 03:50 PM

media texture is working fine for me in android, did you put the video sample in content/Movies folder and are using .mp4 file?

avatar image Flipperkast Jan 26 '18 at 09:25 AM

Thanks for the responses. I can report that I've got video textures working now. Turned out that it was the rather old Android hardware that seemed to be to blame (Samsung S4 - go figure). I used the same file on an S7 and it worked first time (which was a relief).

Juj - As for getting video textures to work on HTML5 output, I'll just stay quiet on that for now :-)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I don't know about Android, but unfortunately for WebGL, the code stack for doing video textures is very different from the one for native OpenGL (ES) or Direct3D. Sufficiently so that such feature will likely need to be reimplemented from scratch for web exports, and that might not be in the most requested list of features.

If your project is very web-centric, you may be able to develop the feature manually in JavaScript on the html page by following https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Animating_textures_in_WebGL. Not sure how easy that would be, but perhaps worth a shot if the feature is important.

more ▼

answered Jan 18 '18 at 03:34 PM

avatar image

juj
1.2k 15 4 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question