Video Streamming from URL blocks the whole game (caching?) and then continues

Hi! I am making an app for Android where I need stream some videos from a site.
My problem is that when I switch videos, the game freezes like 1 second and then continues (like buffering or something) but it doesnt happens in Windows.

Is there some workaround to play URL movies on Android?
Thanks!

Dany

I believe you have to create an own thread for that. As far i know is the mainthread not optimized for that.

DeepX

hi!

Do you know how to create an own thread?

umm…I’ve seen some C++ tuts on how to multi thread.

But as far I’ve seen you cant share UObjects between threads so If I call an URL video
from one thread, how do I merge that with the main thread if UObjects cant be shared?

(using a mediaplayer, a media texture, a material, a texture from a wigdet, etc from the main thread)

What I am doing right now is fairly easy: I have like a video browser…I go down in a list and then the video streams.

Running in windows is flawless but in Android it has like 1 second freeze or more wach time I move a position in the list