playMaker

Author Topic: Check if internet is fast or slow Action + libs  (Read 2563 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Check if internet is fast or slow Action + libs
« on: December 04, 2017, 10:50:28 AM »
Hi

I had a need in my current project to check if the internet connection is fast enough to perform various tasks, like connecting to a speech recognition API. So I made a little wrapper for iOS/Android and playmaker action.

If connection is something like at least 400kbps or wifi then it will return a true and if it's slower then false.

Just unzip the folder to the main Assets folder in your project.
« Last Edit: December 04, 2017, 10:54:22 AM by elusiven »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Check if internet is fast or slow Action + libs
« Reply #1 on: December 05, 2017, 12:53:58 AM »
Hi,
 
Very nice, thanks for sharing this! did you write the IOS and Android bridge yourself?
 
An actual package would be more convenient :) is there a particular reason why you did not used packaging?

 Bye,

 Jean

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Check if internet is fast or slow Action + libs
« Reply #2 on: December 06, 2017, 07:19:16 AM »
No problem. Yes I wrote it - I've never done any external plugins for unity3d before so I was learning by doing. I attached the package as I'm not sure where to stick it on the ecosystem repo. No any specific reason other than being lazy :D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Check if internet is fast or slow Action + libs
« Reply #3 on: December 08, 2017, 02:11:15 AM »
Hi,

 Cool, well done indeed, writing IOS and android stuff is not easy, far from it...

I think you should also talk about it on Unity forum for non PlayMaker devs, I am sure you'll find an audience for this.

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Check if internet is fast or slow Action + libs
« Reply #4 on: December 08, 2017, 02:14:19 AM »