playMaker

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

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
    • View Profile
Check if internet is fast or slow Action + libs
« on: December 04, 2017, 08: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, 08:54:22 AM by elusiven »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Check if internet is fast or slow Action + libs
« Reply #1 on: December 04, 2017, 10:53:58 PM »
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...
    • View Profile
Re: Check if internet is fast or slow Action + libs
« Reply #2 on: December 06, 2017, 05: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: 14684
  • Official Playmaker Support
    • View Profile
Re: Check if internet is fast or slow Action + libs
« Reply #3 on: December 08, 2017, 12: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: 14684
  • Official Playmaker Support
    • View Profile
Re: Check if internet is fast or slow Action + libs
« Reply #4 on: December 08, 2017, 12:14:19 AM »