- Home /
Can I measure the users connection speed?
I've been hoitting my head against the wall with movieTexture.isReadyToPlay as it really doesnt seem to wok. I have this set, but my movies still stutter badly as they stream in. Ideally there is an answer to this but If not, I would want to add my own delay before displaying the movie based on the users connection speed. Can I get this easily?
Answer by Justin Warner · Mar 26, 2011 at 09:09 PM
http://unity3d.com/support/documentation/ScriptReference/Ping.html
If you're talking about ping?
The ping is the speed from the user to the source.
Hope it helps!
Answer by DaveA · Mar 26, 2011 at 09:42 PM
I've seen this. It's not about ping I think but just the quality of the connection (even fast pings can stutter, to prove this, be on a LAN and tug on your ethernet connector until it starts to break).
I ended up polling all the statuses I could in an Update script, including a 4 second delay between when it said it was 'ready' and when it would actually display the movie (I get about 4 seconds of black screen, even if my first frame is not black). This is on a LAN too. Even local disk loads have some delay.
I would consider it a bug, either in implementation, design, or docs, that 'isReady' does as advertised. Maybe it means 'is loaded to some extent' but it does not mean 'ready to play like you want it to'
Your answer
Follow this Question
Related Questions
All of a sudden my game is stuttering like hell on Android... 1 Answer
video texture plays too fast when adding audio 2 Answers
Allow Unity to render as fast as possible? 0 Answers
Audio from Video starts stuttering + video playback lag after a few minutes 0 Answers
Game runs smoothly in landscape mode but lags/stutters in portrait! 1 Answer